package_show
Learn how to query package_show to learn more about a dataset on HDX
The package_show endpoint retrieves complete metadata for a single dataset, including all resources, tags, and relationships.
Base URL: https://data.humdata.org/api/action/package_show
Method: GET or POST
Use Cases
Dataset details: Get comprehensive information about a specific dataset like the date last updated
Resource enumeration: List all files and resources in a dataset
Metadata extraction: Extract specific fields for analysis or cataloging like countries or time period
Validation: Check dataset properties before processing for downstream access like Tabular Data Endpoints access
Parameters
Parameter
Type
Required
Description
id
string
Yes
Dataset ID or URL name (can be used interchangeably)
Key Response Fields
There are some key response fields returned from the API response which give insight into the dataset. Below are some key responses but the list is not exhaustive.
dataset_date: Dataset time period
data_update_frequency: How often the dataset is updated
cod_level: Flag for COD datasets
notes: Dataset description/abstract
license_id and license_title: Data usage license
maintainer and maintainer_email: Contact information
resources: Detailed information about each file
size: File size in bytes
download_url: Direct download link (see File URL section here )
organization: Full organization details including package count
Sample Query
https://data.humdata.org/api/action/package_show?id=cod-ab-pak
Common use cases
The Metadata endpoints are very flexible and can be used in many different types of processes in the humanitarian sector. See specific URLs and code examples below in Python and Javascript.
Note that you do not need to be signed into HDX to access the endpoints directly in your browser or need an API token unless you hit the rate limit of 60 requests per minute.
Direct URLs
These examples show some specific use-cases of how to configure the URL to query the HDX catalogue for specific humanitarian use-cases.
Search HDX for the most recently updated datasets of South Sudan for returnees data
https://data.humdata.org/api/action/package_search?q=returnees&fq=groups:ssd&sort=metadata_modified%20desc&rows=5
Search for datasets from UNFPA for population
https://data.humdata.org/api/action/package_search?q=population&fq=organization:unfpa&rows=10
Get all downloadable resources for a specific dataset
https://data.humdata.org/api/action/package_show?id=ukraine-border-crossings
Last updated
Was this helpful?
