[Integrations](https://spiral.ai/integrations) › [Perplexity](https://spiral.ai/integrations/perplexity) › [GovInfo publication search](https://spiral.ai/integrations/perplexity/govinfo-publication-search)

# How to Use GovInfo publication search in Perplexity

Returns matching federal publications and document sections from GovInfo. Use it for topic research across publication series when you do not already have an exact document identifier.

|  |  |
| --- | --- |
| Model | GovInfo publication search |
| Available through | Alexandria |
| Category | Public Records |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with GovInfo publication search in Perplexity

- Use GovInfo publication search to find 2024 federal publications about rural broadband deployment and give me a reading list organized by publication series.
- Use GovInfo publication search to look this up and give me the result as a table.
- Pull the latest numbers from GovInfo publication search and tell me what changed since last week.
- Check GovInfo publication search and summarize what you find in three bullet points.
- Pull the newest data from GovInfo publication search and give me the result as a table.

## How to set up GovInfo publication search in Perplexity

Pick the way that suits you. Each takes about two minutes.

### Use the Perplexity connector

1. **Add a remote connector**: In Perplexity, open Plugins in the sidebar (or Customize › Connectors if you don't see Plugins yet). Choose Add custom › Add MCP connector, then Remote. Name it Spiral and paste this MCP server URL:

```text
https://api.spiral.ai/mcp
```

2. **Sign in to Spiral and approve**: Select the Spiral card on the Plugins page to start sign-in. Spiral opens: sign in, pick the organization and click Authorize. No API key.

### Use the Spiral skill

1. **Send Perplexity this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run GovInfo publication search**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "govinfo-gov/legislation/search",
    "input": {
      "query": "<query>"
    }
  }'
```

Then paste one of the prompts above: Perplexity finds GovInfo publication search on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/perplexity

## GovInfo publication search tools and prices

- [GovInfo · Search](https://spiral.ai/tools/alexandria/govinfo-gov/legislation/search) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| page | 0 to … | 0 | 0-based page index; pass `next_page` from the previous result. |
| year |  | — | Publication year facet (`publishdatehier`). Pattern: ^[0-9]{4}$. |
| page_size | 1 to 50 | 10 | page_size |
| historical |  | — | Include superseded (historical) editions. The site default is true; false keeps only current documents. |
| collections |  | — | Collection codes to restrict to (the `accodenav` facet), e.g. `USCODE`, `CFR`, `FR`, `BILLS`, `PLAW`. See `collections`. |

## What can you do with GovInfo publication search in Perplexity?

Turn a federal research question into a reading list with document links and relevant passages. A chat assistant can use GovInfo to locate cited U.S. Code sections, explore their surrounding provisions, and compare selected editions.

### Build a federal statute research reader

Create a reader that starts with publication selection, lets researchers explore the U.S. Code, and opens cited sections with their metadata and text. Add edition selection for historical comparisons and topic search for discovery.

### Prepare a legislative research packet

Choose publication series, find documents about a policy topic, and organize the relevant U.S. Code provisions by chapter. Include document metadata, readable text, and selected historical editions for a reviewer.

### Create a federal legal research lesson

Build an exercise around a public statute: identify its publication collection, locate its chapter, search for related publications, and retrieve a cited section. Have students compare selected editions and distinguish document metadata from document text.

### Assemble an edition-specific reference archive

Select federal publication collections and collect the documents needed for a policy handbook. Organize U.S. Code sections within their titles, preserve publication metadata and text, and include earlier editions where the handbook discusses changes.

### Find federal publications on a policy topic

Identify relevant publication series, search their metadata and full text, and prepare a reading list with document details and selected passages. Keep the publication series visible so readers can distinguish the sources.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Perplexity guides](https://spiral.ai/integrations/perplexity)

## GovInfo publication search in other agents

- [Amp](https://spiral.ai/integrations/amp/govinfo-publication-search)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/govinfo-publication-search)
- [Claude](https://spiral.ai/integrations/claude-desktop/govinfo-publication-search)
- [Claude Code](https://spiral.ai/integrations/claude-code/govinfo-publication-search)
- [Cline](https://spiral.ai/integrations/cline/govinfo-publication-search)
- [Codex](https://spiral.ai/integrations/codex/govinfo-publication-search)
- [Cursor](https://spiral.ai/integrations/cursor/govinfo-publication-search)
- [Devin](https://spiral.ai/integrations/devin/govinfo-publication-search)
- [dots](https://spiral.ai/integrations/dots/govinfo-publication-search)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/govinfo-publication-search)
- [Gemini](https://spiral.ai/integrations/gemini/govinfo-publication-search)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/govinfo-publication-search)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/govinfo-publication-search)
- [goose](https://spiral.ai/integrations/goose/govinfo-publication-search)
- [Grok](https://spiral.ai/integrations/grok/govinfo-publication-search)
- [Grok Build](https://spiral.ai/integrations/grok-build/govinfo-publication-search)
- [Hermes](https://spiral.ai/integrations/hermes/govinfo-publication-search)
- [Instinct](https://spiral.ai/integrations/instinct/govinfo-publication-search)
- [Manus](https://spiral.ai/integrations/manus/govinfo-publication-search)
- [Muse](https://spiral.ai/integrations/muse/govinfo-publication-search)
- [Muse Code](https://spiral.ai/integrations/muse-code/govinfo-publication-search)
- [n8n](https://spiral.ai/integrations/n8n/govinfo-publication-search)
- [Notion](https://spiral.ai/integrations/notion/govinfo-publication-search)
- [OpenClaw](https://spiral.ai/integrations/openclaw/govinfo-publication-search)
- [opencode](https://spiral.ai/integrations/opencode/govinfo-publication-search)
- [Raycast](https://spiral.ai/integrations/raycast/govinfo-publication-search)
- [VS Code](https://spiral.ai/integrations/vscode/govinfo-publication-search)
- [Windsurf](https://spiral.ai/integrations/windsurf/govinfo-publication-search)
- [Zapier](https://spiral.ai/integrations/zapier/govinfo-publication-search)

## More Perplexity guides

- [GovInfo publication collections](https://spiral.ai/integrations/perplexity/govinfo-publication-collections)
- [Grants.gov funding opportunity search](https://spiral.ai/integrations/perplexity/grants-gov-funding-opportunity-search)
- [GovInfo document text](https://spiral.ai/integrations/perplexity/govinfo-document-text)
- [Grants.gov opportunity details](https://spiral.ai/integrations/perplexity/grants-gov-opportunity-details)
- [GovInfo document details](https://spiral.ai/integrations/perplexity/govinfo-document-details)
- [Grants.gov opportunity filter counts](https://spiral.ai/integrations/perplexity/grants-gov-opportunity-filter-counts)

## Questions about GovInfo publication search in Perplexity

**Can Perplexity use GovInfo publication search?**

Yes. Add Spiral to Perplexity as an MCP server, and Perplexity can find and run GovInfo publication search like any built-in tool.

**How much does GovInfo publication search cost in Perplexity?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Perplexity plan is separate.

**Do I need an Alexandria account to use GovInfo publication search in Perplexity?**

No. Spiral runs GovInfo publication search on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up GovInfo publication search in Perplexity?**

About two minutes: add a remote connector, then sign in to Spiral and approve.

**Does Perplexity wait while GovInfo publication search runs?**

GovInfo publication search runs in the background. Perplexity starts the run, checks on it and gives you the json when it's ready.

**Does GovInfo include every government document?**

GovInfo covers official publications from all three branches of the federal government. Its search only includes documents stored on GovInfo, so it is not a complete index of everything government agencies publish.

**How far back does GovInfo's U.S. Code archive go?**

GovInfo provides virtual main editions of the U.S. Code from 1994 onward. You can browse them by year and then title.

**How often is the U.S. Code updated?**

The publication cycle includes a new main edition every six years and annual supplements. A GovInfo edition is a published snapshot, so choose the edition deliberately when comparing statutory wording.

**Does a recent modification date mean a publication is new?**

GovInfo's lastModified value records when a package was added or updated. It differs from the publication date, so a recent modification alone does not establish when the document was issued.

**Is every document available in the same formats?**

Most GovInfo documents are available as PDF and text. Other formats depend on the publication, and the document details page identifies the available files.

