AskAmerica
Query 17 US government datasets — SEC filings, FEC campaign finance, Census, weather, energy, crime, and more — with a single line of Python.
Install
pip install 'askamerica[engine]'
askamerica login # get your free API key
The query engine JAR (~80 MB) is downloaded automatically on first use. To pre-download it explicitly (useful for CI or Docker):
askamerica install-engine # optional — runs automatically on first query otherwise
Set your API key as an environment variable (or let askamerica login store it):
export ASKAMERICA_API_KEY=aa_free_...
Query
One-liner — returns a pandas DataFrame:
import askamerica as aa
df = aa.query("SELECT company_name, value_dollars FROM sec.financial_facts WHERE canonical_name = 'Revenue' ORDER BY value_dollars DESC FETCH FIRST 10 ROWS ONLY")
print(df)
Raw JDBC connection:
import askamerica as aa
conn = aa.connect()
stmt = conn.createStatement()
rs = stmt.executeQuery("SELECT cik, company_name FROM sec.filing_metadata ORDER BY filing_date DESC FETCH FIRST 5 ROWS ONLY")
while rs.next():
print(rs.getString("company_name"))
conn.close()
Claude Desktop (MCP)
pip install 'askamerica[mcp]'
askamerica install-engine
askamerica mcp-config # writes Claude Desktop config snippet
Sign up for a free API key at askamerica.ai.
Release files for askamerica 0.89.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| askamerica-0.89.0.tar.gz | 23.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| askamerica-0.89.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 48.5 kB
Release files / askamerica-0.89.0.tar.gz
| Download URL | askamerica-0.89.0.tar.gz |
|---|---|
| Size | 23.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea43d52c2ef8198895dc9a3d07e5b5313f1fefe7c01309b4135210c4481174ed
|
|
BLAKE2b-256 checksum How to use checksums |
9fbef9a57383b765d4c353d3283f7c21cad5700f115208f23a6bb670c1390b19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.
Transparency logRelease files / askamerica-0.89.0-py3-none-any.whl
| Download URL | askamerica-0.89.0-py3-none-any.whl |
|---|---|
| Size | 24.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d2a1ecf92bf18e150a2355445091c5cb5c07e8efb523b8fcd62f77abe90c362f
|
|
BLAKE2b-256 checksum How to use checksums |
933d0242c667fde1a8000648b331ca4de1bcf6f735a6f9768f6ff1220dad26e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.
Transparency log