getCmdtyStatsId API

The getCmdtyStatsId API is used identify instrument identifiers that can be passed to getCmdtyStats in order to request data on the applicable series. Users can search for data series based on search parameters covering content, source, area, frequency, and more.

All APIs

Contact Us to Get Access

Inputs

commodity optional

The primary subject of item of a data series. User can pass values such as "soy" and expect data series infomation for "soybean" and "soybeans" to be returned

Type
string (A sequence of characters. (example: GOOG)) 
Example
Corn 

measurement optional

The measured aspect of a item

Type
string (A sequence of characters. (example: GOOG)) 
Example
Production 

area optional

The geographic location of data series. Passing less specific queires - such as "america" in lieu of "united states" may be preferable to return meta for all possibly applicable data series

Type
string (A sequence of characters. (example: GOOG)) 
Example
United States of America 

source optional

The originating sources of a data series. May include organization, associated report, data table, down to sourcing figure

Type
string (A sequence of characters. (example: GOOG)) 
Example
USDA 

maxRecords optional

The maximum amount of records returned. This parameter should be set to the maximum number of records desired.

Type
enum (A type which includes a list of valid possible values.) 
Example
50 
Default
200 

Valid Values:
50, 100, 150, 200, 250, 300, 350, 400, 450, 500

page optional

The page value to use in order to determine the offset while returning results.

Type
integer (A numeric type defining a whole number. (example: 2)) 
Example
Default

Outputs

Name / Requirement
Description
Type
symbol
always returned
A unique symbol that identifies a data series.
string
A sequence of characters. (example: GOOG)
seriesDescription
always returned
A short description of the data series, that is created via concatenation of the following 4 data elements delimited by semicolons: "item";"measurement,frequency,unitDescription";"area";"sourcing figure"
string
A sequence of characters. (example: GOOG)

Status Code Responses

200
OK
Success
400
Bad Request
The request was invalid, please see the message for more information.
500
Internal Server Error
Something is not working correctly, please contact support.


JSON

GET

GET https://ondemand.websol.barchart.com/getCmdtyStatsId.json?apikey=YOUR_API_KEY&commodity=Corn&measurement=Production&area=United+States+of+America&source=USDA&maxRecords=50&page=1
Host: ondemand.websol.barchart.com

POST

POST https://ondemand.websol.barchart.com/getCmdtyStatsId.json
Host: ondemand.websol.barchart.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

apikey=YOUR_API_KEY&commodity=Corn&measurement=Production&area=United+States+of+America&source=USDA&maxRecords=50&page=1

Response

