Public APIs
Data USA favicon

Data USA

Government

US Public Data.

Data USA's website screenshot

About Data USA

Data USA provides a public API for querying US public data, built on a Tesseract server backend. It exposes endpoints for listing available data cubes, retrieving a cube's schema (measures, dimensions, and levels), listing the distinct members of a dimension level, and fetching the underlying data itself. Data can be filtered by dimension values, limited and paginated, and grouped using drilldowns to select which dimensions appear as columns in the response.

The main data endpoint supports multiple output formats, including CSV, TSV, Parquet, Excel (xlsx), and two JSON variants (array-of-arrays and array-of-objects). Responses include annotations describing the dataset's source and topic, pagination metadata, a list of columns, and the data records themselves. Queries can include or exclude specific members of a dimension to control which categories are considered when aggregating measures.

The API is intended for developers and researchers who want programmatic access to Data USA's underlying datasets, such as population figures by state and year, rather than using the site's visualizations directly.

Key features

  • Query US public data via REST endpoints returning JSON, CSV, TSV, Parquet, or Excel
  • Explore available datasets through the /cubes and /cubes/{name} endpoints
  • Filter results with include/exclude parameters on any dimension member
  • Discover filterable values for a dimension via the /members endpoint
  • Drilldown and measure query parameters let users select dimensions and metrics to return
  • Responses include metadata annotations like source name, topic, and dataset description

Frequently asked questions

What data formats does the API support?

The data.{format} endpoint supports csv, tsv, parquet, xlsx, jsonarrays, and jsonrecords formats.

What is the root URL for API requests?

The root URL is https://api.datausa.io/tesseract, with endpoints like /cubes, /cubes/{name}, /members, and /data.{format} built on top of it.

How do I find out what datasets are available?

You can query the /cubes endpoint for a list of all available data cubes, and /cubes/{name} for the full schema of a specific cube including its measures, dimensions, and levels.

How do I filter query results?

Use the include or exclude parameters with a level name and member key(s) to filter which dimension members are considered in the query.

Who is this API for?

It is for developers who want to explore and query US public datasets, such as Census population data, programmatically.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • Screenshot Scout favicon
  • TalorData favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product