API:Financials
API Endpoint Path
required
Commodity Pricing API
api/1/commodity-pricing
Call Method
Required
POST
Type of Data Return
JSON
Output structured JSON data on multi commodity pricing
token
required
BUYFROMLO API token. Free and paid subscription API are available: /api/1/commodity-pricing-data-generator, and accessible to on-site APP on /app/1/commodity-pricing-data-generator as well
commodityname
required
Input a commodity name. Current options: arabica_coffee, robusta_coffee, global_sugar, global_wheat, global_oat, global_potato, global_cocoa, global_cheese, kenyan_tea, global_soybean, thai_rice, global_milk, global_corn, global_palmOil, global_soybeanOil, global_sunflowerOil, global_oliveOil, global_cotton, global_wool, europe_brent_oil, usa_wti, ethanooil, copper, zinc, nickel, alunium, gold, silver
Commodity Pricing API
api/1/commodity-pricing
Python Code Sample
import requests
apiendpoint = "https://api.buyfromlo.com/api/1/commodity-pricing"
## Required Arguments & Parameters ##
token = "your buyfromlo token"
commodityname = "Enter a commodity name referring to the options"
data={"commodityname": commodityname}
headers={"Authorization": "Bearer " + token}
## Call the api ##
response = requests.post(apiendpoint, json=data, headers=headers)
print(response.status_code)
print(response.json())
JSON Response Sample
{
"Date":"",
"commodity name + value":""
}
The Commodity Pricing API is a tool that allows users to extract commodity pricing data worldwide.
The API provides data on over 100 different commodities, including metals, energy, and agricultural products.
The data is provided in JSON format.
The data is updated every 20 minutes.
The data is sourced from various government agencies, including the United States Department of Agriculture and the United States Geological Survey.
The API has a rate limit of 500 requests per month per token.
The API supports a variety of programming languages, including cURL, JavaScript, Python, Ruby, PHP, Node.js, Java, .NET, Rust, Go, and TypeScript.
You can get started with the API by signing up for a free account at [website].
The API offers both free and paid subscription plans. The free plan includes 500 requests per month, while the paid plan includes 10,000 requests per month.
The on-site APP is a web application that allows you to use the API without writing any code.