#
# # # # #

Commodity Pricing API

API:Financials

US$5US$12

  • Extract commodity pricing data worldwide. It enables users to generate using date range, sector. The repsonse data is in JSON form. Paid API token can access to BuyfromLo onsite app, meanwhile API returns the data in JSON form.

  • For more details regarding API usage obligation & liability, please read Legal Terms of Service & Condition

API Practical Application Showcase 1


Commodity Pricing API

Features

  • Extract commodity pricing data worldwide
  • It enables users to generate using date range, sector
  • The repsonse data is in JSON form
  • Paid API token can access to BuyfromLo onsite app, meanwhile API returns the data in JSON form

API Endpoint Specifications

  • Endpoint Path: /api/1/commodity-pricing
  • Type of Data: JSON & 20/minute
  • Data Source: USA GOV
  • Request Limit: 500 request/month
  • Script & Integration: Code to integrate with cURL, JS, Python, Ruby, Php, Node.js, Java, .NET, Rust, Go, Typescript
Commodity Pricing API Endpoint Basic Info

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


Available API Arguments & Parameters

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


Code Integration and Response

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

                        

4.5 (Overall)

  • 5 stars - 38
  • 4 stars - 10
  • 3 stars - 3
  • 2 stars - 1
  • 1 star - 0

Latest Reviews

FAQ

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.