Code examples and Python notebook
Python and Javascript examples and a ready-to-run Python notebook
Search HDX for the most recently updated datasets of South Sudan for returnees data
import requests
response = requests.get(
"https://data.humdata.org/api/action/package_search",
params={
"q": "returnees",
"fq": "groups:ssd",
"sort": "metadata_modified desc",
"rows": 5
}
)
data = response.json()
for dataset in data["result"]["results"]:
print(dataset["title"])
print(f" Updated: {dataset['metadata_modified'][:10]}")Search for datasets from UNFPA for population
Get all downloadable resources for a specific dataset
Python notebook
Last updated
Was this helpful?