{
    "status": {
        "code": 200,
        "message": "Success."
    },
    "results": [
        {
            "symbol": "USDA-CORN-PROD-AZ-D80-4389.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;AZ-D80;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-ID-D90-4433.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;ID-D90;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-LA-D80-4483.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;LA-D80;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-ESTNOV-AR-386.CM",
            "seriesDescription": "Corn;Production - Nov Forecast,Annual,Bushel;Arkansas;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-ESTNOV-DE-389.CM",
            "seriesDescription": "Corn;Production - Nov Forecast,Annual,Bushel;Delaware;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-ESTNOV-GA-390.CM",
            "seriesDescription": "Corn;Production - Nov Forecast,Annual,Bushel;Georgia;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-ESTNOV-ID-391.CM",
            "seriesDescription": "Corn;Production - Nov Forecast,Annual,Bushel;Idaho;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-ESTNOV-IN-393.CM",
            "seriesDescription": "Corn;Production - Nov Forecast,Annual,Bushel;Indiana;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-ESTNOV-IA-394.CM",
            "seriesDescription": "Corn;Production - Nov Forecast,Annual,Bushel;Iowa;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-ESTNOV-KS-395.CM",
            "seriesDescription": "Corn;Production - Nov Forecast,Annual,Bushel;Kansas;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-ESTNOV-NC-406.CM",
            "seriesDescription": "Corn;Production - Nov Forecast,Annual,Bushel;North Carolina;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-ESTNOV-ND-407.CM",
            "seriesDescription": "Corn;Production - Nov Forecast,Annual,Bushel;North Dakota;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-ESTNOV-OH-408.CM",
            "seriesDescription": "Corn;Production - Nov Forecast,Annual,Bushel;Ohio;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-ME-250.CM",
            "seriesDescription": "Corn;Production,Annual,Bushel;Maine;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-CO-D10-4408.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;CO-D10;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-FL-D30-4418.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;FL-D30;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-FL-D50-4419.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;FL-D50;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-LA-D90-4484.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;LA-D90;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-KY-D60-4475.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;KY-D60;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-WI-280.CM",
            "seriesDescription": "Corn;Production,Annual,Bushel;Wisconsin;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-NM-D90-4547.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;NM-D90;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-CO-D80-4412.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;CO-D80;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-MD-D30-4487.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;MD-D30;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-VA-D50-4648.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;VA-D50;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-MA-252.CM",
            "seriesDescription": "Corn;Production,Annual,Bushel;Massachusetts;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-TX-D82-4638.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;TX-D82;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-TX-D81-4637.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;TX-D81;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-IN-D60-4448.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;IN-D60;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-IL-D70-4440.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;IL-D70;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-ESTAUG-AL-283.CM",
            "seriesDescription": "Corn;Production - Aug Forecast,Annual,Bushel;Alabama;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-LA-D60-4481.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;LA-D60;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-MN-D20-4500.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;MN-D20;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-SC-D10-4606.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;SC-D10;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-TX-D22-4630.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;TX-D22;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-VA-D80-4651.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;VA-D80;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-ESTAUG-AR-284.CM",
            "seriesDescription": "Corn;Production - Aug Forecast,Annual,Bushel;Arkansas;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-VA-D90-4652.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;VA-D90;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-ESTAUG-WI-315.CM",
            "seriesDescription": "Corn;Production - Aug Forecast,Annual,Bushel;Wisconsin;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-WI-D40-4664.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;WI-D40;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-TX-274.CM",
            "seriesDescription": "Corn;Production,Annual,Bushel;Texas;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-TN-D60-4626.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;TN-D60;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-MN-254.CM",
            "seriesDescription": "Corn;Production,Annual,Bushel;Minnesota;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-GA-D50-4425.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;GA-D50;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-WV-279.CM",
            "seriesDescription": "Corn;Production,Annual,Bushel;West Virginia;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-ESTOCT-CA-353.CM",
            "seriesDescription": "Corn;Production - Oct Forecast,Annual,Bushel;California;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-IN-D10-4443.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;IN-D10;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-NE-D80-4539.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;NE-D80;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-ND-D10-4565.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;ND-D10;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-PA-D10-4597.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;PA-D10;Corn for Grain Area Harvested, Yield, and Production"
        },
        {
            "symbol": "USDA-CORN-PROD-MI-D90-4498.CM",
            "seriesDescription": "Corn;Production, Annual, Bushel;MI-D90;Corn for Grain Area Harvested, Yield, and Production"
        }
    ]
}

XML

GET

GET https://ondemand.websol.barchart.com/getCmdtyStatsId.xml?apikey=YOUR_API_KEY&commodity=Corn&measurement=Production&area=United+States+of+America&source=USDA&maxRecords=50&page=1
Host: ondemand.websol.barchart.com

POST

POST https://ondemand.websol.barchart.com/getCmdtyStatsId.xml
Host: ondemand.websol.barchart.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

apikey=YOUR_API_KEY&commodity=Corn&measurement=Production&area=United+States+of+America&source=USDA&maxRecords=50&page=1

Response


