API:Financials
API Endpoint Path
required
Macro & Micro Economic Data Checker
api/1/economics-data
Call Method
Required
GET
Type of Data Return
JSON
Output structured JSON data on Macro & Micro economic
token
required
BUYFROMLO API token. Free and subscription APIs are both available on /api/1/economics-data, and accessible to on-site APP on /app/3/economics-data as well
country
required
Input a country name. Current available country: us
type
required
Select a macro & micro economic data type: fedfundrate, usCPI, uscoreCPI, uscorePCE, ustreasury, unemploymentrate
treasuryperiod
Optional
For USA treasury rate, select a window duration: 1monyield, 3monyield, sixmonthyield, 1yearyield, twoyrYield, threeyrYield, fiveyrYield, sevenyrYield, 10yearyield, twentyyrYield, thirtyyrYield
Macro & Micro Economic Data Checker
api/1/economics-data
Python Code Sample
import requests
apiendpoint = "https://api.buyfromlo.com/api/1/economics-data?"
## Required Arguments & Parameters ##
token = "your buyfromlo token"
country = ""
type = ""
## Optional ##
treasuryperiod = ""
data="country=" + country + "&type=" + type + "&treasuryperiod=" + treasuryperiod
headers={"Authorization": "Bearer " + token}
## Call the api ##'&
response = requests.get(apiendpoint + data, headers=headers)
print(response.status_code)
print(response.json())
JSON Response Sample
{
"Date":"",
"value": ""
}
The Macro & Micro Economic Data Checker API is a tool that allows you to access and analyze economic data from the United States.
You can access data on a variety of economic indicators, including GDP, inflation, unemployment, and consumer spending.
The data is sourced from the United States Bureau of Labor Statistics (BLS).
You can access the API by signing up for a free account on the BuyfromLo website.
Yes, there are some limitations on how you can use the API. For example, you cannot use the API to resell data or to create derivative products.
There are several benefits to using the API, including -Access to a wide range of economic data Ability to analyze data in real time Easy-to-use interface Affordable pricing
The API is available for free on a limited basis. You can also purchase a subscription to the API, which gives you access to more data and features.
Some of the most popular use cases for the API include: Economic research Financial analysis Investment decision-making Marketing and sales planning
The free version of the API is limited to 500 requests per month. The paid version of the API gives you access to more data, more features, and a higher request limit.
You can get started with the API by signing up for a free account on the BuyfromLo website. You can then use the API to access and analyze economic data from the United States.