[Integrations](https://spiral.ai/integrations) › [dots](https://spiral.ai/integrations/dots) › [GovInfo document text](https://spiral.ai/integrations/dots/govinfo-document-text)

# How to Use GovInfo document text in dots

Returns the text of an identified GovInfo document or section. Use it to read provisions, extract passages, or compare wording after locating the publication you need.

|  |  |
| --- | --- |
| Model | GovInfo document text |
| Available through | Alexandria |
| Category | Public Records |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with GovInfo document text in dots

- Every Monday at 9am: use GovInfo document text to look this up and give me the result as a table.
- Pull the latest numbers from GovInfo document text and tell me what changed since last week.
- Check GovInfo document text and summarize what you find in three bullet points.
- Pull the newest data from GovInfo document text and give me the result as a table.
- Check GovInfo document text every morning and tell me only when something changed.

## How to set up GovInfo document text in dots

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

### Use the Spiral skill

1. **Send dots 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 Spiral's MCP server

1. **Create an API key**: In the console, open API keys and create a key for your dot. Copy it.

2. **Send your dot this message**: Your dot reads Spiral's skill and asks for your API key.

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

3. **Give your dot the key**: When your dot asks for the key, add it where your dot keeps secrets, never in the chat itself.

### 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 document text**: 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/document_text",
    "input": {
      "url": "<url>"
    }
  }'
```

Then paste one of the prompts above: dots finds GovInfo document text on Spiral, shows the price and runs it.

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

## GovInfo document text tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| url |  | — | A govinfo.gov content URL (`/content/pkg/{package_id}/html/{id}.htm`) or details URL instead of the ids. |
| granule_id |  | — | Granule id; omit for the package-level document. Pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{1,160}$. |
| package_id |  | — | Pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{1,120}$. |

## What can you do with GovInfo document text in dots?

Maintain a federal research digest that reports newly found publications and newly available U.S. Code editions. A scheduled agent can compare GovInfo results with earlier runs and flag documents that need a fresh reading.

### 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.

### Compare statutory wording across editions

Find available editions of a cited section, retrieve the selected texts, and produce a passage-by-passage comparison. Link each passage to its edition and document details.

### Map a U.S. Code chapter

Walk a chapter's structure and assemble its section headings, document locations, and text into a navigable reading list. Use the map to examine neighboring provisions that a keyword search might miss.

### 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.

### Review citations in a policy handbook

Resolve the handbook's U.S. Code citations to the intended editions and compare quoted passages with the retrieved text. Return document links and edition information for editorial review.

## Overview

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

## GovInfo document text in other agents

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

## More dots guides

- [GovInfo document details](https://spiral.ai/integrations/dots/govinfo-document-details)
- [GovInfo publication collections](https://spiral.ai/integrations/dots/govinfo-publication-collections)
- [GovInfo U.S. Code section lookup](https://spiral.ai/integrations/dots/govinfo-u-s-code-section-lookup)
- [GovInfo publication search](https://spiral.ai/integrations/dots/govinfo-publication-search)
- [GovInfo U.S. Code section editions](https://spiral.ai/integrations/dots/govinfo-u-s-code-section-editions)
- [Grants.gov funding opportunity search](https://spiral.ai/integrations/dots/grants-gov-funding-opportunity-search)

## Questions about GovInfo document text in dots

**Can dots use GovInfo document text?**

Yes. Add Spiral to dots as an MCP server, and dots can find and run GovInfo document text like any built-in tool.

**How much does GovInfo document text cost in dots?**

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

**Do I need an Alexandria account to use GovInfo document text in dots?**

You need no Alexandria account. dots uses one Spiral API key for every tool, and Spiral runs GovInfo document text on its own Alexandria account.

**How long does it take to set up GovInfo document text in dots?**

About two minutes: create an API key, then send your dot this message, then give your dot the key.

**Does dots wait while GovInfo document text runs?**

GovInfo document text runs in the background. dots 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.

