Data.gov API - US Open Government Datasets
Pricing
from $0.01 / 1,000 results
Data.gov API - US Open Government Datasets
Access the Data.gov catalog of 300,000+ US government datasets. Search datasets by topic, agency, format, and keywords. Discover open data from federal, state, and local governments
Pricing
from $0.01 / 1,000 results
Rating
0.0
(0)
Developer
The Howlers
Maintained by CommunityActor stats
0
Bookmarked
4
Total users
0
Monthly active users
4 days ago
Last modified
Categories
Security
Limited permissionsShare
Data.gov API - US Open Government Data Catalog
Access the Data.gov catalog of 300,000+ US government datasets. Search datasets by topic, agency, format, and keywords. Discover open data from federal, state, and local governments.
Note: Demo Mode is off by default, so runs fetch real data. Set demoMode to true to get free sample data instead.
Quick Start
Test with Demo Mode (free, no API key needed)
{"demoMode": true}
Run with real data
{"demoMode": false,"task": "search_datasets","searchQuery": "air quality","limit": 20}
Input Parameters
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
task | string | "search_datasets" | Yes* | The operation to perform |
searchQuery | string | - | No | Keywords to search in dataset titles and descriptions |
datasetId | string | - | No | Unique dataset identifier |
agency | string | - | No | Federal agency name or abbreviation |
topic | string | - | No | Dataset topic/category |
format | string | - | No | Dataset file format |
license | string | - | No | Data license type |
limit | integer | 100 | No | Maximum number of results to return |
webhookUrl | string | - | No | URL to receive results via webhook |
demoMode | boolean | false | No | Run with sample data (no API required) |
Data sources and limits (updated 2026-10-15)
data.gov replaced its old CKAN API, so this actor now uses the new catalog API at catalog.data.gov (no key needed).
datasetIdis the dataset slug from its catalog.data.gov URL.search_by_agencyaccepts an organization slug (for examplenoaa,census) or name.search_by_topicmatches dataset keywords;get_topicslists the most common keywords (data.gov no longer has CKAN groups).get_recentsorts by the date data.gov last harvested each record.formatfilters the returned page by distribution format.- Results report
returnedCount; the new catalog does not report a total match count.
Pricing
| Event | When it is charged | Price |
|---|---|---|
| Actor start | Once when the run starts, one event per GB of memory (minimum one). At the default 256 MB of memory that is $0.10 per run | $0.10 per GB |
| Search Datasets | Full-text search across 300,000+ government datasets. Filter by format, agency, and topic | $0.01 |
| Get Dataset Details | Retrieve complete dataset metadata by ID. Includes description, resources, download links, and update schedule | $0.01 |
| Search by Agency | Find datasets published by a specific federal agency. Explore agency data catalogs | $0.01 |
| Search by Topic | Filter datasets by category (health, climate, education, etc.). Discover thematic data collections | $0.01 |
| Get Popular Datasets | Most downloaded and viewed datasets. Discover high-value, commonly-used government data | $0.01 |
| Get Recent Datasets | Recently added or updated datasets. Stay current with new government data releases | $0.01 |
| Get Agencies List | List of all federal agencies publishing open data with dataset counts. Explore the data landscape | $0.01 |
| Get Topics List | Available data categories and topics with dataset counts. Navigate the catalog by subject area | $0.01 |
| Result | Each item written to the default dataset | $0.00001 |
Each successful live call charges one event named after the task you ran (prices are on the Pricing tab), plus the standard Actor start fee. Not charged: Demo Mode runs, calls that fail or return an error row, and calls that return no rows.
Troubleshooting
"API error 429" or "Rate limit"
Too many requests. Wait a minute and try again, or reduce the number of items per run.
No results or empty dataset
Check the run log for error messages. Common causes:
- Invalid input format (check the examples above)
- The target data doesn't exist or is too small to track
How do I test without an API key?
Enable Demo Mode in the input. This returns realistic sample data so you can verify the output format works for your workflow.
Built by John Rippy | Actor Arsenal