# Data.gov

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

App · 2 actions. Web page: https://docs.lodol.com/docs/integrations/data-gov

## Actions

### List publishing organizations

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

**Inputs**: None.

**Outputs**

- `data` (object): The response from Data.gov.

**Example output**

```json
{
  "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**

- Query (`query`, text): Words to search for in the catalog.
- Organization (`organization`, text): A publisher slug from List publishing organizations, such as nasa.
- Sort (`sort`, text): How to order the datasets. One of: `relevance`, `popularity`, `last_harvested_date` (Last harvested date).
- Per page (`per_page`, number): How many datasets to return. From 1 to 100.
- After (`after`, text): The next page cursor from a previous search.

**Outputs**

- `data` (object): The response from Data.gov.

**Example output**

```json
{
  "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"
  }
}
```
