Skip to main content

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.

Metadata

Release files for askamerica 0.124.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for askamerica 0.124.4
File Size Uploaded Provenance Actions
askamerica-0.124.4.tar.gz 24.5 kB With provenance Details for askamerica-0.124.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for askamerica 0.124.4
File Interpreter ABI Platform Actions
askamerica-0.124.4-py3-none-any.whl Python 3 none any Details for askamerica-0.124.4-py3-none-any.whl

Total release size: 49.3 kB

Release files / askamerica-0.124.4.tar.gz

Download URL askamerica-0.124.4.tar.gz
Size 24.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c2d2ede2cf3501265240d6c0cb050c721dd6c6505597f398f77e970cc4277bd5
BLAKE2b-256 checksum
How to use checksums
03ff210f961aeef5002a368240fe7d1b20a22213eb7c6b43642b3a224c4d0dd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 2, 2026.

Transparency log

Release files / askamerica-0.124.4-py3-none-any.whl

Download URL askamerica-0.124.4-py3-none-any.whl
Size 24.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
05a251c674b8b3a01ab1c25a45883e75f51c6bc4b7d6b59203fa9561524a2c3d
BLAKE2b-256 checksum
How to use checksums
1d93e0e6c37c50fcd5ca05520fc1f60c6ea51021d7df3836e3250036e62a7706
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 2, 2026.

Transparency log

Security for askamerica 0.124.4

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for askamerica-0.124.4.tar.gz

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 Nov 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.124.4 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page