Authentication
All endpoints use HTTP Basic Auth. Pass your Alphacast API key as the username with an empty password.For providers that require an upstream API key (such as FRED or INEGI), save your key via
PUT /user-keys/{slug} first. Alphacast applies it automatically on every series request.Provider series endpoints
GET /providers//series/
Returns a preview of the series: the last ~24 data points, the series label, and metadata. The response always includes"is_preview": true to signal that the data is truncated.
Use this endpoint to confirm you have the right series before fetching the full history.
Path parameters
The series identifier as recognized by the upstream provider. Format varies by provider — for example,
UNRATE for FRED, CUUR0000SA0 for BLS, or NY.GDP.PCAP.CD for World Bank.Some providers — notably SDMX-style sources (UNICEF, ECB, INSEE, BOI, FAOSTAT, Norges Bank) — use hierarchical IDs that contain forward slashes, such as IMF/IFS/Q.US.NGDP_XDC. Alphacast accepts these in the URL as-is; you do not need to URL-encode the / characters.Descriptive name of the series as provided by the upstream source. Example:
"Unemployment Rate".Provider-specific metadata about the series. Contents vary by provider but may include frequency, units, seasonal adjustment, source, and notes.
Always
true for this endpoint. Indicates the data array is truncated to the most recent observations.PUT /user-keys/fred to remove the restriction.
POST /providers//series//data
Returns the full historical time series. This endpoint accepts provider-specific parameters in the request body to control units, frequency, date ranges, and other transformations. Path parameters Request bodyProvider-specific parameters. The available keys depend on the provider — consult the
parameters array in GET /providers/{slug} for valid options.Common examples:Complete array of all available observations, each with
date (string, YYYY-MM-DD) and value (number or null).Complete workflow example
The following example shows the full sequence: match a provider, search for a series, preview it, then fetch the complete history.1
Find the right provider
2
Search for a series within the provider
id from the results — for example, FEDFUNDS.3
Preview the series
label and metadata match what you expect. Confirm is_preview: true.4
Fetch the full history
is_preview: false.FRED direct endpoints
These endpoints provide a streamlined interface to FRED without the provider slug workflow. They are useful when you already know your FRED symbol.GET /fred/search/
Searches FRED for series matching the query string and returns matching symbols and descriptions. Path parametersGET /fred//data
Fetches time-series data for a FRED symbol directly. Returns data as CSV by default; use$format=json for a JSON response.
Path parameters
Query parameters
Error responses
All endpoints return a JSON error object with anerror field when a request fails.