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.15,
"lowPriceChange": 0.0525,
"lowBasis": 69,
"lowBasisChange": 0,
"lowBasisMonth": "H",
"highPrice": 5.17,
"highPriceChange": 0.0525,
"highBasis": 71,
"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-12-20",
"priceChange": 0.0525,
"basis": "69.0000 H to 71.0000 H",
"bidChange": 0
},
{
"commodityType": "Corn",
"grade": "US #2",
"protein": null,
"locationState": "OR",
"locationCity": "Portland",
"location": "Gulf Coast Ports - LA",
"bidType": "Export",
"lowPrice": 5.17,
"lowPriceChange": 0.0525,
"lowBasis": 71,
"lowBasisChange": 0,
"lowBasisMonth": "H",
"highPrice": 5.18,
"highPriceChange": 0.0525,
"highBasis": 72,
"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-12-20",
"priceChange": 0.0525,
"basis": "71.0000 H to 72.0000 H",
"bidChange": 0
},
{
"commodityType": "Corn",
"grade": "US #2",
"protein": null,
"locationState": "OR",
"locationCity": "Portland",
"location": "Gulf Coast Ports - LA",
"bidType": "Export",
"lowPrice": 5.14,
"lowPriceChange": 0.0525,
"lowBasis": 68,
"lowBasisChange": 0,
"lowBasisMonth": "H",
"highPrice": 5.15,
"highPriceChange": 0.0525,
"highBasis": 69,
"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-12-20",
"priceChange": 0.0525,
"basis": "68.0000 H to 69.0000 H",
"bidChange": 0
},
{
"commodityType": "Corn",
"grade": "US #2",
"protein": null,
"locationState": "OR",
"locationCity": "Portland",
"location": "Gulf Coast Ports - LA",
"bidType": "Export",
"lowPrice": 5.145,
"lowPriceChange": 0.0525,
"lowBasis": 63,
"lowBasisChange": 0,
"lowBasisMonth": "K",
"highPrice": 5.145,
"highPriceChange": 0.0525,
"highBasis": 63,
"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-12-20",
"priceChange": 0.0525,
"basis": "63.0000 K",
"bidChange": 0
},
{
"commodityType": "Corn",
"grade": "US #2",
"protein": null,
"locationState": "OR",
"locationCity": "Portland",
"location": "Gulf Coast Ports - LA",
"bidType": "Export",
"lowPrice": 5.115,
"lowPriceChange": 0.0525,
"lowBasis": 60,
"lowBasisChange": 0,
"lowBasisMonth": "K",
"highPrice": 5.125,
"highPriceChange": 0.0525,
"highBasis": 61,
"highBasisChange": 0,
"highBasisMonth": "K",
"freight": "C.I.F.",
"transMode": "Barge",
"current": "No",
"deliveryStart": "2025-05-01",
"deliveryStartHalf": null,
"deliveryEnd": "2025-05-01",
"deliveryEndHalf": null,
"report": "Louisiana and Texas Export Bids",
"reportDate": "2024-12-20",
"priceChange": 0.0525,
"basis": "60.0000 K to 61.0000 K",
"bidChange": 0
},
{
"commodityType": "Corn",
"grade": "US #2",
"protein": null,
"locationState": "OR",
"locationCity": "Portland",
"location": "Gulf Coast Ports - LA",
"bidType": "Export",
"lowPrice": 5.13,
"lowPriceChange": 0.0525,
"lowBasis": 67,
"lowBasisChange": 0,
"lowBasisMonth": "H",
"highPrice": 5.15,
"highPriceChange": 0.0525,
"highBasis": 69,
"highBasisChange": 0,
"highBasisMonth": "H",
"freight": "C.I.F.",
"transMode": "Barge",
"current": "Yes",
"deliveryStart": null,
"deliveryStartHalf": null,
"deliveryEnd": null,
"deliveryEndHalf": null,
"report": "Louisiana and Texas Export Bids",
"reportDate": "2024-12-20",
"priceChange": 0.0525,
"basis": "67.0000 H to 69.0000 H",
"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.15</lowPrice>
<lowPriceChange>0.0525</lowPriceChange>
<lowBasis>69</lowBasis>
<lowBasisChange>0</lowBasisChange>
<lowBasisMonth>H</lowBasisMonth>
<highPrice>5.17</highPrice>
<highPriceChange>0.0525</highPriceChange>
<highBasis>71</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-12-20</reportDate>
<priceChange>0.0525</priceChange>
<basis>69.0000 H to 71.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.17</lowPrice>
<lowPriceChange>0.0525</lowPriceChange>
<lowBasis>71</lowBasis>
<lowBasisChange>0</lowBasisChange>
<lowBasisMonth>H</lowBasisMonth>
<highPrice>5.18</highPrice>
<highPriceChange>0.0525</highPriceChange>
<highBasis>72</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-12-20</reportDate>
<priceChange>0.0525</priceChange>
<basis>71.0000 H to 72.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.14</lowPrice>
<lowPriceChange>0.0525</lowPriceChange>
<lowBasis>68</lowBasis>
<lowBasisChange>0</lowBasisChange>
<lowBasisMonth>H</lowBasisMonth>
<highPrice>5.15</highPrice>
<highPriceChange>0.0525</highPriceChange>
<highBasis>69</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-12-20</reportDate>
<priceChange>0.0525</priceChange>
<basis>68.0000 H to 69.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.145</lowPrice>
<lowPriceChange>0.0525</lowPriceChange>
<lowBasis>63</lowBasis>
<lowBasisChange>0</lowBasisChange>
<lowBasisMonth>K</lowBasisMonth>
<highPrice>5.145</highPrice>
<highPriceChange>0.0525</highPriceChange>
<highBasis>63</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-12-20</reportDate>
<priceChange>0.0525</priceChange>
<basis>63.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.115</lowPrice>
<lowPriceChange>0.0525</lowPriceChange>
<lowBasis>60</lowBasis>
<lowBasisChange>0</lowBasisChange>
<lowBasisMonth>K</lowBasisMonth>
<highPrice>5.125</highPrice>
<highPriceChange>0.0525</highPriceChange>
<highBasis>61</highBasis>
<highBasisChange>0</highBasisChange>
<highBasisMonth>K</highBasisMonth>
<freight>C.I.F.</freight>
<transMode>Barge</transMode>
<current>No</current>
<deliveryStart>2025-05-01</deliveryStart>
<deliveryStartHalf/>
<deliveryEnd>2025-05-01</deliveryEnd>
<deliveryEndHalf/>
<report>Louisiana and Texas Export Bids</report>
<reportDate>2024-12-20</reportDate>
<priceChange>0.0525</priceChange>
<basis>60.0000 K to 61.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.13</lowPrice>
<lowPriceChange>0.0525</lowPriceChange>
<lowBasis>67</lowBasis>
<lowBasisChange>0</lowBasisChange>
<lowBasisMonth>H</lowBasisMonth>
<highPrice>5.15</highPrice>
<highPriceChange>0.0525</highPriceChange>
<highBasis>69</highBasis>
<highBasisChange>0</highBasisChange>
<highBasisMonth>H</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-12-20</reportDate>
<priceChange>0.0525</priceChange>
<basis>67.0000 H to 69.0000 H</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.15","0.0525","69","0","H","5.17","0.0525","71","0","H","C.I.F.","Barge","No","2025-01-01","","2025-01-01","","Louisiana and Texas Export Bids","2024-12-20","0.0525","69.0000 H to 71.0000 H","0"
"Corn","US #2","","OR","Portland","Gulf Coast Ports - LA","Export","5.17","0.0525","71","0","H","5.18","0.0525","72","0","H","C.I.F.","Barge","No","2025-02-01","","2025-02-01","","Louisiana and Texas Export Bids","2024-12-20","0.0525","71.0000 H to 72.0000 H","0"
"Corn","US #2","","OR","Portland","Gulf Coast Ports - LA","Export","5.14","0.0525","68","0","H","5.15","0.0525","69","0","H","C.I.F.","Barge","No","2025-03-01","","2025-03-01","","Louisiana and Texas Export Bids","2024-12-20","0.0525","68.0000 H to 69.0000 H","0"
"Corn","US #2","","OR","Portland","Gulf Coast Ports - LA","Export","5.145","0.0525","63","0","K","5.145","0.0525","63","0","K","C.I.F.","Barge","No","2025-04-01","","2025-04-01","","Louisiana and Texas Export Bids","2024-12-20","0.0525","63.0000 K","0"
"Corn","US #2","","OR","Portland","Gulf Coast Ports - LA","Export","5.115","0.0525","60","0","K","5.125","0.0525","61","0","K","C.I.F.","Barge","No","2025-05-01","","2025-05-01","","Louisiana and Texas Export Bids","2024-12-20","0.0525","60.0000 K to 61.0000 K","0"
"Corn","US #2","","OR","Portland","Gulf Coast Ports - LA","Export","5.13","0.0525","67","0","H","5.15","0.0525","69","0","H","C.I.F.","Barge","Yes","","","","","Louisiana and Texas Export Bids","2024-12-20","0.0525","67.0000 H to 69.0000 H","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