List growth and income observations
curl --request GET \
--url https://api.darvas.app/v1/macro/gdp \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/macro/gdp"
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', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"gdp": [
{
"series": "real_gdp_growth",
"date": "2026-07-01",
"value": 2.8,
"change_prior": 0.4,
"change_year": -0.3,
"change_year_pct": -9.7,
"first_published_value": 2.6
}
]
}{
"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
US GDP Growth, GDI & Corporate Profits API
Query 12 official BEA national accounts series including real and nominal GDP, GDP growth components, GDI, corporate profits and saving rate.
List growth and income observations
curl --request GET \
--url https://api.darvas.app/v1/macro/gdp \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/macro/gdp"
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', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"gdp": [
{
"series": "real_gdp_growth",
"date": "2026-07-01",
"value": 2.8,
"change_prior": 0.4,
"change_year": -0.3,
"change_year_pct": -9.7,
"first_published_value": 2.6
}
]
}{
"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
One row per quarter or month of a series. Passseries; the ids are listed by GDP Series.
| Series | Frequency | BEA code |
|---|---|---|
real_gdp_growth, real_gdp, nominal_gdp | Quarterly | A191RL, A191RX, A191RC |
consumption_contribution, investment_contribution, net_exports_contribution, government_contribution | Quarterly | DPCERY, A006RY, A019RY, A822RY |
real_gdi_growth, corporate_profits | Quarterly | A261RL, A051RC |
personal_income, saving_rate, real_pce | Monthly | A065RC, A072RC, DPCERX |
value is the newest. For quarters released since 25 November 2026, first_published_value is the advance estimate.
| Coverage | Details |
|---|---|
| Series | 12 official BEA national accounts series covering quarterly GDP, GDI and corporate profits plus monthly income and saving |
| Pagination | Up to 1,000 rows per page in date order; follow next_page_url with cursor |
| Discovery | Series IDs and BEA codes live at GDP Series |
| MCP tool | list_gdp on the data API MCP server |
Example
import os
import requests
headers = {"X-API-KEY": os.environ["DARVAS_API_KEY"]}
base = "https://api.darvas.app/v1/macro"
growth = requests.get(f"{base}/gdp", headers=headers, params={"series": "real_gdp_growth", "start_date": "2024-01-01"}).json()
for quarter in growth["gdp"]:
print(quarter["date"], quarter["value"], "first estimate", quarter["first_published_value"])
Authorizations
apiKeybearerKey
Query Parameters
Response
List growth and income observations: one page.
The answer of GET /macro/gdp.