Prompt
How do I find an API for public datasets?
Latest observation
Oct 8, 2026
OpenAI APIWeb search: off
A good way to find an API for public datasets is to search in a few specific places and use the right keywords.
1. Look for official data portals
Many governments, cities, universities, and nonprofits publish datasets with APIs.
Examples:
- data.gov — U.S. government datasets
- data.europa.eu — EU open data portal
- World Bank Open Data
- UN Data
- City or state open-data portals
Search terms:
site:gov open data apicity name open data apidataset API public
2. Check common API directories
These sites list many public APIs:
- RapidAPI
- Public APIs
- ProgrammableWeb (older, but still useful for discovery)
- GitHub topic searches like
public-apioropen-data
Search terms:
public dataset api directoryopen data api list
3. Search by dataset topic
If you need a specific type of data, search by domain:
- weather
- population
- traffic
- crime
- elections
- health
- economics
Example queries:
crime statistics api publicweather historical data apipopulation api open data
4. Check if the dataset already has a downloadable endpoint
Sometimes a site doesn’t advertise an “API” but still provides:
- JSON endpoints
- CSV downloads
- Socrata APIs
- CKAN APIs
- ArcGIS REST services
Useful searches:
"<dataset name>" API"<site name>" JSON endpoint"<portal name>" CKAN API
5. Use GitHub and package ecosystems
People often publish wrappers or documented endpoints on GitHub.
Search:
"<dataset name>" GitHub APIopen data python packagepublic dataset wrapper
6. Confirm licensing and usage limits
Before using any dataset API, check:
- license
- attribution requirements
- rate limits
- authentication requirements
- update frequency
7. If you tell me the topic, I can help
If you want, tell me:
- the kind of data you need
- your country/region
- whether you want free only
- your preferred format: JSON, CSV, REST API
and I can point you to specific public dataset APIs.