{
  "opencollection": "1.0.0",
  "info": {
    "name": "USDA ERS ARMS Data API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Metadata",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Available Survey Years",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.ers.usda.gov/data/arms/year",
            "params": [
              {
                "name": "api_key",
                "value": "DEMO_KEY",
                "type": "query",
                "description": "API key from api.data.gov"
              }
            ]
          },
          "docs": "Retrieve all years for which ARMS survey data is available."
        },
        {
          "info": {
            "name": "Get Available States",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.ers.usda.gov/data/arms/state",
            "params": [
              {
                "name": "api_key",
                "value": "DEMO_KEY",
                "type": "query",
                "description": "API key from api.data.gov"
              }
            ]
          },
          "docs": "Retrieve all states and associated metadata and variables available for ARMS survey data."
        },
        {
          "info": {
            "name": "Get Available Reports",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.ers.usda.gov/data/arms/report",
            "params": [
              {
                "name": "api_key",
                "value": "DEMO_KEY",
                "type": "query",
                "description": "API key from api.data.gov"
              }
            ]
          },
          "docs": "Retrieve available ARMS reports with their metadata and variables. Reports represent different survey focus areas such as farm income, balance sheet, and production costs."
        },
        {
          "info": {
            "name": "Get Available Variables",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.ers.usda.gov/data/arms/variable",
            "params": [
              {
                "name": "api_key",
                "value": "DEMO_KEY",
                "type": "query",
                "description": "API key from api.data.gov"
              },
              {
                "name": "report",
                "value": "",
                "type": "query",
                "description": "Filter variables by report name"
              }
            ]
          },
          "docs": "Retrieve all ARMS variables with their information and metadata, including variable codes, descriptions, and units."
        }
      ]
    },
    {
      "info": {
        "name": "Survey Data",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get ARMS Survey Data",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.ers.usda.gov/data/arms/surveydata",
            "params": [
              {
                "name": "api_key",
                "value": "DEMO_KEY",
                "type": "query",
                "description": "API key from api.data.gov"
              },
              {
                "name": "year",
                "value": "2022",
                "type": "query",
                "description": "Survey year (required)"
              },
              {
                "name": "report",
                "value": "farm_income",
                "type": "query",
                "description": "Report name to retrieve data for"
              },
              {
                "name": "variable",
                "value": "",
                "type": "query",
                "description": "Specific variable code(s) to retrieve"
              },
              {
                "name": "state",
                "value": "IA",
                "type": "query",
                "description": "Two-letter state abbreviation or NATIONAL"
              }
            ]
          },
          "docs": "Retrieve ARMS farm survey data by year, state, report, and variable. Year is required; at least one of report or variable is also required. Supports GET and POST methods."
        }
      ]
    }
  ],
  "bundled": true
}