List the series of growth and income observations
curl --request GET \
--url https://api.darvas.app/v1/macro/gdp/series \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/macro/gdp/series"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/macro/gdp/series', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"resource": "gdp",
"series": []
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}GDP & Income
BEA GDP & National Accounts Series IDs API
List all 12 official BEA GDP, GDI, corporate profits and personal income series identifiers accepted by the Darvas US GDP and Income Data API.
List the series of growth and income observations
curl --request GET \
--url https://api.darvas.app/v1/macro/gdp/series \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/macro/gdp/series"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/macro/gdp/series', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"resource": "gdp",
"series": []
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Overview
The ids to pass asseries, with their units and BEA code.
| Coverage | Details |
|---|---|
| Series | All 12 BEA national accounts series IDs accepted by GDP & Income |
| Fields | Series ID, title, units, frequency, first date and BEA code |
| Credits | One credit per call that returns data, however many rows it lists |
| MCP tool | list_gdp_series on the data API MCP server |
Example
curl -H "X-API-KEY: $DARVAS_API_KEY" \
"https://api.darvas.app/v1/macro/gdp/series"
Authorizations
apiKeybearerKey
Response
List the series of growth and income observations: one page.