curl -X POST "https://api.factagora.com/api/v1/timeseries" \ -H "Authorization: Bearer fct_your_api_key" \ -H "Content-Type: application/json" \ -d '{"url": "https://data.worldbank.org/indicator/NY.GDP.MKTP.CD?locations=US"}'
{ "title": "US GDP (Current USD)", "unit": "trillion USD", "dataPoints": [ { "timestamp": "2020-01-01", "value": 21.1, "label": "2020" }, { "timestamp": "2021-01-01", "value": 23.0, "label": "2021" }, { "timestamp": "2022-01-01", "value": 25.5, "label": "2022" }, { "timestamp": "2023-01-01", "value": 27.4, "label": "2023" } ], "meta": { "total": 4, "executionTimeMs": 520 } }
Extract timeseries data from a URL or text
url
text
USD
%
million
Show Data point fields
Show Meta fields
Was this page helpful?