Macro & Micro Economic Data Checker API

API Endpoint Specifications

  • Endpoint Path: /api/1/economics-data
  • Type of Data: JSON & 20/minute
  • Data Source: USA BLS
  • Request Limit: 500 request/month
  • Script & Integration: Code to integrate with cURL, JS, Python, Ruby, Php, Node.js, Java, .NET, Rust, Go, Typescript
Macro & Micro Economic Data Checker API Endpoint Basic Info

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


Available API Arguments & Parameters

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


Code Integration and Response

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": ""
}