Data.gov

App · 2 actions

Find U.S. government datasets and the organizations that publish them.

List publishing organizations

Get the agencies and other organizations that publish datasets on Data.gov.

Inputs

None.

Outputs

dataobject
The response from Data.gov.
Example output
{
  "data": {
    "organizations": [
      {
        "dataset_count": 1,
        "id": "example",
        "name": "example",
        "organization_type": "example",
        "slug": "example"
      }
    ],
    "total": 1
  }
}

Search government datasets

Find datasets by keyword or publisher and get descriptions, download information and links.

Inputs

Queryquerytext
Words to search for in the catalog.
Organizationorganizationtext
A publisher slug from List publishing organizations, such as nasa.
Sortsorttext
How to order the datasets.One of: relevance, popularity, last_harvested_date (Last harvested date).
Per pageper_pagenumber
How many datasets to return.From 1 to 100.
Afteraftertext
The next page cursor from a previous search.

Outputs

dataobject
The response from Data.gov.
Example output
{
  "data": {
    "after": "example",
    "results": [
      {
        "dcat": {},
        "description": "example",
        "distribution_titles": [
          "example"
        ],
        "has_spatial": true,
        "identifier": "example",
        "keyword": [
          "example"
        ],
        "last_harvested_date": "example",
        "organization": {
          "dataset_count": 1,
          "id": "example",
          "name": "example",
          "organization_type": "example",
          "slug": "example"
        },
        "publisher": "example",
        "slug": "example",
        "theme": [
          "example"
        ],
        "title": "example"
      }
    ],
    "sort": "example"
  }
}

On this page