<?xml version="1.0" encoding="utf-8"?>
 <getCmdtyStatsId>
  <status>
   <code>200</code>
   <message>Success.</message>
  </status>
  <item>
   <symbol>USDA-CORN-PROD-AZ-D80-4389.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;AZ-D80;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-ID-D90-4433.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;ID-D90;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-LA-D80-4483.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;LA-D80;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-ESTNOV-AR-386.CM</symbol>
   <seriesDescription>Corn;Production - Nov Forecast,Annual,Bushel;Arkansas;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-ESTNOV-DE-389.CM</symbol>
   <seriesDescription>Corn;Production - Nov Forecast,Annual,Bushel;Delaware;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-ESTNOV-GA-390.CM</symbol>
   <seriesDescription>Corn;Production - Nov Forecast,Annual,Bushel;Georgia;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-ESTNOV-ID-391.CM</symbol>
   <seriesDescription>Corn;Production - Nov Forecast,Annual,Bushel;Idaho;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-ESTNOV-IN-393.CM</symbol>
   <seriesDescription>Corn;Production - Nov Forecast,Annual,Bushel;Indiana;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-ESTNOV-IA-394.CM</symbol>
   <seriesDescription>Corn;Production - Nov Forecast,Annual,Bushel;Iowa;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-ESTNOV-KS-395.CM</symbol>
   <seriesDescription>Corn;Production - Nov Forecast,Annual,Bushel;Kansas;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-ESTNOV-NC-406.CM</symbol>
   <seriesDescription>Corn;Production - Nov Forecast,Annual,Bushel;North Carolina;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-ESTNOV-ND-407.CM</symbol>
   <seriesDescription>Corn;Production - Nov Forecast,Annual,Bushel;North Dakota;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-ESTNOV-OH-408.CM</symbol>
   <seriesDescription>Corn;Production - Nov Forecast,Annual,Bushel;Ohio;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-ME-250.CM</symbol>
   <seriesDescription>Corn;Production,Annual,Bushel;Maine;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-CO-D10-4408.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;CO-D10;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-FL-D30-4418.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;FL-D30;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-FL-D50-4419.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;FL-D50;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-LA-D90-4484.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;LA-D90;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-KY-D60-4475.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;KY-D60;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-WI-280.CM</symbol>
   <seriesDescription>Corn;Production,Annual,Bushel;Wisconsin;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-NM-D90-4547.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;NM-D90;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-CO-D80-4412.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;CO-D80;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-MD-D30-4487.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;MD-D30;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-VA-D50-4648.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;VA-D50;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-MA-252.CM</symbol>
   <seriesDescription>Corn;Production,Annual,Bushel;Massachusetts;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-TX-D82-4638.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;TX-D82;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-TX-D81-4637.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;TX-D81;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-IN-D60-4448.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;IN-D60;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-IL-D70-4440.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;IL-D70;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-ESTAUG-AL-283.CM</symbol>
   <seriesDescription>Corn;Production - Aug Forecast,Annual,Bushel;Alabama;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-LA-D60-4481.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;LA-D60;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-MN-D20-4500.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;MN-D20;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-SC-D10-4606.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;SC-D10;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-TX-D22-4630.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;TX-D22;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-VA-D80-4651.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;VA-D80;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-ESTAUG-AR-284.CM</symbol>
   <seriesDescription>Corn;Production - Aug Forecast,Annual,Bushel;Arkansas;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-VA-D90-4652.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;VA-D90;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-ESTAUG-WI-315.CM</symbol>
   <seriesDescription>Corn;Production - Aug Forecast,Annual,Bushel;Wisconsin;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-WI-D40-4664.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;WI-D40;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-TX-274.CM</symbol>
   <seriesDescription>Corn;Production,Annual,Bushel;Texas;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-TN-D60-4626.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;TN-D60;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-MN-254.CM</symbol>
   <seriesDescription>Corn;Production,Annual,Bushel;Minnesota;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-GA-D50-4425.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;GA-D50;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-WV-279.CM</symbol>
   <seriesDescription>Corn;Production,Annual,Bushel;West Virginia;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-ESTOCT-CA-353.CM</symbol>
   <seriesDescription>Corn;Production - Oct Forecast,Annual,Bushel;California;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-IN-D10-4443.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;IN-D10;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-NE-D80-4539.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;NE-D80;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-ND-D10-4565.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;ND-D10;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-PA-D10-4597.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;PA-D10;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
  <item>
   <symbol>USDA-CORN-PROD-MI-D90-4498.CM</symbol>
   <seriesDescription>Corn;Production, Annual, Bushel;MI-D90;Corn for Grain Area Harvested, Yield, and Production</seriesDescription>
  </item>
 </getCmdtyStatsId>

