QuantSet Docs Developer console

Endpoints / Macro and FX

Economic indicators

Dated macro observations such as UNRATE, FEDFUNDS, CPIAUCSL, high-yield spreads and real GDP growth.

GET/api/v1/macro/indicators

API key1 credit per request Use a key with access to this operation.

View as MarkdownWhole API as text

Parameters

series_idsstring

Comma-separated macroeconomic series IDs (e.g. UNRATE,FEDFUNDS,CPIAUCSL,A191RL1Q225SBEA)

latest_onlyboolean

Return only the latest observation per series

Optional parameters (6)
startstring

First date to include, as an ISO date (YYYY-MM-DD).

endstring

Last date to include, as an ISO date (YYYY-MM-DD).

limitinteger, 1 to 5,000

Maximum number of rows to return.

cursorstring

Opaque continuation. Pass it unchanged with the original filters and snapshot_id.

snapshot_idstring

Pin the request to one immutable snapshot so a read across several pages stays consistent.

formatjson | csv

Return a JSON page or UTF-8 CSV rows.

Response

Each row has these fields. Rows arrive in data, next to schema_version, snapshot_id, total_count, next_cursor, provenance.

  • series_idstring

    The identifier of the economic or reference series.

  • datestring

    The trading day or observation date, YYYY-MM-DD.

  • valuenumber

    The observation's value.

  • titlestring

    The title of the series, filing or article.

View response example or schema

Research questions

What were the latest observations for unemployment, the policy rate and consumer prices?

GET https://api.quantset.dev/api/v1/macro/indicators?series_ids=UNRATE,FEDFUNDS,CPIAUCSL&latest_only=true

Match each row to its series_id and date. latest_only=true selects the latest available observation separately for each series.

How can I build a dated unemployment series?

GET https://api.quantset.dev/api/v1/macro/indicators?series_ids=UNRATE&start=2024-01-01&end=2024-12-31

Keep one series identifier and sort its observations by date before calculating changes in the rate.

Reading the results

Do not average values across series with different units. Compare changes within one series or build an explicitly aligned multi-series table.

Coverage and limits

The latest values may represent different periods. For history, disable latest_only and request a date window.

Related guides

CSV, spreadsheets and agents

The same rows as a spreadsheet-ready table. Add format=csv to the request.

curl "https://api.quantset.dev/api/v1/macro/indicators?series_ids=UNRATE,FEDFUNDS,CPIAUCSL&latest_only=true&format=csv" -H "X-API-Key: YOUR_API_KEY"

Or pull it straight into Google Sheets with one formula. Excel and larger pulls

=IMPORTDATA("https://api.quantset.dev/api/v1/macro/indicators?series_ids=UNRATE,FEDFUNDS,CPIAUCSL&latest_only=true&format=csv&apikey=YOUR_API_KEY")

AI agents call this endpoint over HTTP, or read its Markdown version. Connect Claude, ChatGPT, Cursor or your own agent

Errors

StatusCodeWhat to do
400conflicting_credentialsSupply one credential.
401invalid_credentialsSupply a valid API key.
402insufficient_creditsReduce the request ceiling or refill your credits.
403insufficient_accessYour key does not have the required access.
409snapshot_changedStart the read again with the current snapshot.
413export_too_largeReduce the page size before requesting CSV again.
422invalid_parameterCorrect the named parameter and retry.
429rate_limitedWait for Retry-After seconds.
500internal_errorThe request could not be completed.
503temporarily_unavailableRetry safe reads after a short delay.

Questions

What does Economic indicators cost?
1 credit for each successful request. A request that fails costs nothing.
Which plan includes it?
Every account. Free credits, credit packs and subscriptions all read this data.
How do I read more than one page?
When next_cursor is not null, send it back as cursor together with the same snapshot_id, and repeat until it is null.
Can I get it as CSV or in a spreadsheet?
Yes. Add format=csv to the request. In Google Sheets, put that URL inside IMPORTDATA with a data-only key in apikey.
Can an AI agent use this?
Yes. An agent calls it over HTTP like any client. Add .md to this page's address for a version written for agents.
What does null mean in the response?
The value could not be confirmed. It is never a zero, so treat it as missing in your own calculations.