How to access a dataset via API
To access the dataset via the API you need to:
- 1. Log in under the user password and find the appropriate data set.
- 2. На On the dataset page, in the "Additional information" table, find "Data set identification number", for example, 1c7f3815-3259-45e0-bdf1-64dca07ddc10.
- 3. Then make an API request at https://data.gov.ua/api/3/action/package_show?id=Identification-code-set; for example https://data.gov.ua/api/3/action/packag
- 4. Next, in the resulting JSON find the array "resources", the last record of which will be the latest resource in the dataset. We take the value of the id of this resource and make a request to the API function https://data.gov.ua/api/3/action/resource_show?id=ID-resource; for example https://data.gov.ua/api/3/action/resource_show?id=b0476139-62f2-4ede-9d3b-884ad99afd08.
- 5. Get a JSON array that