CSV

GET

GET https://ondemand.websol.barchart.com/getCmdtyStatsId.csv?apikey=YOUR_API_KEY&commodity=Corn&measurement=Production&area=United+States+of+America&source=USDA&maxRecords=50&page=1
Host: ondemand.websol.barchart.com

POST

POST https://ondemand.websol.barchart.com/getCmdtyStatsId.csv
Host: ondemand.websol.barchart.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

apikey=YOUR_API_KEY&commodity=Corn&measurement=Production&area=United+States+of+America&source=USDA&maxRecords=50&page=1

Response

symbol,seriesDescription
"USDA-CORN-PROD-AZ-D80-4389.CM","Corn;Production, Annual, Bushel;AZ-D80;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-ID-D90-4433.CM","Corn;Production, Annual, Bushel;ID-D90;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-LA-D80-4483.CM","Corn;Production, Annual, Bushel;LA-D80;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-ESTNOV-AR-386.CM","Corn;Production - Nov Forecast,Annual,Bushel;Arkansas;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-ESTNOV-DE-389.CM","Corn;Production - Nov Forecast,Annual,Bushel;Delaware;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-ESTNOV-GA-390.CM","Corn;Production - Nov Forecast,Annual,Bushel;Georgia;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-ESTNOV-ID-391.CM","Corn;Production - Nov Forecast,Annual,Bushel;Idaho;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-ESTNOV-IN-393.CM","Corn;Production - Nov Forecast,Annual,Bushel;Indiana;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-ESTNOV-IA-394.CM","Corn;Production - Nov Forecast,Annual,Bushel;Iowa;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-ESTNOV-KS-395.CM","Corn;Production - Nov Forecast,Annual,Bushel;Kansas;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-ESTNOV-NC-406.CM","Corn;Production - Nov Forecast,Annual,Bushel;North Carolina;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-ESTNOV-ND-407.CM","Corn;Production - Nov Forecast,Annual,Bushel;North Dakota;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-ESTNOV-OH-408.CM","Corn;Production - Nov Forecast,Annual,Bushel;Ohio;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-ME-250.CM","Corn;Production,Annual,Bushel;Maine;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-CO-D10-4408.CM","Corn;Production, Annual, Bushel;CO-D10;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-FL-D30-4418.CM","Corn;Production, Annual, Bushel;FL-D30;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-FL-D50-4419.CM","Corn;Production, Annual, Bushel;FL-D50;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-LA-D90-4484.CM","Corn;Production, Annual, Bushel;LA-D90;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-KY-D60-4475.CM","Corn;Production, Annual, Bushel;KY-D60;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-WI-280.CM","Corn;Production,Annual,Bushel;Wisconsin;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-NM-D90-4547.CM","Corn;Production, Annual, Bushel;NM-D90;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-CO-D80-4412.CM","Corn;Production, Annual, Bushel;CO-D80;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-MD-D30-4487.CM","Corn;Production, Annual, Bushel;MD-D30;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-VA-D50-4648.CM","Corn;Production, Annual, Bushel;VA-D50;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-MA-252.CM","Corn;Production,Annual,Bushel;Massachusetts;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-TX-D82-4638.CM","Corn;Production, Annual, Bushel;TX-D82;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-TX-D81-4637.CM","Corn;Production, Annual, Bushel;TX-D81;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-IN-D60-4448.CM","Corn;Production, Annual, Bushel;IN-D60;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-IL-D70-4440.CM","Corn;Production, Annual, Bushel;IL-D70;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-ESTAUG-AL-283.CM","Corn;Production - Aug Forecast,Annual,Bushel;Alabama;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-LA-D60-4481.CM","Corn;Production, Annual, Bushel;LA-D60;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-MN-D20-4500.CM","Corn;Production, Annual, Bushel;MN-D20;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-SC-D10-4606.CM","Corn;Production, Annual, Bushel;SC-D10;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-TX-D22-4630.CM","Corn;Production, Annual, Bushel;TX-D22;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-VA-D80-4651.CM","Corn;Production, Annual, Bushel;VA-D80;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-ESTAUG-AR-284.CM","Corn;Production - Aug Forecast,Annual,Bushel;Arkansas;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-VA-D90-4652.CM","Corn;Production, Annual, Bushel;VA-D90;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-ESTAUG-WI-315.CM","Corn;Production - Aug Forecast,Annual,Bushel;Wisconsin;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-WI-D40-4664.CM","Corn;Production, Annual, Bushel;WI-D40;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-TX-274.CM","Corn;Production,Annual,Bushel;Texas;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-TN-D60-4626.CM","Corn;Production, Annual, Bushel;TN-D60;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-MN-254.CM","Corn;Production,Annual,Bushel;Minnesota;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-GA-D50-4425.CM","Corn;Production, Annual, Bushel;GA-D50;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-WV-279.CM","Corn;Production,Annual,Bushel;West Virginia;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-ESTOCT-CA-353.CM","Corn;Production - Oct Forecast,Annual,Bushel;California;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-IN-D10-4443.CM","Corn;Production, Annual, Bushel;IN-D10;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-NE-D80-4539.CM","Corn;Production, Annual, Bushel;NE-D80;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-ND-D10-4565.CM","Corn;Production, Annual, Bushel;ND-D10;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-PA-D10-4597.CM","Corn;Production, Annual, Bushel;PA-D10;Corn for Grain Area Harvested, Yield, and Production"
"USDA-CORN-PROD-MI-D90-4498.CM","Corn;Production, Annual, Bushel;MI-D90;Corn for Grain Area Harvested, Yield, and Production"


