# GovInfo

> Find official U.S. publications and track changes to congressional bills, statutes and other collections.

App · 3 actions. Web page: https://docs.lodol.com/docs/integrations/govinfo

## Actions

### Get a publication

Get a publication's title, issue date, collection and links to available files.

**Inputs**

- Package ID (`package_id`, text, required): The publication's package ID, such as FR-2018-08-03.

**Outputs**

- `data` (object): The response from GovInfo.

**Example output**

```json
{
  "data": {
    "collectionCode": "example",
    "dateIssued": "example",
    "detailsLink": "example",
    "download": {},
    "lastModified": "example",
    "packageId": "example",
    "title": "example"
  }
}
```

### List publication collections

Get the names and codes of available government publication collections.

**Inputs**: None.

**Outputs**

- `data` (object): The response from GovInfo.

**Example output**

```json
{
  "data": {
    "collections": [
      {
        "collectionCode": "example",
        "collectionName": "example",
        "granuleCount": 1,
        "packageCount": 1
      }
    ]
  }
}
```

### List recently added or updated publications

Find publications in a collection that GovInfo added or updated since a specified time.

**Inputs**

- Collection (`collection_code`, text, required): The publication collection to follow, such as BILLS or USCODE.
- Since (`since`, date and time, required): The earliest time a publication was added or updated.
- Cursor (`cursor`, text): The offsetMark value from the previous page's nextPage link.
- Page size (`page_size`, number): How many publications to return. From 1 to 200.

**Outputs**

- `data` (object): The response from GovInfo.

**Example output**

```json
{
  "data": {
    "count": 1,
    "nextPage": "example",
    "packages": [
      {
        "dateIssued": "example",
        "lastModified": "example",
        "packageId": "example",
        "packageLink": "example",
        "title": "example"
      }
    ]
  }
}
```
