USDA Grain Prices API
getUSDAGrainPrices
Barchart OnDemand's getUSDAGrainPrices API provides daily cash grain bids and prices for grain buying locations throughout the United States covering corn, wheat, oats and soybeans sourcing from USDA reports. This API refreshes on an hourly basis, so bids and prices from USDA reports would be available within an hour after the report is released.
View All APIscommodityTypesoptional
The type of commodity. Includes: Corn ("C"), Corn Crude Oil ("CCO"), Crude Soybean Oil ("CSO"), DNS/NS Wheat 14% ("WDN"), HRW Wheat ("HRW"), HRW Wheat 11.5% ("HRW11"), Oats ("O"), Ord HRW Wheat ("HRWORD"), Soybean Meal 48% ("SM"), Soybeans ("S"), SRW Wheat ("SRW"), SWW Wheat ("SWW").
C
bidTypesoptional
The type of bid. Includes: Export ("E"), Processor ("P"), River ("R"), Terminal ("T") and Barge Loading ("B").
E
always returned
A sequence of characters. (example: GOOG)
always returned
A sequence of characters. (example: GOOG)
always returned
A sequence of characters. (example: GOOG)
always returned
A sequence of characters. (example: GOOG)
always returned
A sequence of characters. (example: GOOG)
always returned
A sequence of characters. (example: GOOG)
always returned
A sequence of characters. (example: GOOG)
always returned
A numeric type defining a number with fractional parts. (example: 2.14)
always returned
A numeric type defining a number with fractional parts. (example: 2.14)
always returned
A numeric type defining a number with fractional parts. (example: 2.14)
always returned
A numeric type defining a number with fractional parts. (example: 2.14)
always returned
A sequence of characters. (example: GOOG)
always returned
A numeric type defining a number with fractional parts. (example: 2.14)
always returned
A numeric type defining a number with fractional parts. (example: 2.14)
always returned
A numeric type defining a number with fractional parts. (example: 2.14)
always returned
A numeric type defining a number with fractional parts. (example: 2.14)
always returned
A sequence of characters. (example: GOOG)
always returned
A sequence of characters. (example: GOOG)
always returned
A sequence of characters. (example: GOOG)
always returned
A sequence of characters. (example: GOOG)
always returned
A date in the format of YYYY-MM-DD.
always returned
A sequence of characters. (example: GOOG)
always returned
A date in the format of YYYY-MM-DD.
always returned
A sequence of characters. (example: GOOG)
always returned
A sequence of characters. (example: GOOG)
always returned
A date in the format of YYYY-MM-DD.
always returned
A numeric type defining a number with fractional parts. (example: 2.14)
always returned
A sequence of characters. (example: GOOG)
always returned
A numeric type defining a number with fractional parts. (example: 2.14)
GET
GET https://ondemand.websol.barchart.com/getUSDAGrainPrices.json?apikey=YOUR_API_KEY&commodityTypes=C&bidTypes=E
Host: ondemand.websol.barchart.com
POST
POST https://ondemand.websol.barchart.com/getUSDAGrainPrices.json
Host: ondemand.websol.barchart.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
apikey=YOUR_API_KEY&commodityTypes=C&bidTypes=E
Response
{
"status": {
"code": 200,
"message": "Success."
},
"results": [
{
"commodityType": "Corn",
"grade": "US #2",
"protein": null,
"locationState": "OR",
"locationCity": "Portland",
"location": "Gulf Coast Ports - LA",
"bidType": "Export",
"lowPrice": 5.105,
"lowPriceChange": 0.0225,
"lowBasis": 81,
"lowBasisChange": 0,
"lowBasisMonth": "Z",
"highPrice": 5.185,
"highPriceChange": 0.0225,
"highBasis": 89,
"highBasisChange": 0,
"highBasisMonth": "Z",
"freight": "C.I.F.",
"transMode": "Barge",
"current": "No",
"deliveryStart": "2024-12-01",
"deliveryStartHalf": null,
"deliveryEnd": "2024-12-01",
"deliveryEndHalf": null,
"report": "Louisiana and Texas Export Bids",
"reportDate": "2024-11-20",
"priceChange": 0.0225,
"basis": "81.0000 Z to 89.0000 Z",
"bidChange": 0
},
{
"commodityType": "Corn",
"grade": "US #2",
"protein": null,
"locationState": "OR",
"locationCity": "Portland",
"location": "Gulf Coast Ports - LA",
"bidType": "Export",
"lowPrice": 5.12,
"lowPriceChange": 0.0125,
"lowBasis": 73,
"lowBasisChange": 0,
"lowBasisMonth": "H",
"highPrice": 5.17,
"highPriceChange": 0.0125,
"highBasis": 78,
"highBasisChange": 0,
"highBasisMonth": "H",
"freight": "C.I.F.",
"transMode": "Barge",
"current": "No",
"deliveryStart": "2025-01-01",
"deliveryStartHalf": null,
"deliveryEnd": "2025-01-01",
"deliveryEndHalf": null,
"report": "Louisiana and Texas Export Bids",
"reportDate": "2024-11-20",
"priceChange": 0.0125,
"basis": "73.0000 H to 78.0000 H",
"bidChange": 0
},
{
"commodityType": "Corn",
"grade": "US #2",
"protein": null,
"locationState": "OR",
"locationCity": "Portland",
"location": "Gulf Coast Ports - LA",
"bidType": "Export",
"lowPrice": 5.12,
"lowPriceChange": 0.0125,
"lowBasis": 73,
"lowBasisChange": 0,
"lowBasisMonth": "H",
"highPrice": 5.19,
"highPriceChange": 0.0125,
"highBasis": 80,
"highBasisChange": 0,
"highBasisMonth": "H",
"freight": "C.I.F.",
"transMode": "Barge",
"current": "No",
"deliveryStart": "2025-02-01",
"deliveryStartHalf": null,
"deliveryEnd": "2025-02-01",
"deliveryEndHalf": null,
"report": "Louisiana and Texas Export Bids",
"reportDate": "2024-11-20",
"priceChange": 0.0125,
"basis": "73.0000 H to 80.0000 H",
"bidChange": 0
},
{
"commodityType": "Corn",
"grade": "US #2",
"protein": null,
"locationState": "OR",
"locationCity": "Portland",
"location": "Gulf Coast Ports - LA",
"bidType": "Export",
"lowPrice": 5.09,
"lowPriceChange": 0.0125,
"lowBasis": 70,
"lowBasisChange": 0,
"lowBasisMonth": "H",
"highPrice": 5.17,
"highPriceChange": 0.0125,
"highBasis": 78,
"highBasisChange": 0,
"highBasisMonth": "H",
"freight": "C.I.F.",
"transMode": "Barge",
"current": "No",
"deliveryStart": "2025-03-01",
"deliveryStartHalf": null,
"deliveryEnd": "2025-03-01",
"deliveryEndHalf": null,
"report": "Louisiana and Texas Export Bids",
"reportDate": "2024-11-20",
"priceChange": 0.0125,
"basis": "70.0000 H to 78.0000 H",
"bidChange": 0
},
{
"commodityType": "Corn",
"grade": "US #2",
"protein": null,
"locationState": "OR",
"locationCity": "Portland",
"location": "Gulf Coast Ports - LA",
"bidType": "Export",
"lowPrice": 5.0825,
"lowPriceChange": 0.01,
"lowBasis": 62,
"lowBasisChange": 0,
"lowBasisMonth": "K",
"highPrice": 5.1325,
"highPriceChange": 0.01,
"highBasis": 67,
"highBasisChange": 0,
"highBasisMonth": "K",
"freight": "C.I.F.",
"transMode": "Barge",
"current": "No",
"deliveryStart": "2025-04-01",
"deliveryStartHalf": null,
"deliveryEnd": "2025-04-01",
"deliveryEndHalf": null,
"report": "Louisiana and Texas Export Bids",
"reportDate": "2024-11-20",
"priceChange": 0.01,
"basis": "62.0000 K to 67.0000 K",
"bidChange": 0
},
{
"commodityType": "Corn",
"grade": "US #2",
"protein": null,
"locationState": "OR",
"locationCity": "Portland",
"location": "Gulf Coast Ports - LA",
"bidType": "Export",
"lowPrice": 5.085,
"lowPriceChange": 0.0225,
"lowBasis": 79,
"lowBasisChange": 0,
"lowBasisMonth": "Z",
"highPrice": 5.185,
"highPriceChange": 0.0225,
"highBasis": 89,
"highBasisChange": 0,
"highBasisMonth": "Z",
"freight": "C.I.F.",
"transMode": "Barge",
"current": "Yes",
"deliveryStart": null,
"deliveryStartHalf": null,
"deliveryEnd": null,
"deliveryEndHalf": null,
"report": "Louisiana and Texas Export Bids",
"reportDate": "2024-11-20",
"priceChange": 0.0225,
"basis": "79.0000 Z to 89.0000 Z",
"bidChange": 0
}
]
}
GET
GET https://ondemand.websol.barchart.com/getUSDAGrainPrices.xml?apikey=YOUR_API_KEY&commodityTypes=C&bidTypes=E
Host: ondemand.websol.barchart.com
POST
POST https://ondemand.websol.barchart.com/getUSDAGrainPrices.xml
Host: ondemand.websol.barchart.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
apikey=YOUR_API_KEY&commodityTypes=C&bidTypes=E
Response
<?xml version="1.0" encoding="utf-8"?>
<getUSDAGrainPrices>
<status>
<code>200</code>
<message>Success.</message>
</status>
<item>
<commodityType>Corn</commodityType>
<grade>US #2</grade>
<protein/>
<locationState>OR</locationState>
<locationCity>Portland</locationCity>
<location>Gulf Coast Ports - LA</location>
<bidType>Export</bidType>
<lowPrice>5.105</lowPrice>
<lowPriceChange>0.0225</lowPriceChange>
<lowBasis>81</lowBasis>
<lowBasisChange>0</lowBasisChange>
<lowBasisMonth>Z</lowBasisMonth>
<highPrice>5.185</highPrice>
<highPriceChange>0.0225</highPriceChange>
<highBasis>89</highBasis>
<highBasisChange>0</highBasisChange>
<highBasisMonth>Z</highBasisMonth>
<freight>C.I.F.</freight>
<transMode>Barge</transMode>
<current>No</current>
<deliveryStart>2024-12-01</deliveryStart>
<deliveryStartHalf/>
<deliveryEnd>2024-12-01</deliveryEnd>
<deliveryEndHalf/>
<report>Louisiana and Texas Export Bids</report>
<reportDate>2024-11-20</reportDate>
<priceChange>0.0225</priceChange>
<basis>81.0000 Z to 89.0000 Z</basis>
<bidChange>0</bidChange>
</item>
<item>
<commodityType>Corn</commodityType>
<grade>US #2</grade>
<protein/>
<locationState>OR</locationState>
<locationCity>Portland</locationCity>
<location>Gulf Coast Ports - LA</location>
<bidType>Export</bidType>
<lowPrice>5.12</lowPrice>
<lowPriceChange>0.0125</lowPriceChange>
<lowBasis>73</lowBasis>
<lowBasisChange>0</lowBasisChange>
<lowBasisMonth>H</lowBasisMonth>
<highPrice>5.17</highPrice>
<highPriceChange>0.0125</highPriceChange>
<highBasis>78</highBasis>
<highBasisChange>0</highBasisChange>
<highBasisMonth>H</highBasisMonth>
<freight>C.I.F.</freight>
<transMode>Barge</transMode>
<current>No</current>
<deliveryStart>2025-01-01</deliveryStart>
<deliveryStartHalf/>
<deliveryEnd>2025-01-01</deliveryEnd>
<deliveryEndHalf/>
<report>Louisiana and Texas Export Bids</report>
<reportDate>2024-11-20</reportDate>
<priceChange>0.0125</priceChange>
<basis>73.0000 H to 78.0000 H</basis>
<bidChange>0</bidChange>
</item>
<item>
<commodityType>Corn</commodityType>
<grade>US #2</grade>
<protein/>
<locationState>OR</locationState>
<locationCity>Portland</locationCity>
<location>Gulf Coast Ports - LA</location>
<bidType>Export</bidType>
<lowPrice>5.12</lowPrice>
<lowPriceChange>0.0125</lowPriceChange>
<lowBasis>73</lowBasis>
<lowBasisChange>0</lowBasisChange>
<lowBasisMonth>H</lowBasisMonth>
<highPrice>5.19</highPrice>
<highPriceChange>0.0125</highPriceChange>
<highBasis>80</highBasis>
<highBasisChange>0</highBasisChange>
<highBasisMonth>H</highBasisMonth>
<freight>C.I.F.</freight>
<transMode>Barge</transMode>
<current>No</current>
<deliveryStart>2025-02-01</deliveryStart>
<deliveryStartHalf/>
<deliveryEnd>2025-02-01</deliveryEnd>
<deliveryEndHalf/>
<report>Louisiana and Texas Export Bids</report>
<reportDate>2024-11-20</reportDate>
<priceChange>0.0125</priceChange>
<basis>73.0000 H to 80.0000 H</basis>
<bidChange>0</bidChange>
</item>
<item>
<commodityType>Corn</commodityType>
<grade>US #2</grade>
<protein/>
<locationState>OR</locationState>
<locationCity>Portland</locationCity>
<location>Gulf Coast Ports - LA</location>
<bidType>Export</bidType>
<lowPrice>5.09</lowPrice>
<lowPriceChange>0.0125</lowPriceChange>
<lowBasis>70</lowBasis>
<lowBasisChange>0</lowBasisChange>
<lowBasisMonth>H</lowBasisMonth>
<highPrice>5.17</highPrice>
<highPriceChange>0.0125</highPriceChange>
<highBasis>78</highBasis>
<highBasisChange>0</highBasisChange>
<highBasisMonth>H</highBasisMonth>
<freight>C.I.F.</freight>
<transMode>Barge</transMode>
<current>No</current>
<deliveryStart>2025-03-01</deliveryStart>
<deliveryStartHalf/>
<deliveryEnd>2025-03-01</deliveryEnd>
<deliveryEndHalf/>
<report>Louisiana and Texas Export Bids</report>
<reportDate>2024-11-20</reportDate>
<priceChange>0.0125</priceChange>
<basis>70.0000 H to 78.0000 H</basis>
<bidChange>0</bidChange>
</item>
<item>
<commodityType>Corn</commodityType>
<grade>US #2</grade>
<protein/>
<locationState>OR</locationState>
<locationCity>Portland</locationCity>
<location>Gulf Coast Ports - LA</location>
<bidType>Export</bidType>
<lowPrice>5.0825</lowPrice>
<lowPriceChange>0.01</lowPriceChange>
<lowBasis>62</lowBasis>
<lowBasisChange>0</lowBasisChange>
<lowBasisMonth>K</lowBasisMonth>
<highPrice>5.1325</highPrice>
<highPriceChange>0.01</highPriceChange>
<highBasis>67</highBasis>
<highBasisChange>0</highBasisChange>
<highBasisMonth>K</highBasisMonth>
<freight>C.I.F.</freight>
<transMode>Barge</transMode>
<current>No</current>
<deliveryStart>2025-04-01</deliveryStart>
<deliveryStartHalf/>
<deliveryEnd>2025-04-01</deliveryEnd>
<deliveryEndHalf/>
<report>Louisiana and Texas Export Bids</report>
<reportDate>2024-11-20</reportDate>
<priceChange>0.01</priceChange>
<basis>62.0000 K to 67.0000 K</basis>
<bidChange>0</bidChange>
</item>
<item>
<commodityType>Corn</commodityType>
<grade>US #2</grade>
<protein/>
<locationState>OR</locationState>
<locationCity>Portland</locationCity>
<location>Gulf Coast Ports - LA</location>
<bidType>Export</bidType>
<lowPrice>5.085</lowPrice>
<lowPriceChange>0.0225</lowPriceChange>
<lowBasis>79</lowBasis>
<lowBasisChange>0</lowBasisChange>
<lowBasisMonth>Z</lowBasisMonth>
<highPrice>5.185</highPrice>
<highPriceChange>0.0225</highPriceChange>
<highBasis>89</highBasis>
<highBasisChange>0</highBasisChange>
<highBasisMonth>Z</highBasisMonth>
<freight>C.I.F.</freight>
<transMode>Barge</transMode>
<current>Yes</current>
<deliveryStart/>
<deliveryStartHalf/>
<deliveryEnd/>
<deliveryEndHalf/>
<report>Louisiana and Texas Export Bids</report>
<reportDate>2024-11-20</reportDate>
<priceChange>0.0225</priceChange>
<basis>79.0000 Z to 89.0000 Z</basis>
<bidChange>0</bidChange>
</item>
</getUSDAGrainPrices>
GET
GET https://ondemand.websol.barchart.com/getUSDAGrainPrices.csv?apikey=YOUR_API_KEY&commodityTypes=C&bidTypes=E
Host: ondemand.websol.barchart.com
POST
POST https://ondemand.websol.barchart.com/getUSDAGrainPrices.csv
Host: ondemand.websol.barchart.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
apikey=YOUR_API_KEY&commodityTypes=C&bidTypes=E
Response
commodityType,grade,protein,locationState,locationCity,location,bidType,lowPrice,lowPriceChange,lowBasis,lowBasisChange,lowBasisMonth,highPrice,highPriceChange,highBasis,highBasisChange,highBasisMonth,freight,transMode,current,deliveryStart,deliveryStartHalf,deliveryEnd,deliveryEndHalf,report,reportDate,priceChange,basis,bidChange
"Corn","US #2","","OR","Portland","Gulf Coast Ports - LA","Export","5.105","0.0225","81","0","Z","5.185","0.0225","89","0","Z","C.I.F.","Barge","No","2024-12-01","","2024-12-01","","Louisiana and Texas Export Bids","2024-11-20","0.0225","81.0000 Z to 89.0000 Z","0"
"Corn","US #2","","OR","Portland","Gulf Coast Ports - LA","Export","5.12","0.0125","73","0","H","5.17","0.0125","78","0","H","C.I.F.","Barge","No","2025-01-01","","2025-01-01","","Louisiana and Texas Export Bids","2024-11-20","0.0125","73.0000 H to 78.0000 H","0"
"Corn","US #2","","OR","Portland","Gulf Coast Ports - LA","Export","5.12","0.0125","73","0","H","5.19","0.0125","80","0","H","C.I.F.","Barge","No","2025-02-01","","2025-02-01","","Louisiana and Texas Export Bids","2024-11-20","0.0125","73.0000 H to 80.0000 H","0"
"Corn","US #2","","OR","Portland","Gulf Coast Ports - LA","Export","5.09","0.0125","70","0","H","5.17","0.0125","78","0","H","C.I.F.","Barge","No","2025-03-01","","2025-03-01","","Louisiana and Texas Export Bids","2024-11-20","0.0125","70.0000 H to 78.0000 H","0"
"Corn","US #2","","OR","Portland","Gulf Coast Ports - LA","Export","5.0825","0.01","62","0","K","5.1325","0.01","67","0","K","C.I.F.","Barge","No","2025-04-01","","2025-04-01","","Louisiana and Texas Export Bids","2024-11-20","0.01","62.0000 K to 67.0000 K","0"
"Corn","US #2","","OR","Portland","Gulf Coast Ports - LA","Export","5.085","0.0225","79","0","Z","5.185","0.0225","89","0","Z","C.I.F.","Barge","Yes","","","","","Louisiana and Texas Export Bids","2024-11-20","0.0225","79.0000 Z to 89.0000 Z","0"
<?php
$ondemand = new SoapClient('https://ondemand.websol.barchart.com/service?wsdl');
$params = [
'apikey' => 'YOUR_API_KEY',
'commodityTypes' => 'C',
'bidTypes' => 'E',
];
$result = $ondemand->getUSDAGrainPrices($params);
var_dump($result);
Dim ondemand
Dim result
Set ondemand = Server.CreateObject("MSSOAP.SoapClient30")
ondemand.ClientProperty("ServerHTTPRequest") = True
ondemand.MSSoapInit("https://ondemand.websol.barchart.com/service?wsdl")
Set result = ondemand.getUSDAGrainPrices("YOUR_API_KEY", "C", "E")
use SOAP::Lite;
use SOAP::WSDL;
my $ondemand = SOAP::Lite
-> service('https://ondemand.websol.barchart.com/service?wsdl');
my $result = $ondemand->getUSDAGrainPrices('YOUR_API_KEY', 'C', 'E');
print $result;
from suds.client import Client
ondemand = Client('https://ondemand.websol.barchart.com/service?wsdl')
result = ondemand.service.getUSDAGrainPrices('YOUR_API_KEY', 'C', 'E')
print(result)
require 'savon'
ondemand = Savon.client(wsdl: 'https://ondemand.websol.barchart.com/service?wsdl')
response = ondemand.call(
:getUSDAGrainPrices,
message: {
apikey: 'YOUR_API_KEY',
commodityTypes: 'C',
bidTypes: 'E',
}
)
response.body