PHP

<?php

$ondemand = new SoapClient('https://ondemand.websol.barchart.com/service?wsdl');

$params = [
    'apikey' => 'YOUR_API_KEY',
    'commodity' => 'Corn',
    'measurement' => 'Production',
    'area' => 'United States of America',
    'source' => 'USDA',
    'maxRecords' => '50',
    'page' => '1',
];

$result = $ondemand->getCmdtyStatsId($params);
var_dump($result);

Classic ASP

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.getCmdtyStatsId("YOUR_API_KEY", "Corn", "Production", "United States of America", "USDA", "50", "1")

Perl

use SOAP::Lite;
use SOAP::WSDL;

my $ondemand = SOAP::Lite
    -> service('https://ondemand.websol.barchart.com/service?wsdl');

my $result = $ondemand->getCmdtyStatsId('YOUR_API_KEY', 'Corn', 'Production', 'United States of America', 'USDA', '50', '1');

print $result;

Python

from suds.client import Client
ondemand = Client('https://ondemand.websol.barchart.com/service?wsdl')

result = client.service.getCmdtyStatsId('YOUR_API_KEY', 'Corn', 'Production', 'United States of America', 'USDA', '50', '1')

print result

Ruby

require 'savon'

ondemand = Savon.client(wsdl: 'https://ondemand.websol.barchart.com/service?wsdl')

response = ondemand.call(
    :getCmdtyStatsId,
    message: {
        apikey: 'YOUR_API_KEY',
        commodity: 'Corn',
        measurement: 'Production',
        area: 'United States of America',
        source: 'USDA',
        maxRecords: '50',
        page: '1',
    }
)

response.body