{
  "openapi": "3.0.1",
  "info": {
    "title": "USAspending Scraper",
    "description": "Optimize your government spending research with USAspending's comprehensive spending analyzer. Automate the collection of federal spending data, including awards, contracts, grants and loans. Ideal for researchers, analysts, and businesses that need accurate information on government spending.",
    "version": "1.0",
    "x-build-id": "c86tkdiuagcBSRQXE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parseforge~usaspending-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parseforge-usaspending-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/parseforge~usaspending-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parseforge-usaspending-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/parseforge~usaspending-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parseforge-usaspending-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "keywords": {
            "title": "Keyword Search",
            "type": "array",
            "description": "Matches the first Advanced Search filter. Use phrases exactly as you would in the UI (e.g., \"shipbuilding\", \"cyber security\").",
            "items": {
              "type": "string"
            }
          },
          "recipients": {
            "title": "Recipient",
            "type": "array",
            "description": "Exactly the same box you use in Advanced Search → Recipient. Enter names, UEIs, or DUNS values—each entry should match what you would type in the UI.",
            "items": {
              "type": "string"
            }
          },
          "awardId": {
            "title": "Award IDs",
            "type": "array",
            "description": "Equivalent to the Award ID filter. Add PIIDs, FAINs, or URIs (e.g., \"N0002417C2100\").",
            "items": {
              "type": "string"
            }
          },
          "startDate": {
            "title": "Start Date",
            "type": "string",
            "description": "Advanced Search → Time Period → Date Range. Enter YYYY-MM-DD (leave empty to include all data)."
          },
          "endDate": {
            "title": "End Date",
            "type": "string",
            "description": "Advanced Search → Time Period → Date Range. Enter YYYY-MM-DD (leave empty to include all data)."
          },
          "awardAmountMin": {
            "title": "Award Amount (Minimum)",
            "minimum": 0,
            "type": "number",
            "description": "Minimum award amount in dollars. Leave empty for no minimum."
          },
          "awardAmountMax": {
            "title": "Award Amount (Maximum)",
            "minimum": 0,
            "type": "number",
            "description": "Maximum award amount in dollars. Leave empty for no maximum."
          },
          "locations": {
            "title": "Recipient Location (Country)",
            "type": "array",
            "description": "Matches the Recipient Location accordion. Enter country names.",
            "items": {
              "type": "string",
              "enum": [
                "AFGHANISTAN",
                "AKROTIRI",
                "ALBANIA",
                "ALGERIA",
                "ANDORRA",
                "ANGOLA",
                "ANGUILLA",
                "ANTARCTICA",
                "ANTIGUA AND BARBUDA",
                "ARGENTINA",
                "ARMENIA",
                "ARUBA",
                "ASHMORE AND CARTIER ISLANDS",
                "AUSTRALIA",
                "AUSTRIA",
                "AZERBAIJAN",
                "BAHAMAS, THE",
                "BAHRAIN",
                "BAKER ISLAND",
                "BANGLADESH",
                "BARBADOS",
                "BASSAS DA INDIA",
                "BELARUS",
                "BELGIUM",
                "BELIZE",
                "BENIN",
                "BERMUDA",
                "BHUTAN",
                "BOLIVIA",
                "BONAIRE, SINT EUSTATIUS, AND SABA",
                "BOSNIA AND HERZEGOVINA",
                "BOTSWANA",
                "BOUVET ISLAND",
                "BRAZIL",
                "BRITISH INDIAN OCEAN TERRITORY",
                "BRUNEI",
                "BULGARIA",
                "BURKINA FASO",
                "BURMA",
                "BURUNDI",
                "CABO VERDE",
                "CAMBODIA",
                "CAMEROON",
                "CANADA",
                "CAYMAN ISLANDS",
                "CENTRAL AFRICAN REPUBLIC",
                "CHAD",
                "CHILE",
                "CHINA",
                "CHRISTMAS ISLAND",
                "CLIPPERTON ISLAND",
                "COCOS (KEELING) ISLANDS",
                "COLOMBIA",
                "COMOROS",
                "CONGO (BRAZZAVILLE)",
                "CONGO (KINSHASA)",
                "COOK ISLANDS",
                "CORAL SEA ISLANDS",
                "COSTA RICA",
                "CROATIA",
                "CUBA",
                "CURAÇAO",
                "CYPRUS",
                "CZECH REPUBLIC",
                "DENMARK",
                "DHEKELIA",
                "DIEGO GARCIA",
                "DJIBOUTI",
                "DOMINICA",
                "DOMINICAN REPUBLIC",
                "ECUADOR",
                "EGYPT",
                "EL SALVADOR",
                "EQUATORIAL GUINEA",
                "ERITREA",
                "ESTONIA",
                "ETHIOPIA",
                "EUROPA ISLAND",
                "FALKLAND ISLANDS (ISLAS MALVINAS)",
                "FAROE ISLANDS",
                "FIJI",
                "FINLAND",
                "FRANCE",
                "FRENCH GUIANA",
                "FRENCH POLYNESIA",
                "FRENCH SOUTHERN AND ANTARCTIC LANDS",
                "GABON",
                "GAMBIA, THE",
                "GAZA STRIP",
                "GEORGIA",
                "GERMANY",
                "GHANA",
                "GIBRALTAR",
                "GLORIOSO ISLANDS",
                "GREECE",
                "GREENLAND",
                "GRENADA",
                "GUADELOUPE",
                "GUANTANAMO BAY NAVAL BASE",
                "GUATEMALA",
                "GUERNSEY",
                "GUINEA",
                "GUINEA-BISSAU",
                "GUYANA",
                "HAITI",
                "HEARD ISLAND AND MCDONALD ISLANDS",
                "HONDURAS",
                "HONG KONG",
                "HOWLAND ISLAND",
                "HUNGARY",
                "ICELAND",
                "INDIA",
                "INDONESIA",
                "IRAN",
                "IRAQ",
                "IRELAND",
                "ISLE OF MAN",
                "ISRAEL",
                "ITALY",
                "JAMAICA",
                "JAN MAYEN",
                "JAPAN",
                "JARVIS ISLAND",
                "JERSEY",
                "JOHNSTON ATOLL",
                "JORDAN",
                "JUAN DE NOVA ISLAND",
                "KAZAKHSTAN",
                "KENYA",
                "KINGMAN REEF",
                "KIRIBATI",
                "KOREA, NORTH",
                "KOREA, SOUTH",
                "KOSOVO",
                "KUWAIT",
                "KYRGYZSTAN",
                "LAOS",
                "LATVIA",
                "LEBANON",
                "LESOTHO",
                "LIBERIA",
                "LIBYA",
                "LIECHTENSTEIN",
                "LITHUANIA",
                "LUXEMBOURG",
                "MACAU",
                "MACEDONIA",
                "MADAGASCAR",
                "MALAWI",
                "MALAYSIA",
                "MALDIVES",
                "MALI",
                "MALTA",
                "MARTINIQUE",
                "MAURITANIA",
                "MAURITIUS",
                "MAYOTTE",
                "MEXICO",
                "MIDWAY ISLANDS",
                "MOLDOVA",
                "MONACO",
                "MONGOLIA",
                "MONTENEGRO",
                "MONTSERRAT",
                "MOROCCO",
                "MOZAMBIQUE",
                "NAMIBIA",
                "NAURU",
                "NAVASSA ISLAND",
                "NEPAL",
                "NETHERLANDS",
                "NEW CALEDONIA",
                "NEW ZEALAND",
                "NICARAGUA",
                "NIGER",
                "NIGERIA",
                "NIUE",
                "NORFOLK ISLAND",
                "NORWAY",
                "OMAN",
                "PAKISTAN",
                "PALESTINE, STATE OF",
                "PALMYRA ATOLL",
                "PANAMA",
                "PAPUA NEW GUINEA",
                "PARACEL ISLANDS",
                "PARAGUAY",
                "PERU",
                "PHILIPPINES",
                "PITCAIRN ISLANDS",
                "POLAND",
                "PORTUGAL",
                "QATAR",
                "REUNION",
                "ROMANIA",
                "RUSSIA",
                "RWANDA",
                "SAINT BARTHELEMY",
                "SAINT HELENA, ASCENSION, AND TRISTAN DA CUNHA",
                "SAINT KITTS AND NEVIS",
                "SAINT LUCIA",
                "SAINT MARTIN",
                "SAINT PIERRE AND MIQUELON",
                "SAINT VINCENT AND THE GRENADINES",
                "SAMOA",
                "SAN MARINO",
                "SAO TOME AND PRINCIPE",
                "SAUDI ARABIA",
                "SENEGAL",
                "SERBIA",
                "SEYCHELLES",
                "SIERRA LEONE",
                "SINGAPORE",
                "SINT MAARTEN",
                "SLOVAKIA",
                "SLOVENIA",
                "SOLOMON ISLANDS",
                "SOMALIA",
                "SOUTH AFRICA",
                "SOUTH GEORGIA AND SOUTH SANDWICH ISLANDS",
                "SOUTH SUDAN",
                "SPAIN",
                "SPRATLY ISLANDS",
                "SRI LANKA",
                "SUDAN",
                "SURINAME",
                "SVALBARD",
                "SWAZILAND",
                "SWEDEN",
                "SWITZERLAND",
                "SYRIA",
                "TAIWAN",
                "TAJIKISTAN",
                "TANZANIA",
                "THAILAND",
                "TIMOR-LESTE",
                "TOGO",
                "TOKELAU",
                "TONGA",
                "TRINIDAD AND TOBAGO",
                "TROMELIN ISLAND",
                "TUNISIA",
                "TURKEY",
                "TURKMENISTAN",
                "TURKS AND CAICOS ISLANDS",
                "TUVALU",
                "UGANDA",
                "UKRAINE",
                "UNITED ARAB EMIRATES",
                "UNITED KINGDOM",
                "UNKNOWN",
                "URUGUAY",
                "UZBEKISTAN",
                "VANUATU",
                "VATICAN CITY",
                "VENEZUELA",
                "VIETNAM",
                "VIRGIN ISLANDS, BRITISH",
                "WAKE ISLAND",
                "WALLIS AND FUTUNA",
                "WEST BANK",
                "WESTERN SAHARA",
                "YEMEN",
                "ZAMBIA",
                "ZIMBABWE"
              ]
            }
          },
          "placeOfPerformanceLocations": {
            "title": "Place of Performance (Country)",
            "type": "array",
            "description": "Same as the Place of Performance filter. Enter country names.",
            "items": {
              "type": "string",
              "enum": [
                "AFGHANISTAN",
                "AKROTIRI",
                "ALBANIA",
                "ALGERIA",
                "ANDORRA",
                "ANGOLA",
                "ANGUILLA",
                "ANTARCTICA",
                "ANTIGUA AND BARBUDA",
                "ARGENTINA",
                "ARMENIA",
                "ARUBA",
                "ASHMORE AND CARTIER ISLANDS",
                "AUSTRALIA",
                "AUSTRIA",
                "AZERBAIJAN",
                "BAHAMAS, THE",
                "BAHRAIN",
                "BAKER ISLAND",
                "BANGLADESH",
                "BARBADOS",
                "BASSAS DA INDIA",
                "BELARUS",
                "BELGIUM",
                "BELIZE",
                "BENIN",
                "BERMUDA",
                "BHUTAN",
                "BOLIVIA",
                "BONAIRE, SINT EUSTATIUS, AND SABA",
                "BOSNIA AND HERZEGOVINA",
                "BOTSWANA",
                "BOUVET ISLAND",
                "BRAZIL",
                "BRITISH INDIAN OCEAN TERRITORY",
                "BRUNEI",
                "BULGARIA",
                "BURKINA FASO",
                "BURMA",
                "BURUNDI",
                "CABO VERDE",
                "CAMBODIA",
                "CAMEROON",
                "CANADA",
                "CAYMAN ISLANDS",
                "CENTRAL AFRICAN REPUBLIC",
                "CHAD",
                "CHILE",
                "CHINA",
                "CHRISTMAS ISLAND",
                "CLIPPERTON ISLAND",
                "COCOS (KEELING) ISLANDS",
                "COLOMBIA",
                "COMOROS",
                "CONGO (BRAZZAVILLE)",
                "CONGO (KINSHASA)",
                "COOK ISLANDS",
                "CORAL SEA ISLANDS",
                "COSTA RICA",
                "CROATIA",
                "CUBA",
                "CURAÇAO",
                "CYPRUS",
                "CZECH REPUBLIC",
                "DENMARK",
                "DHEKELIA",
                "DIEGO GARCIA",
                "DJIBOUTI",
                "DOMINICA",
                "DOMINICAN REPUBLIC",
                "ECUADOR",
                "EGYPT",
                "EL SALVADOR",
                "EQUATORIAL GUINEA",
                "ERITREA",
                "ESTONIA",
                "ETHIOPIA",
                "EUROPA ISLAND",
                "FALKLAND ISLANDS (ISLAS MALVINAS)",
                "FAROE ISLANDS",
                "FIJI",
                "FINLAND",
                "FRANCE",
                "FRENCH GUIANA",
                "FRENCH POLYNESIA",
                "FRENCH SOUTHERN AND ANTARCTIC LANDS",
                "GABON",
                "GAMBIA, THE",
                "GAZA STRIP",
                "GEORGIA",
                "GERMANY",
                "GHANA",
                "GIBRALTAR",
                "GLORIOSO ISLANDS",
                "GREECE",
                "GREENLAND",
                "GRENADA",
                "GUADELOUPE",
                "GUANTANAMO BAY NAVAL BASE",
                "GUATEMALA",
                "GUERNSEY",
                "GUINEA",
                "GUINEA-BISSAU",
                "GUYANA",
                "HAITI",
                "HEARD ISLAND AND MCDONALD ISLANDS",
                "HONDURAS",
                "HONG KONG",
                "HOWLAND ISLAND",
                "HUNGARY",
                "ICELAND",
                "INDIA",
                "INDONESIA",
                "IRAN",
                "IRAQ",
                "IRELAND",
                "ISLE OF MAN",
                "ISRAEL",
                "ITALY",
                "JAMAICA",
                "JAN MAYEN",
                "JAPAN",
                "JARVIS ISLAND",
                "JERSEY",
                "JOHNSTON ATOLL",
                "JORDAN",
                "JUAN DE NOVA ISLAND",
                "KAZAKHSTAN",
                "KENYA",
                "KINGMAN REEF",
                "KIRIBATI",
                "KOREA, NORTH",
                "KOREA, SOUTH",
                "KOSOVO",
                "KUWAIT",
                "KYRGYZSTAN",
                "LAOS",
                "LATVIA",
                "LEBANON",
                "LESOTHO",
                "LIBERIA",
                "LIBYA",
                "LIECHTENSTEIN",
                "LITHUANIA",
                "LUXEMBOURG",
                "MACAU",
                "MACEDONIA",
                "MADAGASCAR",
                "MALAWI",
                "MALAYSIA",
                "MALDIVES",
                "MALI",
                "MALTA",
                "MARTINIQUE",
                "MAURITANIA",
                "MAURITIUS",
                "MAYOTTE",
                "MEXICO",
                "MIDWAY ISLANDS",
                "MOLDOVA",
                "MONACO",
                "MONGOLIA",
                "MONTENEGRO",
                "MONTSERRAT",
                "MOROCCO",
                "MOZAMBIQUE",
                "NAMIBIA",
                "NAURU",
                "NAVASSA ISLAND",
                "NEPAL",
                "NETHERLANDS",
                "NEW CALEDONIA",
                "NEW ZEALAND",
                "NICARAGUA",
                "NIGER",
                "NIGERIA",
                "NIUE",
                "NORFOLK ISLAND",
                "NORWAY",
                "OMAN",
                "PAKISTAN",
                "PALESTINE, STATE OF",
                "PALMYRA ATOLL",
                "PANAMA",
                "PAPUA NEW GUINEA",
                "PARACEL ISLANDS",
                "PARAGUAY",
                "PERU",
                "PHILIPPINES",
                "PITCAIRN ISLANDS",
                "POLAND",
                "PORTUGAL",
                "QATAR",
                "REUNION",
                "ROMANIA",
                "RUSSIA",
                "RWANDA",
                "SAINT BARTHELEMY",
                "SAINT HELENA, ASCENSION, AND TRISTAN DA CUNHA",
                "SAINT KITTS AND NEVIS",
                "SAINT LUCIA",
                "SAINT MARTIN",
                "SAINT PIERRE AND MIQUELON",
                "SAINT VINCENT AND THE GRENADINES",
                "SAMOA",
                "SAN MARINO",
                "SAO TOME AND PRINCIPE",
                "SAUDI ARABIA",
                "SENEGAL",
                "SERBIA",
                "SEYCHELLES",
                "SIERRA LEONE",
                "SINGAPORE",
                "SINT MAARTEN",
                "SLOVAKIA",
                "SLOVENIA",
                "SOLOMON ISLANDS",
                "SOMALIA",
                "SOUTH AFRICA",
                "SOUTH GEORGIA AND SOUTH SANDWICH ISLANDS",
                "SOUTH SUDAN",
                "SPAIN",
                "SPRATLY ISLANDS",
                "SRI LANKA",
                "SUDAN",
                "SURINAME",
                "SVALBARD",
                "SWAZILAND",
                "SWEDEN",
                "SWITZERLAND",
                "SYRIA",
                "TAIWAN",
                "TAJIKISTAN",
                "TANZANIA",
                "THAILAND",
                "TIMOR-LESTE",
                "TOGO",
                "TOKELAU",
                "TONGA",
                "TRINIDAD AND TOBAGO",
                "TROMELIN ISLAND",
                "TUNISIA",
                "TURKEY",
                "TURKMENISTAN",
                "TURKS AND CAICOS ISLANDS",
                "TUVALU",
                "UGANDA",
                "UKRAINE",
                "UNITED ARAB EMIRATES",
                "UNITED KINGDOM",
                "UNKNOWN",
                "URUGUAY",
                "UZBEKISTAN",
                "VANUATU",
                "VATICAN CITY",
                "VENEZUELA",
                "VIETNAM",
                "VIRGIN ISLANDS, BRITISH",
                "WAKE ISLAND",
                "WALLIS AND FUTUNA",
                "WEST BANK",
                "WESTERN SAHARA",
                "YEMEN",
                "ZAMBIA",
                "ZIMBABWE"
              ]
            }
          },
          "awardingAgencies": {
            "title": "Awarding Agencies",
            "type": "array",
            "description": "Matches the Awarding Agency tab. Enter agency names (e.g., \"Department of Energy\").",
            "items": {
              "type": "string"
            }
          },
          "fundingAgencies": {
            "title": "Funding Agencies",
            "type": "array",
            "description": "Matches the Funding Agency tab. Enter agency names (e.g., \"Department of Transportation\").",
            "items": {
              "type": "string"
            }
          },
          "recipientType": {
            "title": "Recipient Type",
            "type": "array",
            "description": "Same as the Recipient Type multi-select. Pick one or more of the available categories.",
            "items": {
              "type": "string",
              "enum": [
                "Business",
                "Small Business",
                "Other Than Small Business",
                "Corporate Entity Tax Exempt",
                "Corporate Entity Not Tax Exempt",
                "Partnership or Limited Liability Partnership",
                "Sole Proprietorship",
                "Manufacturer of Goods",
                "Sub-Chapter S Corporation",
                "Limited Liability Corporation (LLC)",
                "Minority Owned Business",
                "Alaskan Native Corporation Owned Firm",
                "American Indian Owned Business",
                "Asian Pacific American Owned Business",
                "Black American Owned Business",
                "Hispanic American Owned Business",
                "Native American Owned Business",
                "Native Hawaiian Organization Owned Firm",
                "Subcontinent Asian Indian American Owned Business",
                "Tribally Owned Firm",
                "Other Minority Owned Business",
                "Women Owned Business",
                "Women Owned Small Business",
                "Economically Disadvantaged Women Owned Small Business",
                "Joint Venture Women Owned Small Business",
                "Joint Venture Economically Disadvantaged Women Owned Small Business",
                "Veteran Owned Business",
                "Service Disabled Veteran Owned Business",
                "Special Designations",
                "8a Program Participant",
                "Ability One Program",
                "DoT Certified Disadvantaged Business Enterprise",
                "Emerging Small Business",
                "Federally Funded Research and Development Corp",
                "Historically Underutilized Business (HUBZone) Firm",
                "Labor Surplus Area Firm",
                "SBA Certified 8a Joint Venture",
                "Self-Certified Small Disadvantaged Business",
                "Small Agricultural Cooperative",
                "Community Developed Corporation Owned Firm",
                "U.S. Owned Business",
                "Foreign-Owned and U.S. Located Business",
                "Foreign Owned",
                "Foreign Government",
                "International Organization",
                "Domestic Shelter",
                "Hospital",
                "Veterinary Hospital",
                "Nonprofit",
                "Foundation",
                "Community Development Corporations",
                "Higher Education",
                "Public Institution of Higher Education",
                "Private Institution of Higher Education",
                "Minority-Serving Institution of Higher Education",
                "School of Forestry",
                "Veterinary College",
                "Government",
                "National Government",
                "Interstate Entity",
                "Regional and State Government",
                "Regional Organization",
                "U.S. Territory or Possession",
                "Council of Governments",
                "Local Government",
                "Indian Native American Tribal Government",
                "Authorities and Commissions",
                "Individuals"
              ],
              "enumTitles": [
                "Business",
                "Small Business",
                "Other Than Small Business",
                "Corporate Entity Tax Exempt",
                "Corporate Entity Not Tax Exempt",
                "Partnership or Limited Liability Partnership",
                "Sole Proprietorship",
                "Manufacturer of Goods",
                "Sub-Chapter S Corporation",
                "Limited Liability Corporation (LLC)",
                "Minority Owned Business",
                "Alaskan Native Corporation Owned Firm",
                "American Indian Owned Business",
                "Asian Pacific American Owned Business",
                "Black American Owned Business",
                "Hispanic American Owned Business",
                "Native American Owned Business",
                "Native Hawaiian Organization Owned Firm",
                "Subcontinent Asian Indian American Owned Business",
                "Tribally Owned Firm",
                "Other Minority Owned Business",
                "Women Owned Business",
                "Women Owned Small Business",
                "Economically Disadvantaged Women Owned Small Business",
                "Joint Venture Women Owned Small Business",
                "Joint Venture Economically Disadvantaged Women Owned Small Business",
                "Veteran Owned Business",
                "Service Disabled Veteran Owned Business",
                "Special Designations",
                "8a Program Participant",
                "Ability One Program",
                "DoT Certified Disadvantaged Business Enterprise",
                "Emerging Small Business",
                "Federally Funded Research and Development Corp",
                "Historically Underutilized Business (HUBZone) Firm",
                "Labor Surplus Area Firm",
                "SBA Certified 8a Joint Venture",
                "Self-Certified Small Disadvantaged Business",
                "Small Agricultural Cooperative",
                "Community Developed Corporation Owned Firm",
                "U.S. Owned Business",
                "Foreign-Owned and U.S. Located Business",
                "Foreign Owned",
                "Foreign Government",
                "International Organization",
                "Domestic Shelter",
                "Hospital",
                "Veterinary Hospital",
                "Nonprofit",
                "Foundation",
                "Community Development Corporations",
                "Higher Education",
                "Public Institution of Higher Education",
                "Private Institution of Higher Education",
                "Minority-Serving Institution of Higher Education",
                "School of Forestry",
                "Veterinary College",
                "Government",
                "National Government",
                "Interstate Entity",
                "Regional and State Government",
                "Regional Organization",
                "U.S. Territory or Possession",
                "Council of Governments",
                "Local Government",
                "Indian Native American Tribal Government",
                "Authorities and Commissions",
                "Individuals"
              ]
            }
          },
          "awardType": {
            "title": "Award Type",
            "enum": [
              "contracts",
              "grants",
              "loans",
              "idvs",
              "direct_payments",
              "other_financial_assistance"
            ],
            "type": "string",
            "description": "Mirrors the Award Type accordion, which groups the checkboxes for Contracts, Grants, Loans, IDVs, Direct Payments, and Other Financial Assistance.",
            "default": "contracts"
          },
          "spendingLevel": {
            "title": "Spending Level",
            "enum": [
              "awards",
              "subawards"
            ],
            "type": "string",
            "description": "Same toggle as the site (Awards vs Sub-Awards).",
            "default": "awards"
          },
          "naicsCodes": {
            "title": "NAICS Codes",
            "type": "array",
            "description": "Use the same codes you would select in the NAICS accordion (e.g., \"336411\" for Aircraft Manufacturing).",
            "items": {
              "type": "string"
            }
          },
          "pscCodes": {
            "title": "PSC Codes",
            "type": "array",
            "description": "Product and Service Codes (PSC). Use the same codes you would select in the PSC accordion (e.g., \"1520\" for Aircraft, Rotary Wing).",
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "Sort Field",
            "enum": [
              "Award Amount",
              "Total Outlays",
              "Start Date",
              "End Date",
              "Recipient Name",
              "Award ID",
              "Awarding Agency",
              "Awarding Sub Agency",
              "Description",
              "Recipient Location",
              "Primary Place of Performance",
              "NAICS",
              "PSC"
            ],
            "type": "string",
            "description": "Matches the Sort By drop-down in Advanced Search.",
            "default": "Award Amount"
          },
          "order": {
            "title": "Sort Order",
            "enum": [
              "asc",
              "desc"
            ],
            "type": "string",
            "description": "Asc/Desc order, just like the UI toggle.",
            "default": "desc"
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Free users: Limited to 100. Paid users: Optional, max 1,000,000"
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}