Foreign Agricultural Service ESR Data API - United States Weekly Export Sales of Agricultural Commodity Data API

The ESR Data API - United States Weekly Export Sales of Agricultural Commodity Data API from Foreign Agricultural Service — 7 operation(s) for esr data api - united states weekly export sales of agricultural commodity data.

Operations 7

GET /api/esr/regions Returns a set of records with Region Codes and Region Names. #
GET /api/esr/countries Returns a set of records with Countries and their corresponding Regions Codes… #
GET /api/esr/commodities Returns a set of records with Commodity Information. #
GET /api/esr/unitsOfMeasure Returns a set of records with Units of Measure Information. #
GET /api/esr/datareleasedates Returns a set of records with the date of the last release of ESR Commodity… #
GET /api/esr/exports/commodityCode/{commodityCode}/allCountries/marketYear/{marketYear} Given Commodity Code (Ex: 104 for Wheat - White ) and MarketYear (Ex: 2017)… #
GET /api/esr/exports/commodityCode/{commodityCode}/countryCode/{countryCode}/marketYear/{marketYear} Given Commodity Code (Ex: 104 for Wheat - White ), Country Code (Ex:1220 for… #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/foreign-agricultural-service-esr-data-api-united-states-weekly-export-sales-of-agricultural-commodity-data-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

foreign-agricultural-service-esr-data-api-united-states-weekly-export-sales-of-agricultural-commodity-data-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: v1
  title: FAS Open Data Services ESR Data API - United States Weekly…
  description: ESR, GATS and PSD Data APIs
servers:
- url: https://apps.fas.usda.gov/OpenData
tags:
- name: ESR Data API - United States Weekly Export Sales of Agricultural Commodity Data
paths:
  /api/esr/regions:
    get:
      tags:
      - ESR Data API - United States Weekly Export Sales of Agricultural Commodity Data
      summary: Returns a set of records with Region Codes and Region Names.
      operationId: ESRData_GetRegions
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
            text/json:
              schema:
                type: object
            application/xml:
              schema:
                type: object
            text/xml:
              schema:
                type: object
  /api/esr/countries:
    get:
      tags:
      - ESR Data API - United States Weekly Export Sales of Agricultural Commodity Data
      summary: Returns a set of records with Countries and their corresponding Regions Codes…
      operationId: ESRData_GetCountries
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
            text/json:
              schema:
                type: object
            application/xml:
              schema:
                type: object
            text/xml:
              schema:
                type: object
  /api/esr/commodities:
    get:
      tags:
      - ESR Data API - United States Weekly Export Sales of Agricultural Commodity Data
      summary: Returns a set of records with Commodity Information.
      operationId: ESRData_GetCommodities
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
            text/json:
              schema:
                type: object
            application/xml:
              schema:
                type: object
            text/xml:
              schema:
                type: object
  /api/esr/unitsOfMeasure:
    get:
      tags:
      - ESR Data API - United States Weekly Export Sales of Agricultural Commodity Data
      summary: Returns a set of records with Units of Measure Information.
      operationId: ESRData_GetUnitsOfMeasure
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
            text/json:
              schema:
                type: object
            application/xml:
              schema:
                type: object
            text/xml:
              schema:
                type: object
  /api/esr/datareleasedates:
    get:
      tags:
      - ESR Data API - United States Weekly Export Sales of Agricultural Commodity Data
      summary: Returns a set of records with the date of the last release of ESR Commodity…
      operationId: ESRData_GetDataReleaseInfo
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
            text/json:
              schema:
                type: object
            application/xml:
              schema:
                type: object
            text/xml:
              schema:
                type: object
  /api/esr/exports/commodityCode/{commodityCode}/allCountries/marketYear/{marketYear}:
    get:
      tags:
      - ESR Data API - United States Weekly Export Sales of Agricultural Commodity Data
      summary: 'Given Commodity Code (Ex: 104 for Wheat - White ) and MarketYear (Ex: 2017)…'
      operationId: ESRData_GetAllCountriesData
      parameters:
      - name: commodityCode
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      - name: marketYear
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
            text/json:
              schema:
                type: object
            application/xml:
              schema:
                type: object
            text/xml:
              schema:
                type: object
  /api/esr/exports/commodityCode/{commodityCode}/countryCode/{countryCode}/marketYear/{marketYear}:
    get:
      tags:
      - ESR Data API - United States Weekly Export Sales of Agricultural Commodity Data
      summary: 'Given Commodity Code (Ex: 104 for Wheat - White ), Country Code (Ex:1220 for…'
      operationId: ESRData_GetCountryData
      parameters:
      - name: commodityCode
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      - name: countryCode
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      - name: marketYear
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
            text/json:
              schema:
                type: object
            application/xml:
              schema:
                type: object
            text/xml:
              schema:
                type: object
components:
  securitySchemes:
    apiKey:
      type: apiKey
      description: API Key Authentication
      name: API_KEY
      in: header