Foreign Agricultural Service GATS Data API - US Census and UN ComTrade Import Export & Re-Export Data API

The GATS Data API - US Census and UN ComTrade Import Export & Re-Export Data API from Foreign Agricultural Service — 19 operation(s) for gats data api - us census and un comtrade import export & re-export data.

Operations 19

GET /api/gats/census/data/exports/dataReleaseDates Returns a set of records with the date of the last release of Census Export… #
GET /api/gats/census/data/imports/dataReleaseDates Returns a set of records with the date of the last release of Census Import… #
GET /api/gats/UNTrade/data/exports/dataReleaseDates Returns a set of records with the date of the last release of UN Trade Export… #
GET /api/gats/UNTrade/data/imports/dataReleaseDates Returns a set of records with the date of the last release of UN Trade Import… #
GET /api/gats/regions Returns a set of records with Region Codes and Region Names. #
GET /api/gats/countries Returns a set of records with Countries and their corresponding Regions Codes… #
GET /api/gats/commodities Returns a set of records with Commodity Information. #
GET /api/gats/HS6Commodities Returns a list of Commodities classified at a broader level of classification… #
GET /api/gats/unitsOfMeasure Returns a set of records with Units of Measure. #
GET /api/gats/customsDistricts Returns a set of records with US Customs Districts, the point of Entry and Exit… #
GET /api/gats/censusImports/partnerCode/{partnerCode}/year/{year}/month/{month} Given Partner Code (Ex: CH for China) and YearMonth (Ex: 201001 for Year 2010… #
GET /api/gats/censusExports/partnerCode/{partnerCode}/year/{year}/month/{month} Given Partner Code (Ex: CH for China) and Year and Month (Ex: 2010 for Year… #
GET /api/gats/censusReExports/partnerCode/{partnerCode}/year/{year}/month/{month} Given Partner Code(Ex: CH for China) and Year and Month (Ex: 2010 for Year… #
GET /api/gats/customsDistrictExports/partnerCode/{partnerCode}/year/{year}/month/{month} Given Partner Code(Ex: CH for China) and Year and Month (Ex: 2010 for Year… #
GET /api/gats/customsDistrictImports/partnerCode/{partnerCode}/year/{year}/month/{month} Given Partner Code(Ex: CH for China) and Year and Month (Ex: 2010 for Year… #
GET /api/gats/customsDistrictReExports/partnerCode/{partnerCode}/year/{year}/month/{month} Given Partner Code(Ex: CH for China) and Year and Month (Ex: 2010 for Year… #
GET /api/gats/UNTradeImports/reporterCode/{reporterCode}/year/{year} Given Reporter Code (Ex IN for India), and Import Year (for ex, 2010), this API… #
GET /api/gats/UNTradeExports/reporterCode/{reporterCode}/year/{year} Given Reporter Code (Ex IN for India), and Export Year (for ex, 2010), this API… #
GET /api/gats/UNTradeReExports/reporterCode/{reporterCode}/year/{year} Given Reporter Code (Ex IN for India), and Export Year (for ex, 2010), this API… #

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-gats-data-api-us-census-and-un-comtrade-import-export-re-export-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-gats-data-api-us-census-and-un-comtrade-import-export-re-export-data-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: v1
  title: FAS Open Data Services GATS Data API - US Census and UN…
  description: ESR, GATS and PSD Data APIs
servers:
- url: https://apps.fas.usda.gov/OpenData
tags:
- name: GATS Data API - US Census and UN ComTrade Import Export & Re-Export Data
paths:
  /api/gats/census/data/exports/dataReleaseDates:
    get:
      tags:
      - GATS Data API - US Census and UN ComTrade Import Export & Re-Export Data
      summary: Returns a set of records with the date of the last release of Census Export…
      operationId: GATSData_GetCensusExportDataReleaseInfo
      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/gats/census/data/imports/dataReleaseDates:
    get:
      tags:
      - GATS Data API - US Census and UN ComTrade Import Export & Re-Export Data
      summary: Returns a set of records with the date of the last release of Census Import…
      operationId: GATSData_GetCensusImportDataReleaseInfo
      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/gats/UNTrade/data/exports/dataReleaseDates:
    get:
      tags:
      - GATS Data API - US Census and UN ComTrade Import Export & Re-Export Data
      summary: Returns a set of records with the date of the last release of UN Trade Export…
      operationId: GATSData_GetUNTradeExportDataReleaseInfo
      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/gats/UNTrade/data/imports/dataReleaseDates:
    get:
      tags:
      - GATS Data API - US Census and UN ComTrade Import Export & Re-Export Data
      summary: Returns a set of records with the date of the last release of UN Trade Import…
      operationId: GATSData_GetUNTradeImportDataReleaseInfo
      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/gats/regions:
    get:
      tags:
      - GATS Data API - US Census and UN ComTrade Import Export & Re-Export Data
      summary: Returns a set of records with Region Codes and Region Names.
      operationId: GATSData_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/gats/countries:
    get:
      tags:
      - GATS Data API - US Census and UN ComTrade Import Export & Re-Export Data
      summary: Returns a set of records with Countries and their corresponding Regions Codes…
      operationId: GATSData_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/gats/commodities:
    get:
      tags:
      - GATS Data API - US Census and UN ComTrade Import Export & Re-Export Data
      summary: Returns a set of records with Commodity Information.
      operationId: GATSData_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/gats/HS6Commodities:
    get:
      tags:
      - GATS Data API - US Census and UN ComTrade Import Export & Re-Export Data
      summary: Returns a list of Commodities classified at a broader level of classification…
      operationId: GATSData_GetHS6Commodities
      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/gats/unitsOfMeasure:
    get:
      tags:
      - GATS Data API - US Census and UN ComTrade Import Export & Re-Export Data
      summary: Returns a set of records with Units of Measure.
      operationId: GATSData_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/gats/customsDistricts:
    get:
      tags:
      - GATS Data API - US Census and UN ComTrade Import Export & Re-Export Data
      summary: Returns a set of records with US Customs Districts, the point of Entry and Exit…
      operationId: GATSData_GetCustomsDistricts
      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/gats/censusImports/partnerCode/{partnerCode}/year/{year}/month/{month}:
    get:
      tags:
      - GATS Data API - US Census and UN ComTrade Import Export & Re-Export Data
      summary: 'Given Partner Code (Ex: CH for China) and YearMonth (Ex: 201001 for Year 2010…'
      operationId: GATSData_GetCensusImport
      parameters:
      - name: partnerCode
        in: path
        description: ''
        required: true
        schema:
          type: string
      - name: year
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      - name: month
        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/gats/censusExports/partnerCode/{partnerCode}/year/{year}/month/{month}:
    get:
      tags:
      - GATS Data API - US Census and UN ComTrade Import Export & Re-Export Data
      summary: 'Given Partner Code (Ex: CH for China) and Year and Month (Ex: 2010 for Year…'
      operationId: GATSData_GetCensusExports
      parameters:
      - name: partnerCode
        in: path
        description: ''
        required: true
        schema:
          type: string
      - name: year
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      - name: month
        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/gats/censusReExports/partnerCode/{partnerCode}/year/{year}/month/{month}:
    get:
      tags:
      - GATS Data API - US Census and UN ComTrade Import Export & Re-Export Data
      summary: 'Given Partner Code(Ex: CH for China) and Year and Month (Ex: 2010 for Year…'
      operationId: GATSData_GetCensusReExports
      parameters:
      - name: partnerCode
        in: path
        description: ''
        required: true
        schema:
          type: string
      - name: year
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      - name: month
        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/gats/customsDistrictExports/partnerCode/{partnerCode}/year/{year}/month/{month}:
    get:
      tags:
      - GATS Data API - US Census and UN ComTrade Import Export & Re-Export Data
      summary: 'Given Partner Code(Ex: CH for China) and Year and Month (Ex: 2010 for Year…'
      operationId: GATSData_GetCustomsDistrictsExports
      parameters:
      - name: partnerCode
        in: path
        description: ''
        required: true
        schema:
          type: string
      - name: year
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      - name: month
        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/gats/customsDistrictImports/partnerCode/{partnerCode}/year/{year}/month/{month}:
    get:
      tags:
      - GATS Data API - US Census and UN ComTrade Import Export & Re-Export Data
      summary: 'Given Partner Code(Ex: CH for China) and Year and Month (Ex: 2010 for Year…'
      operationId: GATSData_GetCustomsDistrictsImports
      parameters:
      - name: partnerCode
        in: path
        description: ''
        required: true
        schema:
          type: string
      - name: year
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      - name: month
        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/gats/customsDistrictReExports/partnerCode/{partnerCode}/year/{year}/month/{month}:
    get:
      tags:
      - GATS Data API - US Census and UN ComTrade Import Export & Re-Export Data
      summary: 'Given Partner Code(Ex: CH for China) and Year and Month (Ex: 2010 for Year…'
      operationId: GATSData_GetCustomsDistrictsReExports
      parameters:
      - name: partnerCode
        in: path
        description: ''
        required: true
        schema:
          type: string
      - name: year
        in: path
        description: ''
        required: true
        schema:
          type: integer
          format: int32
      - name: month
        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/gats/UNTradeImports/reporterCode/{reporterCode}/year/{year}:
    get:
      tags:
      - GATS Data API - US Census and UN ComTrade Import Export & Re-Export Data
      summary: Given Reporter Code (Ex IN for India), and Import Year (for ex, 2010), this API…
      operationId: GATSData_GetUNTradeImports
      parameters:
      - name: reporterCode
        in: path
        description: ''
        required: true
        schema:
          type: string
      - name: year
        in: path
        description: ''
        required: true
        schema:
          type: string
      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/gats/UNTradeExports/reporterCode/{reporterCode}/year/{year}:
    get:
      tags:
      - GATS Data API - US Census and UN ComTrade Import Export & Re-Export Data
      summary: Given Reporter Code (Ex IN for India), and Export Year (for ex, 2010), this API…
      operationId: GATSData_GetUNTradeExports
      parameters:
      - name: reporterCode
        in: path
        description: ''
        required: true
        schema:
          type: string
      - name: year
        in: path
        description: ''
        required: true
        schema:
          type: string
      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/gats/UNTradeReExports/reporterCode/{reporterCode}/year/{year}:
    get:
      tags:
      - GATS Data API - US Census and UN ComTrade Import Export & Re-Export Data
      summary: Given Reporter Code (Ex IN for India), and Export Year (for ex, 2010), this API…
      operationId: GATSData_GetUNTradeReExports
      parameters:
      - name: reporterCode
        in: path
        description: ''
        required: true
        schema:
          type: string
      - name: year
        in: path
        description: ''
        required: true
        schema:
          type: string
      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