{
  "data": {
    "id": "YIhRQRy6tDI3IxOQy",
    "actId": "sQfV2vfvBSQBjfBBi",
    "userId": "NL4ThgItAwaoBlffQ",
    "startedAt": "2026-12-01T12:53:26.120Z",
    "finishedAt": "2026-12-01T12:53:31.356Z",
    "status": "SUCCEEDED",
    "meta": {
      "origin": "CLI"
    },
    "inputSchema": "{\n  \"title\": \"USA Spending Federal Data Scraper Input\",\n  \"description\": \"Collect federal awards, recipients, agencies and spending totals from USAspending.gov's public API. No key, login or proxy is needed.\",\n  \"type\": \"object\",\n  \"schemaVersion\": 1,\n  \"properties\": {\n    \"mode\": {\n      \"title\": \"Mode\",\n      \"type\": \"string\",\n      \"description\": \"What to collect. Each mode uses a different USAspending.gov endpoint and returns its own record type.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"searchAwards\",\n        \"awardDetails\",\n        \"topRecipients\",\n        \"spendingByCategory\",\n        \"spendingByGeography\",\n        \"spendingOverTime\",\n        \"agencySpending\",\n        \"recipientSearch\"\n      ],\n      \"enumTitles\": [\n        \"Search awards — contracts, grants, loans, IDVs and other financial assistance\",\n        \"Award details — full record for award IDs or usaspending.gov award URLs\",\n        \"Top recipients — recipients ranked by total award amount\",\n        \"Spending by category — agency, recipient, NAICS, PSC, CFDA, location and more\",\n        \"Spending by geography — state, county, congressional district or country totals\",\n        \"Spending over time — fiscal year, quarter, month or calendar year totals\",\n        \"Agency spending — federal agencies ranked by budgetary resources\",\n        \"Recipient search — recipient profiles by name or UEI\"\n      ],\n      \"default\": \"searchAwards\",\n      \"prefill\": \"searchAwards\"\n    },\n    \"searchQuery\": {\n      \"title\": \"Keyword Search\",\n      \"type\": \"string\",\n      \"description\": \"Words from the award description (minimum 3 characters). Used by searchAwards, topRecipients, spendingByCategory, spendingByGeography and spendingOverTime; recipientSearch uses it as the recipient name/UEI query.\",\n      \"editor\": \"textfield\",\n      \"default\": \"construction\",\n      \"prefill\": \"construction\"\n    },\n    \"awardTypeFamilies\": {\n      \"title\": \"Award Type Families\",\n      \"type\": \"array\",\n      \"description\": \"One or more award type families. Empty or omitted keeps the original contracts default. Multi-family searches are merged into one sorted result stream.\",\n      \"editor\": \"select\",\n      \"items\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"contracts\",\n          \"grants\",\n          \"loans\",\n          \"idvs\",\n          \"direct_payments\",\n          \"other_financial_assistance\",\n          \"all\"\n        ],\n        \"enumTitles\": [\n          \"Contracts\",\n          \"Grants\",\n          \"Loans\",\n          \"IDVs (indefinite delivery vehicles)\",\n          \"Direct payments and insurance\",\n          \"Other financial assistance\",\n          \"All award types\"\n        ]\n      },\n      \"default\": [\n        \"contracts\"\n      ],\n      \"prefill\": [\n        \"contracts\"\n      ]\n    },\n    \"awardTypes\": {\n      \"title\": \"Legacy award type\",\n      \"type\": \"string\",\n      \"description\": \"Legacy alias kept for saved tasks; map to awardTypeFamilies. Hidden in the input form.\",\n      \"editor\": \"hidden\"\n    },\n    \"awardIds\": {\n      \"title\": \"Award IDs or URLs (mode=awardDetails)\",\n      \"type\": \"array\",\n      \"description\": \"Award IDs (for example `CONT_AWD_...`), numeric award IDs, or `https://www.usaspending.gov/award/...` URLs. Plain contract/assistance numbers are resolved by exact match.\",\n      \"editor\": \"stringList\",\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"agency\": {\n      \"title\": \"Awarding Agency\",\n      \"type\": \"string\",\n      \"description\": \"Top-tier awarding agency name, for example `Department of Defense` or `Department of Education`.\",\n      \"editor\": \"textfield\"\n    },\n    \"fundingAgency\": {\n      \"title\": \"Funding Agency\",\n      \"type\": \"string\",\n      \"description\": \"Top-tier funding agency name. Use alongside or instead of the awarding agency.\",\n      \"editor\": \"textfield\"\n    },\n    \"recipient\": {\n      \"title\": \"Recipient Name or UEI\",\n      \"type\": \"string\",\n      \"description\": \"Filter awards to a recipient by name or Unique Entity Identifier (UEI).\",\n      \"editor\": \"textfield\"\n    },\n    \"startDate\": {\n      \"title\": \"Start Date\",\n      \"type\": \"string\",\n      \"description\": \"Earliest award date, `YYYY-MM-DD`. The API can search back to 2007-10-01. Used with dateType.\",\n      \"editor\": \"textfield\",\n      \"default\": \"2025-10-01\",\n      \"prefill\": \"2025-10-01\"\n    },\n    \"endDate\": {\n      \"title\": \"End Date\",\n      \"type\": \"string\",\n      \"description\": \"Latest award date, `YYYY-MM-DD`. Used with dateType.\",\n      \"editor\": \"textfield\",\n      \"default\": \"2026-09-30\",\n      \"prefill\": \"2026-09-30\"\n    },\n    \"dateType\": {\n      \"title\": \"Date Field\",\n      \"type\": \"string\",\n      \"description\": \"Which date the range applies to: action date (default), date signed, or last modified date.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"action_date\",\n        \"date_signed\",\n        \"last_modified_date\"\n      ],\n      \"enumTitles\": [\n        \"Action date\",\n        \"Date signed\",\n        \"Last modified date\"\n      ],\n      \"default\": \"action_date\",\n      \"prefill\": \"action_date\"\n    },\n    \"awardAmountMin\": {\n      \"title\": \"Minimum Award Amount (USD)\",\n      \"type\": \"number\",\n      \"minimum\": 0,\n      \"description\": \"Only awards at or above this dollar amount.\",\n      \"maximum\": 1000000000000000\n    },\n    \"awardAmountMax\": {\n      \"title\": \"Maximum Award Amount (USD)\",\n      \"type\": \"number\",\n      \"minimum\": 0,\n      \"description\": \"Only awards at or below this dollar amount.\",\n      \"maximum\": 1000000000000000\n    },\n    \"naicsCodes\": {\n      \"title\": \"NAICS Codes\",\n      \"type\": \"string\",\n      \"description\": \"Comma-separated NAICS industry codes, for example `541330, 541512`.\",\n      \"editor\": \"textfield\"\n    },\n    \"pscCodes\": {\n      \"title\": \"PSC Codes\",\n      \"type\": \"string\",\n      \"description\": \"Comma-separated Product Service Codes, for example `R425, D399`.\",\n      \"editor\": \"textfield\"\n    },\n    \"setAsideTypes\": {\n      \"title\": \"Set-Aside Types\",\n      \"type\": \"array\",\n      \"description\": \"Contract set-aside types. Empty = any set-aside status.\",\n      \"editor\": \"select\",\n      \"items\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"8AN\",\n          \"8A\",\n          \"HS2Civ\",\n          \"HS3\",\n          \"BI\",\n          \"BICiv\",\n          \"EDWOSB\",\n          \"EDWOSBSS\",\n          \"ESB\",\n          \"HMP\",\n          \"HMT\",\n          \"HZC\",\n          \"HZS\",\n          \"ISEE\",\n          \"ISBEE\",\n          \"NONE\",\n          \"RSBCiv\",\n          \"8ACCiv\",\n          \"SDVOSBC\",\n          \"SDVOSBS\",\n          \"SBP\",\n          \"SBA\",\n          \"VSBCiv\",\n          \"VSA\",\n          \"VSS\",\n          \"WOSB\",\n          \"WOSBSS\"\n        ],\n        \"enumTitles\": [\n          \"8(a) Sole Source\",\n          \"8(a) Competed\",\n          \"Combination HUBZone and 8(a)\",\n          \"8(a) with HUBZone Preference\",\n          \"Buy Indian\",\n          \"Buy Indian\",\n          \"Economically-Disadvantaged Women-Owned Small Business\",\n          \"EDWOSB Sole Source\",\n          \"Emerging Small Business Set Aside\",\n          \"HBCU or Minority Institution Set Aside - Partial\",\n          \"HBCU or Minority Institution Set Aside - Total\",\n          \"HUBZone Set Aside\",\n          \"HUBZone Sole Source\",\n          \"Indian Economic Enterprise\",\n          \"Indian Small Business Economic Enterprise\",\n          \"No Set Aside Used\",\n          \"Reserved for Small Business $2,501 to $100K\",\n          \"SDB Set Aside 8(a)\",\n          \"Service-Disabled Veteran-Owned Small Business Set Aside\",\n          \"SDVOSB Sole Source\",\n          \"Small Business Set Aside - Partial\",\n          \"Small Business Set Aside - Total\",\n          \"Very Small Business Set Aside\",\n          \"Veteran Set Aside\",\n          \"Veteran Sole Source\",\n          \"Women-Owned Small Business\",\n          \"Women Owned Small Business Sole Source\"\n        ]\n      }\n    },\n    \"extentCompeted\": {\n      \"title\": \"Extent Competed\",\n      \"type\": \"array\",\n      \"description\": \"Contract competition extent. Empty = any competition status.\",\n      \"editor\": \"select\",\n      \"items\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"F\",\n          \"CDOCiv\",\n          \"E Civ\",\n          \"A\",\n          \"D\",\n          \"NDOCiv\",\n          \"B\",\n          \"C\",\n          \"G\"\n        ],\n        \"enumTitles\": [\n          \"Competed under SAP\",\n          \"Competitive Delivery Order\",\n          \"Follow On to Competed Action\",\n          \"Full and Open Competition\",\n          \"Full and Open Competition after exclusion of sources\",\n          \"Non-Competitive Delivery Order\",\n          \"Not Available for Competition\",\n          \"Not Competed\",\n          \"Not Competed under SAP\"\n        ]\n      }\n    },\n    \"pricingTypes\": {\n      \"title\": \"Contract Pricing Types\",\n      \"type\": \"array\",\n      \"description\": \"Contract pricing arrangement. Empty = any pricing type.\",\n      \"editor\": \"select\",\n      \"items\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"2\",\n          \"S\",\n          \"R\",\n          \"U\",\n          \"V\",\n          \"T\",\n          \"J\",\n          \"M\",\n          \"L\",\n          \"B\",\n          \"A\",\n          \"K\",\n          \"Z\",\n          \"1\",\n          \"3\",\n          \"Y\"\n        ],\n        \"enumTitles\": [\n          \"Combination\",\n          \"Cost No Fee\",\n          \"Cost Plus Award Fee\",\n          \"Cost Plus Fixed Fee\",\n          \"Cost Plus Incentive Fee\",\n          \"Cost Sharing\",\n          \"Firm Fixed Price\",\n          \"Fixed Price Award Fee\",\n          \"Fixed Price Incentive\",\n          \"Fixed Price Level of Effort\",\n          \"Fixed Price Redetermination\",\n          \"Fixed Price with Economic Price Adjustment\",\n          \"Labor Hours\",\n          \"Order Dependent\",\n          \"Other\",\n          \"Time and Materials\"\n        ]\n      }\n    },\n    \"recipientTypes\": {\n      \"title\": \"Recipient Business Types\",\n      \"type\": \"array\",\n      \"description\": \"Recipient business categories such as small business, nonprofit, government or higher education.\",\n      \"editor\": \"select\",\n      \"items\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"business\",\n          \"small_business\",\n          \"other_than_small_business\",\n          \"corporate_entity_tax_exempt\",\n          \"corporate_entity_not_tax_exempt\",\n          \"partnership_or_limited_liability_partnership\",\n          \"sole_proprietorship\",\n          \"manufacturer_of_goods\",\n          \"subchapter_s_corporation\",\n          \"limited_liability_corporation\",\n          \"minority_owned_business\",\n          \"alaskan_native_corporation_owned_firm\",\n          \"american_indian_owned_business\",\n          \"asian_pacific_american_owned_business\",\n          \"black_american_owned_business\",\n          \"hispanic_american_owned_business\",\n          \"native_american_owned_business\",\n          \"native_hawaiian_organization_owned_firm\",\n          \"subcontinent_asian_indian_american_owned_business\",\n          \"tribally_owned_firm\",\n          \"other_minority_owned_business\",\n          \"woman_owned_business\",\n          \"women_owned_small_business\",\n          \"economically_disadvantaged_women_owned_small_business\",\n          \"joint_venture_women_owned_small_business\",\n          \"joint_venture_economically_disadvantaged_women_owned_small_business\",\n          \"veteran_owned_business\",\n          \"service_disabled_veteran_owned_business\",\n          \"special_designations\",\n          \"8a_program_participant\",\n          \"ability_one_program\",\n          \"dot_certified_disadvantaged_business_enterprise\",\n          \"emerging_small_business\",\n          \"federally_funded_research_and_development_corp\",\n          \"historically_underutilized_business_firm\",\n          \"labor_surplus_area_firm\",\n          \"sba_certified_8a_joint_venture\",\n          \"self_certified_small_disadvanted_business\",\n          \"small_agricultural_cooperative\",\n          \"small_disadvantaged_business\",\n          \"community_developed_corporation_owned_firm\",\n          \"us_owned_business\",\n          \"foreign_owned_and_us_located_business\",\n          \"foreign_owned\",\n          \"foreign_government\",\n          \"international_organization\",\n          \"domestic_shelter\",\n          \"hospital\",\n          \"veterinary_hospital\",\n          \"nonprofit\",\n          \"foundation\",\n          \"community_development_corporations\",\n          \"higher_education\",\n          \"public_institution_of_higher_education\",\n          \"private_institution_of_higher_education\",\n          \"minority_serving_institution_of_higher_education\",\n          \"school_of_forestry\",\n          \"veterinary_college\",\n          \"government\",\n          \"national_government\",\n          \"regional_and_state_government\",\n          \"regional_organization\",\n          \"interstate_entity\",\n          \"us_territory_or_possession\",\n          \"local_government\",\n          \"indian_native_american_tribal_government\",\n          \"authorities_and_commissions\",\n          \"council_of_governments\",\n          \"individuals\"\n        ],\n        \"enumTitles\": [\n          \"Business\",\n          \"Small Business\",\n          \"Other Than Small Business\",\n          \"Corporate Entity Tax Exempt\",\n          \"Corporate Entity Not Tax Exempt\",\n          \"Partnership or Limited Liability Partnership\",\n          \"Sole Proprietorship\",\n          \"Manufacturer of Goods\",\n          \"Sub-Chapter S Corporation\",\n          \"Limited Liability Corporation (LLC)\",\n          \"Minority Owned Business\",\n          \"Alaskan Native Corporation Owned Firm\",\n          \"American Indian Owned Business\",\n          \"Asian Pacific American Owned Business\",\n          \"Black American Owned Business\",\n          \"Hispanic American Owned Business\",\n          \"Native American Owned Business\",\n          \"Native Hawaiian Organization Owned Firm\",\n          \"Subcontinent Asian Indian American Owned Business\",\n          \"Tribally Owned Firm\",\n          \"Other Minority Owned Business\",\n          \"Women Owned Business\",\n          \"Women Owned Small Business\",\n          \"Economically Disadvantaged Women Owned Small Business\",\n          \"Joint Venture Women Owned Small Business\",\n          \"Joint Venture EDWOSB\",\n          \"Veteran Owned Business\",\n          \"Service Disabled Veteran Owned Business\",\n          \"Special Designations\",\n          \"8(a) Program Participant\",\n          \"AbilityOne Program Participant\",\n          \"DoT Certified Disadvantaged Business Enterprise\",\n          \"Emerging Small Business\",\n          \"Federally Funded Research and Development Corp\",\n          \"HUBZone Firm\",\n          \"Labor Surplus Area Firm\",\n          \"SBA Certified 8(a) Joint Venture\",\n          \"Self-Certified Small Disadvantaged Business\",\n          \"Small Agricultural Cooperative\",\n          \"Small Disadvantaged Business\",\n          \"Community Developed Corporation Owned Firm\",\n          \"U.S. Owned Business\",\n          \"Foreign-Owned and U.S. Located Business\",\n          \"Foreign Owned\",\n          \"Foreign Government\",\n          \"International Organization\",\n          \"Domestic Shelter\",\n          \"Hospital\",\n          \"Veterinary Hospital\",\n          \"Nonprofit Organization\",\n          \"Foundation\",\n          \"Community Development Corporation\",\n          \"Higher Education\",\n          \"Higher Education (Public)\",\n          \"Higher Education (Private)\",\n          \"Higher Education (Minority Serving)\",\n          \"School of Forestry\",\n          \"Veterinary College\",\n          \"Government\",\n          \"U.S. National Government\",\n          \"U.S. Regional/State Government\",\n          \"U.S. Regional Government Organization\",\n          \"U.S. Interstate Government Entity\",\n          \"U.S. Territory Government\",\n          \"U.S. Local Government\",\n          \"Native American Tribal Government\",\n          \"U.S. Government Authorities\",\n          \"Council of Governments\",\n          \"Individuals\"\n        ]\n      }\n    },\n    \"placeOfPerformanceState\": {\n      \"title\": \"Place-of-Performance State\",\n      \"type\": \"string\",\n      \"description\": \"Two-letter state or territory code where the work is performed. Leave blank for all states.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"AK\",\n        \"AL\",\n        \"AR\",\n        \"AS\",\n        \"AZ\",\n        \"CA\",\n        \"CO\",\n        \"CT\",\n        \"DC\",\n        \"DE\",\n        \"FL\",\n        \"FM\",\n        \"GA\",\n        \"GU\",\n        \"HI\",\n        \"IA\",\n        \"ID\",\n        \"IL\",\n        \"IN\",\n        \"KS\",\n        \"KY\",\n        \"LA\",\n        \"MA\",\n        \"MD\",\n        \"ME\",\n        \"MH\",\n        \"MI\",\n        \"MN\",\n        \"MO\",\n        \"MP\",\n        \"MS\",\n        \"MT\",\n        \"NC\",\n        \"ND\",\n        \"NE\",\n        \"NH\",\n        \"NJ\",\n        \"NM\",\n        \"NV\",\n        \"NY\",\n        \"OH\",\n        \"OK\",\n        \"OR\",\n        \"PA\",\n        \"PR\",\n        \"PW\",\n        \"RI\",\n        \"SC\",\n        \"SD\",\n        \"TN\",\n        \"TX\",\n        \"UT\",\n        \"VA\",\n        \"VI\",\n        \"VT\",\n        \"WA\",\n        \"WI\",\n        \"WV\",\n        \"WY\"\n      ],\n      \"enumTitles\": [\n        \"AK — Alaska\",\n        \"AL — Alabama\",\n        \"AR — Arkansas\",\n        \"AS — American Samoa\",\n        \"AZ — Arizona\",\n        \"CA — California\",\n        \"CO — Colorado\",\n        \"CT — Connecticut\",\n        \"DC — District Of Columbia\",\n        \"DE — Delaware\",\n        \"FL — Florida\",\n        \"FM — Micronesia\",\n        \"GA — Georgia\",\n        \"GU — Guam\",\n        \"HI — Hawaii\",\n        \"IA — Iowa\",\n        \"ID — Idaho\",\n        \"IL — Illinois\",\n        \"IN — Indiana\",\n        \"KS — Kansas\",\n        \"KY — Kentucky\",\n        \"LA — Louisiana\",\n        \"MA — Massachusetts\",\n        \"MD — Maryland\",\n        \"ME — Maine\",\n        \"MH — Marshall Islands\",\n        \"MI — Michigan\",\n        \"MN — Minnesota\",\n        \"MO — Missouri\",\n        \"MP — Northern Mariana Islands\",\n        \"MS — Mississippi\",\n        \"MT — Montana\",\n        \"NC — North Carolina\",\n        \"ND — North Dakota\",\n        \"NE — Nebraska\",\n        \"NH — New Hampshire\",\n        \"NJ — New Jersey\",\n        \"NM — New Mexico\",\n        \"NV — Nevada\",\n        \"NY — New York\",\n        \"OH — Ohio\",\n        \"OK — Oklahoma\",\n        \"OR — Oregon\",\n        \"PA — Pennsylvania\",\n        \"PR — Puerto Rico\",\n        \"PW — Palau\",\n        \"RI — Rhode Island\",\n        \"SC — South Carolina\",\n        \"SD — South Dakota\",\n        \"TN — Tennessee\",\n        \"TX — Texas\",\n        \"UT — Utah\",\n        \"VA — Virginia\",\n        \"VI — Virgin Islands\",\n        \"VT — Vermont\",\n        \"WA — Washington\",\n        \"WI — Wisconsin\",\n        \"WV — West Virginia\",\n        \"WY — Wyoming\"\n      ]\n    },\n    \"placeOfPerformanceCountry\": {\n      \"title\": \"Place-of-Performance Country\",\n      \"type\": \"string\",\n      \"description\": \"Three-letter country code, for example `USA`. Defaults to USA when a state is selected.\",\n      \"editor\": \"textfield\"\n    },\n    \"recipientState\": {\n      \"title\": \"Recipient State\",\n      \"type\": \"string\",\n      \"description\": \"Two-letter state or territory code of the recipient's location.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"AK\",\n        \"AL\",\n        \"AR\",\n        \"AS\",\n        \"AZ\",\n        \"CA\",\n        \"CO\",\n        \"CT\",\n        \"DC\",\n        \"DE\",\n        \"FL\",\n        \"FM\",\n        \"GA\",\n        \"GU\",\n        \"HI\",\n        \"IA\",\n        \"ID\",\n        \"IL\",\n        \"IN\",\n        \"KS\",\n        \"KY\",\n        \"LA\",\n        \"MA\",\n        \"MD\",\n        \"ME\",\n        \"MH\",\n        \"MI\",\n        \"MN\",\n        \"MO\",\n        \"MP\",\n        \"MS\",\n        \"MT\",\n        \"NC\",\n        \"ND\",\n        \"NE\",\n        \"NH\",\n        \"NJ\",\n        \"NM\",\n        \"NV\",\n        \"NY\",\n        \"OH\",\n        \"OK\",\n        \"OR\",\n        \"PA\",\n        \"PR\",\n        \"PW\",\n        \"RI\",\n        \"SC\",\n        \"SD\",\n        \"TN\",\n        \"TX\",\n        \"UT\",\n        \"VA\",\n        \"VI\",\n        \"VT\",\n        \"WA\",\n        \"WI\",\n        \"WV\",\n        \"WY\"\n      ],\n      \"enumTitles\": [\n        \"AK — Alaska\",\n        \"AL — Alabama\",\n        \"AR — Arkansas\",\n        \"AS — American Samoa\",\n        \"AZ — Arizona\",\n        \"CA — California\",\n        \"CO — Colorado\",\n        \"CT — Connecticut\",\n        \"DC — District Of Columbia\",\n        \"DE — Delaware\",\n        \"FL — Florida\",\n        \"FM — Micronesia\",\n        \"GA — Georgia\",\n        \"GU — Guam\",\n        \"HI — Hawaii\",\n        \"IA — Iowa\",\n        \"ID — Idaho\",\n        \"IL — Illinois\",\n        \"IN — Indiana\",\n        \"KS — Kansas\",\n        \"KY — Kentucky\",\n        \"LA — Louisiana\",\n        \"MA — Massachusetts\",\n        \"MD — Maryland\",\n        \"ME — Maine\",\n        \"MH — Marshall Islands\",\n        \"MI — Michigan\",\n        \"MN — Minnesota\",\n        \"MO — Missouri\",\n        \"MP — Northern Mariana Islands\",\n        \"MS — Mississippi\",\n        \"MT — Montana\",\n        \"NC — North Carolina\",\n        \"ND — North Dakota\",\n        \"NE — Nebraska\",\n        \"NH — New Hampshire\",\n        \"NJ — New Jersey\",\n        \"NM — New Mexico\",\n        \"NV — Nevada\",\n        \"NY — New York\",\n        \"OH — Ohio\",\n        \"OK — Oklahoma\",\n        \"OR — Oregon\",\n        \"PA — Pennsylvania\",\n        \"PR — Puerto Rico\",\n        \"PW — Palau\",\n        \"RI — Rhode Island\",\n        \"SC — South Carolina\",\n        \"SD — South Dakota\",\n        \"TN — Tennessee\",\n        \"TX — Texas\",\n        \"UT — Utah\",\n        \"VA — Virginia\",\n        \"VI — Virgin Islands\",\n        \"VT — Vermont\",\n        \"WA — Washington\",\n        \"WI — Wisconsin\",\n        \"WV — West Virginia\",\n        \"WY — Wyoming\"\n      ]\n    },\n    \"recipientCountry\": {\n      \"title\": \"Recipient Country\",\n      \"type\": \"string\",\n      \"description\": \"Three-letter country code of the recipient's location, for example `USA`.\",\n      \"editor\": \"textfield\"\n    },\n    \"spendingLevel\": {\n      \"title\": \"Spending Level (mode=searchAwards)\",\n      \"type\": \"string\",\n      \"description\": \"Prime awards or sub-awards.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"awards\",\n        \"subawards\"\n      ],\n      \"enumTitles\": [\n        \"Prime awards\",\n        \"Sub-awards\"\n      ],\n      \"default\": \"awards\",\n      \"prefill\": \"awards\"\n    },\n    \"category\": {\n      \"title\": \"Spending Category (mode=spendingByCategory)\",\n      \"type\": \"string\",\n      \"description\": \"How to group spending totals.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"awardingAgency\",\n        \"awardingSubAgency\",\n        \"fundingAgency\",\n        \"fundingSubAgency\",\n        \"recipient\",\n        \"naics\",\n        \"psc\",\n        \"cfda\",\n        \"state\",\n        \"country\",\n        \"county\",\n        \"district\",\n        \"federalAccount\",\n        \"disasterEmergencyFundCode\"\n      ],\n      \"enumTitles\": [\n        \"Awarding agency\",\n        \"Awarding sub-agency\",\n        \"Funding agency\",\n        \"Funding sub-agency\",\n        \"Recipient\",\n        \"NAICS industry\",\n        \"PSC product/service\",\n        \"Assistance listing (CFDA)\",\n        \"State or territory\",\n        \"Country\",\n        \"County\",\n        \"Congressional district\",\n        \"Federal account\",\n        \"Disaster emergency fund code\"\n      ],\n      \"default\": \"recipient\",\n      \"prefill\": \"recipient\"\n    },\n    \"geoScope\": {\n      \"title\": \"Geography Scope (mode=spendingByGeography)\",\n      \"type\": \"string\",\n      \"description\": \"Use the place of performance or the recipient's location.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"placeOfPerformance\",\n        \"recipientLocation\"\n      ],\n      \"enumTitles\": [\n        \"Place of performance\",\n        \"Recipient location\"\n      ],\n      \"default\": \"placeOfPerformance\",\n      \"prefill\": \"placeOfPerformance\"\n    },\n    \"geoLayer\": {\n      \"title\": \"Geography Layer (mode=spendingByGeography)\",\n      \"type\": \"string\",\n      \"description\": \"Geographic grouping for the totals.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"state\",\n        \"county\",\n        \"district\",\n        \"country\"\n      ],\n      \"enumTitles\": [\n        \"State or territory\",\n        \"County\",\n        \"Congressional district\",\n        \"Country\"\n      ],\n      \"default\": \"state\",\n      \"prefill\": \"state\"\n    },\n    \"timeGroup\": {\n      \"title\": \"Time Group (mode=spendingOverTime)\",\n      \"type\": \"string\",\n      \"description\": \"Time bucket for the spending totals.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"fiscalYear\",\n        \"quarter\",\n        \"month\",\n        \"calendarYear\"\n      ],\n      \"enumTitles\": [\n        \"Fiscal year\",\n        \"Fiscal quarter\",\n        \"Month\",\n        \"Calendar year\"\n      ],\n      \"default\": \"fiscalYear\",\n      \"prefill\": \"fiscalYear\"\n    },\n    \"includeAwardDetails\": {\n      \"title\": \"Include Award Details (mode=searchAwards)\",\n      \"type\": \"boolean\",\n      \"description\": \"Fetch the full award record for every search result. Adds one request per award and fills recipient business types, parent recipient, subaward counts and contract competition fields.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"includeAgencyDetails\": {\n      \"title\": \"Include Agency Details (mode=agencySpending)\",\n      \"type\": \"boolean\",\n      \"description\": \"Fetch each agency's mission, website and sub-agency count. Adds one request per agency.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"sortBy\": {\n      \"title\": \"Sort By\",\n      \"type\": \"string\",\n      \"description\": \"Sort order for award search results. Loans fall back to Award ID when sorting by amount or date.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"awardAmount\",\n        \"startDate\",\n        \"endDate\",\n        \"awardId\",\n        \"recipientName\"\n      ],\n      \"enumTitles\": [\n        \"Award amount\",\n        \"Start date\",\n        \"End date\",\n        \"Award ID\",\n        \"Recipient name\"\n      ],\n      \"default\": \"awardAmount\",\n      \"prefill\": \"awardAmount\"\n    },\n    \"sortOrder\": {\n      \"title\": \"Sort Direction\",\n      \"type\": \"string\",\n      \"description\": \"Ascending or descending.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"desc\",\n        \"asc\"\n      ],\n      \"enumTitles\": [\n        \"Descending\",\n        \"Ascending\"\n      ],\n      \"default\": \"desc\",\n      \"prefill\": \"desc\"\n    },\n    \"maxItems\": {\n      \"title\": \"Maximum Records\",\n      \"type\": \"integer\",\n      \"minimum\": 1,\n      \"maximum\": 100000,\n      \"description\": \"Maximum records to return (1-100,000). Larger runs use the API's cursor pagination.\",\n      \"default\": 50,\n      \"prefill\": 3\n    },\n    \"recipientIds\": {\n      \"title\": \"Recipient IDs (mode=recipientSearch)\",\n      \"type\": \"array\",\n      \"description\": \"Optional recipient profile IDs (UUID hashes). When set, profiles are fetched directly and searchQuery is ignored.\",\n      \"editor\": \"stringList\",\n      \"default\": [],\n      \"prefill\": []\n    }\n  },\n  \"required\": [\n    \"mode\"\n  ]\n}",
    "readme": "# USAspending.gov Awards, Recipients & Agency Scraper\n\n[USAspending.gov](https://www.usaspending.gov/) publishes the U.S. federal government's award and spending data. This actor reads its public API directly and turns it into clean JSON records: individual awards, sub-awards, recipient profiles, agency totals and grouped spending statistics.\n\nNo API key, account, cookie or proxy is needed.\n\n## Modes\n\n| Mode | What it returns |\n|---|---|\n| `searchAwards` | Prime awards or sub-awards matching keyword, agency, recipient, date, amount, industry, competition and location filters |\n| `awardDetails` | Full record for one or more award IDs or usaspending.gov award URLs |\n| `topRecipients` | Recipients ranked by total award amount for the chosen filters |\n| `spendingByCategory` | Totals grouped by awarding/funding agency or sub-agency, recipient, NAICS, PSC, CFDA, state, county, district, country, federal account or disaster code |\n| `spendingByGeography` | State, county, congressional-district or country totals for place of performance or recipient location |\n| `spendingOverTime` | Fiscal-year, quarter, month or calendar-year obligation/outlay totals |\n| `agencySpending` | Federal agencies ranked by budgetary resources, with optional mission/website enrichment |\n| `recipientSearch` | Recipient profiles by name or UEI, including parent companies, business categories and lifetime transaction totals |\n\n## Input\n\n| Field | Applies to | Default | Notes |\n|---|---|---|---|\n| `mode` | all | `searchAwards` | One of the eight modes above |\n| `searchQuery` | search, aggregates, recipient search | `construction` | Award keywords (3+ characters) or a recipient name/UEI |\n| `awardTypeFamilies` | search, aggregates | `[\"contracts\"]` | `contracts`, `grants`, `loans`, `idvs`, `direct_payments`, `other_financial_assistance`, or `all` |\n| `awardTypes` | legacy tasks | – | Hidden legacy string; mapped to `awardTypeFamilies` |\n| `awardIds` | `awardDetails` | – | Generated award IDs, numeric IDs, plain contract/assistance numbers, or award URLs |\n| `agency` / `fundingAgency` | search, aggregates | – | Top-tier agency names |\n| `recipient` | search, aggregates | – | Recipient name or UEI |\n| `startDate`, `endDate` | search, aggregates | `2025-10-01`, `2026-09-30` | Date range; the API can search back to 2007-10-01 |\n| `dateType` | search, aggregates | `action_date` | `action_date`, `date_signed` or `last_modified_date` |\n| `awardAmountMin`, `awardAmountMax` | search, aggregates | – | Dollar range |\n| `naicsCodes`, `pscCodes` | search, aggregates | – | Comma-separated classification codes |\n| `setAsideTypes` | search, aggregates | – | Set-aside codes |\n| `extentCompeted` | search, aggregates | – | Competition extent codes |\n| `pricingTypes` | search, aggregates | – | Contract pricing codes |\n| `recipientTypes` | search, aggregates | – | Recipient business-type keys |\n| `placeOfPerformanceState`, `placeOfPerformanceCountry` | search, aggregates | – | Where the work is performed |\n| `recipientState`, `recipientCountry` | search, aggregates | – | Where the recipient is located |\n| `spendingLevel` | `searchAwards` | `awards` | `awards` or `subawards` |\n| `category` | `spendingByCategory` | `recipient` | 14 grouping categories |\n| `geoScope`, `geoLayer` | `spendingByGeography` | `placeOfPerformance`, `state` | 2 scopes × 4 layers |\n| `timeGroup` | `spendingOverTime` | `fiscalYear` | Fiscal year, quarter, month or calendar year |\n| `includeAwardDetails` | `searchAwards` | `false` | Enrich every hit with its full award record |\n| `includeAgencyDetails` | `agencySpending` | `false` | Add mission, website and sub-agency count |\n| `sortBy`, `sortOrder` | `searchAwards` | `awardAmount`, `desc` | Award amount, start/end date, award ID or recipient name |\n| `maxItems` | all | `50` | 1–100,000 records; cursor pagination for deep result sets |\n| `recipientIds` | `recipientSearch` | – | Direct recipient profile IDs (UUID hashes) |\n\n### Examples\n\n```json\n{\n  \"mode\": \"searchAwards\",\n  \"searchQuery\": \"construction\",\n  \"awardTypeFamilies\": [\"contracts\"],\n  \"startDate\": \"2025-10-01\",\n  \"endDate\": \"2026-09-30\",\n  \"placeOfPerformanceState\": \"VA\",\n  \"maxItems\": 100\n}\n```\n\n```json\n{\n  \"mode\": \"awardDetails\",\n  \"awardIds\": [\"https://www.usaspending.gov/award/CONT_AWD_NNM07AB03C_8000_-NONE-_-NONE-/\"]\n}\n```\n\n```json\n{\n  \"mode\": \"spendingByCategory\",\n  \"category\": \"naics\",\n  \"awardTypeFamilies\": [\"contracts\"],\n  \"startDate\": \"2025-10-01\",\n  \"endDate\": \"2026-09-30\",\n  \"maxItems\": 25\n}\n```\n\n```json\n{\n  \"mode\": \"recipientSearch\",\n  \"searchQuery\": \"Boeing\",\n  \"maxItems\": 10\n}\n```\n\n## Output\n\nEvery record is flat camelCase JSON with empty values omitted. Common fields include `recordType`, `scrapedAt`, `awardId`, `awardCategory`, `recipientName`, `awardAmount` and `usaspendingUrl`.\n\n**Award search records** add recipient UEI/DUNS, total outlays, description, start/end dates, awarding and funding agency names/codes/offices, NAICS and PSC with descriptions, CFDA number, set-aside and competition fields, and place-of-performance location fields.\n\n**Award detail records** add the full award record: PIID/FAIN/URI, date signed, total obligation, account obligations/outlays, base and all options, loan/subsidy values, subaward count and amount, recipient business categories and parent recipient, full location objects, contract pricing and IDV details, and assistance listings.\n\n**Subaward records** identify the prime award and prime recipient, and include the sub-awardee, amount, date, description, NAICS/PSC, sub-award type and location when the source publishes it.\n\n**Recipient records** include recipient ID/UEI/DUNS, alternate names, business categories, parent recipient chain, location, lifetime transaction amounts/counts and loan totals.\n\n**Aggregate records** (`topRecipients`, `spendingByCategory`, `spendingByGeography`, `spendingOverTime`, `agencySpending`) carry the grouping label and the amount/outlays or obligations, plus the relevant agency, recipient, geography or time-period fields.\n\n## Data source and freshness\n\nThe actor calls the official public USAspending.gov API (`api.usaspending.gov/api/v2`). Federal award data is updated as agencies report it, usually within a few weeks of a transaction. The API can search award data from 2007-10-01 onward.\n\n## Limits and notes\n\n- A search result page is capped at 100 records; the actor uses cursor pagination, so large exports are not limited by the 50,000-row page window.\n- Loan awards do not expose amount or start-date sorting in the search API; those runs fall back to Award ID sorting and say so in the run status.\n- Sub-awards do not support some prime-award sort fields; the actor substitutes the closest sub-award field.\n- A field the source genuinely lacks for an award is omitted rather than sent as `null`, `\"\"` or a placeholder.\n- `includeAwardDetails` adds one API request per award, so large enriched runs take longer.\n- Contract and assistance numbers (`awardIds`) are resolved by exact Award ID lookup; generated award IDs and URLs are the most direct input.\n\n## FAQ\n\n**Do I need an API key?**\nNo. USAspending.gov's public data API is open.\n\n**Is this an official government product?**\nNo. It is an independent tool that reads USAspending.gov's published data.\n\n**Why do some awards lack a NAICS or PSC code?**\nThose classifications apply to contracts and IDVs. Grants and other assistance awards normally publish a CFDA/assistance-listing number instead.\n\n**Why is the award amount missing on some loan results?**\nThe search index does not always carry an amount for loan awards. The loan's total value and subsidy cost are available through `awardDetails`.\n\n**Can I export more than 10,000 rows?**\nYes. Set `maxItems` up to 100,000; the actor follows the API's cursor instead of deep page numbers.\n\n**Can I combine award types?**\nYes. Multi-family searches are fetched separately and merged into one sorted stream. Codes from different families are never sent in the same API request because the API rejects that.\n",
    "actorDefinition": {
      "actorSpecification": 1,
      "name": "usaspending-gov-awards-recipients-and-agency",
      "title": "USAspending.gov Awards, Recipients & Agency Scraper",
      "description": "Explore U.S. federal spending on USAspending.gov: search awards and sub-awards with advanced filters, pull full award records, rank recipients and agencies, and build spending totals by category, geography or time period.",
      "version": "2.0",
      "buildTag": "latest",
      "dockerfile": "../Dockerfile",
      "readme": "# USAspending.gov Awards, Recipients & Agency Scraper\n\n[USAspending.gov](https://www.usaspending.gov/) publishes the U.S. federal government's award and spending data. This actor reads its public API directly and turns it into clean JSON records: individual awards, sub-awards, recipient profiles, agency totals and grouped spending statistics.\n\nNo API key, account, cookie or proxy is needed.\n\n## Modes\n\n| Mode | What it returns |\n|---|---|\n| `searchAwards` | Prime awards or sub-awards matching keyword, agency, recipient, date, amount, industry, competition and location filters |\n| `awardDetails` | Full record for one or more award IDs or usaspending.gov award URLs |\n| `topRecipients` | Recipients ranked by total award amount for the chosen filters |\n| `spendingByCategory` | Totals grouped by awarding/funding agency or sub-agency, recipient, NAICS, PSC, CFDA, state, county, district, country, federal account or disaster code |\n| `spendingByGeography` | State, county, congressional-district or country totals for place of performance or recipient location |\n| `spendingOverTime` | Fiscal-year, quarter, month or calendar-year obligation/outlay totals |\n| `agencySpending` | Federal agencies ranked by budgetary resources, with optional mission/website enrichment |\n| `recipientSearch` | Recipient profiles by name or UEI, including parent companies, business categories and lifetime transaction totals |\n\n## Input\n\n| Field | Applies to | Default | Notes |\n|---|---|---|---|\n| `mode` | all | `searchAwards` | One of the eight modes above |\n| `searchQuery` | search, aggregates, recipient search | `construction` | Award keywords (3+ characters) or a recipient name/UEI |\n| `awardTypeFamilies` | search, aggregates | `[\"contracts\"]` | `contracts`, `grants`, `loans`, `idvs`, `direct_payments`, `other_financial_assistance`, or `all` |\n| `awardTypes` | legacy tasks | – | Hidden legacy string; mapped to `awardTypeFamilies` |\n| `awardIds` | `awardDetails` | – | Generated award IDs, numeric IDs, plain contract/assistance numbers, or award URLs |\n| `agency` / `fundingAgency` | search, aggregates | – | Top-tier agency names |\n| `recipient` | search, aggregates | – | Recipient name or UEI |\n| `startDate`, `endDate` | search, aggregates | `2025-10-01`, `2026-09-30` | Date range; the API can search back to 2007-10-01 |\n| `dateType` | search, aggregates | `action_date` | `action_date`, `date_signed` or `last_modified_date` |\n| `awardAmountMin`, `awardAmountMax` | search, aggregates | – | Dollar range |\n| `naicsCodes`, `pscCodes` | search, aggregates | – | Comma-separated classification codes |\n| `setAsideTypes` | search, aggregates | – | Set-aside codes |\n| `extentCompeted` | search, aggregates | – | Competition extent codes |\n| `pricingTypes` | search, aggregates | – | Contract pricing codes |\n| `recipientTypes` | search, aggregates | – | Recipient business-type keys |\n| `placeOfPerformanceState`, `placeOfPerformanceCountry` | search, aggregates | – | Where the work is performed |\n| `recipientState`, `recipientCountry` | search, aggregates | – | Where the recipient is located |\n| `spendingLevel` | `searchAwards` | `awards` | `awards` or `subawards` |\n| `category` | `spendingByCategory` | `recipient` | 14 grouping categories |\n| `geoScope`, `geoLayer` | `spendingByGeography` | `placeOfPerformance`, `state` | 2 scopes × 4 layers |\n| `timeGroup` | `spendingOverTime` | `fiscalYear` | Fiscal year, quarter, month or calendar year |\n| `includeAwardDetails` | `searchAwards` | `false` | Enrich every hit with its full award record |\n| `includeAgencyDetails` | `agencySpending` | `false` | Add mission, website and sub-agency count |\n| `sortBy`, `sortOrder` | `searchAwards` | `awardAmount`, `desc` | Award amount, start/end date, award ID or recipient name |\n| `maxItems` | all | `50` | 1–100,000 records; cursor pagination for deep result sets |\n| `recipientIds` | `recipientSearch` | – | Direct recipient profile IDs (UUID hashes) |\n\n### Examples\n\n```json\n{\n  \"mode\": \"searchAwards\",\n  \"searchQuery\": \"construction\",\n  \"awardTypeFamilies\": [\"contracts\"],\n  \"startDate\": \"2025-10-01\",\n  \"endDate\": \"2026-09-30\",\n  \"placeOfPerformanceState\": \"VA\",\n  \"maxItems\": 100\n}\n```\n\n```json\n{\n  \"mode\": \"awardDetails\",\n  \"awardIds\": [\"https://www.usaspending.gov/award/CONT_AWD_NNM07AB03C_8000_-NONE-_-NONE-/\"]\n}\n```\n\n```json\n{\n  \"mode\": \"spendingByCategory\",\n  \"category\": \"naics\",\n  \"awardTypeFamilies\": [\"contracts\"],\n  \"startDate\": \"2025-10-01\",\n  \"endDate\": \"2026-09-30\",\n  \"maxItems\": 25\n}\n```\n\n```json\n{\n  \"mode\": \"recipientSearch\",\n  \"searchQuery\": \"Boeing\",\n  \"maxItems\": 10\n}\n```\n\n## Output\n\nEvery record is flat camelCase JSON with empty values omitted. Common fields include `recordType`, `scrapedAt`, `awardId`, `awardCategory`, `recipientName`, `awardAmount` and `usaspendingUrl`.\n\n**Award search records** add recipient UEI/DUNS, total outlays, description, start/end dates, awarding and funding agency names/codes/offices, NAICS and PSC with descriptions, CFDA number, set-aside and competition fields, and place-of-performance location fields.\n\n**Award detail records** add the full award record: PIID/FAIN/URI, date signed, total obligation, account obligations/outlays, base and all options, loan/subsidy values, subaward count and amount, recipient business categories and parent recipient, full location objects, contract pricing and IDV details, and assistance listings.\n\n**Subaward records** identify the prime award and prime recipient, and include the sub-awardee, amount, date, description, NAICS/PSC, sub-award type and location when the source publishes it.\n\n**Recipient records** include recipient ID/UEI/DUNS, alternate names, business categories, parent recipient chain, location, lifetime transaction amounts/counts and loan totals.\n\n**Aggregate records** (`topRecipients`, `spendingByCategory`, `spendingByGeography`, `spendingOverTime`, `agencySpending`) carry the grouping label and the amount/outlays or obligations, plus the relevant agency, recipient, geography or time-period fields.\n\n## Data source and freshness\n\nThe actor calls the official public USAspending.gov API (`api.usaspending.gov/api/v2`). Federal award data is updated as agencies report it, usually within a few weeks of a transaction. The API can search award data from 2007-10-01 onward.\n\n## Limits and notes\n\n- A search result page is capped at 100 records; the actor uses cursor pagination, so large exports are not limited by the 50,000-row page window.\n- Loan awards do not expose amount or start-date sorting in the search API; those runs fall back to Award ID sorting and say so in the run status.\n- Sub-awards do not support some prime-award sort fields; the actor substitutes the closest sub-award field.\n- A field the source genuinely lacks for an award is omitted rather than sent as `null`, `\"\"` or a placeholder.\n- `includeAwardDetails` adds one API request per award, so large enriched runs take longer.\n- Contract and assistance numbers (`awardIds`) are resolved by exact Award ID lookup; generated award IDs and URLs are the most direct input.\n\n## FAQ\n\n**Do I need an API key?**\nNo. USAspending.gov's public data API is open.\n\n**Is this an official government product?**\nNo. It is an independent tool that reads USAspending.gov's published data.\n\n**Why do some awards lack a NAICS or PSC code?**\nThose classifications apply to contracts and IDVs. Grants and other assistance awards normally publish a CFDA/assistance-listing number instead.\n\n**Why is the award amount missing on some loan results?**\nThe search index does not always carry an amount for loan awards. The loan's total value and subsidy cost are available through `awardDetails`.\n\n**Can I export more than 10,000 rows?**\nYes. Set `maxItems` up to 100,000; the actor follows the API's cursor instead of deep page numbers.\n\n**Can I combine award types?**\nYes. Multi-family searches are fetched separately and merged into one sorted stream. Codes from different families are never sent in the same API request because the API rejects that.\n",
      "input": {
        "title": "USA Spending Federal Data Scraper Input",
        "description": "Collect federal awards, recipients, agencies and spending totals from USAspending.gov's public API. No key, login or proxy is needed.",
        "type": "object",
        "schemaVersion": 1,
        "properties": {
          "mode": {
            "title": "Mode",
            "type": "string",
            "description": "What to collect. Each mode uses a different USAspending.gov endpoint and returns its own record type.",
            "editor": "select",
            "enum": [
              "searchAwards",
              "awardDetails",
              "topRecipients",
              "spendingByCategory",
              "spendingByGeography",
              "spendingOverTime",
              "agencySpending",
              "recipientSearch"
            ],
            "enumTitles": [
              "Search awards — contracts, grants, loans, IDVs and other financial assistance",
              "Award details — full record for award IDs or usaspending.gov award URLs",
              "Top recipients — recipients ranked by total award amount",
              "Spending by category — agency, recipient, NAICS, PSC, CFDA, location and more",
              "Spending by geography — state, county, congressional district or country totals",
              "Spending over time — fiscal year, quarter, month or calendar year totals",
              "Agency spending — federal agencies ranked by budgetary resources",
              "Recipient search — recipient profiles by name or UEI"
            ],
            "default": "searchAwards",
            "prefill": "searchAwards"
          },
          "searchQuery": {
            "title": "Keyword Search",
            "type": "string",
            "description": "Words from the award description (minimum 3 characters). Used by searchAwards, topRecipients, spendingByCategory, spendingByGeography and spendingOverTime; recipientSearch uses it as the recipient name/UEI query.",
            "editor": "textfield",
            "default": "construction",
            "prefill": "construction"
          },
          "awardTypeFamilies": {
            "title": "Award Type Families",
            "type": "array",
            "description": "One or more award type families. Empty or omitted keeps the original contracts default. Multi-family searches are merged into one sorted result stream.",
            "editor": "select",
            "items": {
              "type": "string",
              "enum": [
                "contracts",
                "grants",
                "loans",
                "idvs",
                "direct_payments",
                "other_financial_assistance",
                "all"
              ],
              "enumTitles": [
                "Contracts",
                "Grants",
                "Loans",
                "IDVs (indefinite delivery vehicles)",
                "Direct payments and insurance",
                "Other financial assistance",
                "All award types"
              ]
            },
            "default": [
              "contracts"
            ],
            "prefill": [
              "contracts"
            ]
          },
          "awardTypes": {
            "title": "Legacy award type",
            "type": "string",
            "description": "Legacy alias kept for saved tasks; map to awardTypeFamilies. Hidden in the input form.",
            "editor": "hidden"
          },
          "awardIds": {
            "title": "Award IDs or URLs (mode=awardDetails)",
            "type": "array",
            "description": "Award IDs (for example `CONT_AWD_...`), numeric award IDs, or `https://www.usaspending.gov/award/...` URLs. Plain contract/assistance numbers are resolved by exact match.",
            "editor": "stringList",
            "default": [],
            "prefill": []
          },
          "agency": {
            "title": "Awarding Agency",
            "type": "string",
            "description": "Top-tier awarding agency name, for example `Department of Defense` or `Department of Education`.",
            "editor": "textfield"
          },
          "fundingAgency": {
            "title": "Funding Agency",
            "type": "string",
            "description": "Top-tier funding agency name. Use alongside or instead of the awarding agency.",
            "editor": "textfield"
          },
          "recipient": {
            "title": "Recipient Name or UEI",
            "type": "string",
            "description": "Filter awards to a recipient by name or Unique Entity Identifier (UEI).",
            "editor": "textfield"
          },
          "startDate": {
            "title": "Start Date",
            "type": "string",
            "description": "Earliest award date, `YYYY-MM-DD`. The API can search back to 2007-10-01. Used with dateType.",
            "editor": "textfield",
            "default": "2025-10-01",
            "prefill": "2025-10-01"
          },
          "endDate": {
            "title": "End Date",
            "type": "string",
            "description": "Latest award date, `YYYY-MM-DD`. Used with dateType.",
            "editor": "textfield",
            "default": "2026-09-30",
            "prefill": "2026-09-30"
          },
          "dateType": {
            "title": "Date Field",
            "type": "string",
            "description": "Which date the range applies to: action date (default), date signed, or last modified date.",
            "editor": "select",
            "enum": [
              "action_date",
              "date_signed",
              "last_modified_date"
            ],
            "enumTitles": [
              "Action date",
              "Date signed",
              "Last modified date"
            ],
            "default": "action_date",
            "prefill": "action_date"
          },
          "awardAmountMin": {
            "title": "Minimum Award Amount (USD)",
            "type": "number",
            "minimum": 0,
            "description": "Only awards at or above this dollar amount.",
            "maximum": 1000000000000000
          },
          "awardAmountMax": {
            "title": "Maximum Award Amount (USD)",
            "type": "number",
            "minimum": 0,
            "description": "Only awards at or below this dollar amount.",
            "maximum": 1000000000000000
          },
          "naicsCodes": {
            "title": "NAICS Codes",
            "type": "string",
            "description": "Comma-separated NAICS industry codes, for example `541330, 541512`.",
            "editor": "textfield"
          },
          "pscCodes": {
            "title": "PSC Codes",
            "type": "string",
            "description": "Comma-separated Product Service Codes, for example `R425, D399`.",
            "editor": "textfield"
          },
          "setAsideTypes": {
            "title": "Set-Aside Types",
            "type": "array",
            "description": "Contract set-aside types. Empty = any set-aside status.",
            "editor": "select",
            "items": {
              "type": "string",
              "enum": [
                "8AN",
                "8A",
                "HS2Civ",
                "HS3",
                "BI",
                "BICiv",
                "EDWOSB",
                "EDWOSBSS",
                "ESB",
                "HMP",
                "HMT",
                "HZC",
                "HZS",
                "ISEE",
                "ISBEE",
                "NONE",
                "RSBCiv",
                "8ACCiv",
                "SDVOSBC",
                "SDVOSBS",
                "SBP",
                "SBA",
                "VSBCiv",
                "VSA",
                "VSS",
                "WOSB",
                "WOSBSS"
              ],
              "enumTitles": [
                "8(a) Sole Source",
                "8(a) Competed",
                "Combination HUBZone and 8(a)",
                "8(a) with HUBZone Preference",
                "Buy Indian",
                "Buy Indian",
                "Economically-Disadvantaged Women-Owned Small Business",
                "EDWOSB Sole Source",
                "Emerging Small Business Set Aside",
                "HBCU or Minority Institution Set Aside - Partial",
                "HBCU or Minority Institution Set Aside - Total",
                "HUBZone Set Aside",
                "HUBZone Sole Source",
                "Indian Economic Enterprise",
                "Indian Small Business Economic Enterprise",
                "No Set Aside Used",
                "Reserved for Small Business $2,501 to $100K",
                "SDB Set Aside 8(a)",
                "Service-Disabled Veteran-Owned Small Business Set Aside",
                "SDVOSB Sole Source",
                "Small Business Set Aside - Partial",
                "Small Business Set Aside - Total",
                "Very Small Business Set Aside",
                "Veteran Set Aside",
                "Veteran Sole Source",
                "Women-Owned Small Business",
                "Women Owned Small Business Sole Source"
              ]
            }
          },
          "extentCompeted": {
            "title": "Extent Competed",
            "type": "array",
            "description": "Contract competition extent. Empty = any competition status.",
            "editor": "select",
            "items": {
              "type": "string",
              "enum": [
                "F",
                "CDOCiv",
                "E Civ",
                "A",
                "D",
                "NDOCiv",
                "B",
                "C",
                "G"
              ],
              "enumTitles": [
                "Competed under SAP",
                "Competitive Delivery Order",
                "Follow On to Competed Action",
                "Full and Open Competition",
                "Full and Open Competition after exclusion of sources",
                "Non-Competitive Delivery Order",
                "Not Available for Competition",
                "Not Competed",
                "Not Competed under SAP"
              ]
            }
          },
          "pricingTypes": {
            "title": "Contract Pricing Types",
            "type": "array",
            "description": "Contract pricing arrangement. Empty = any pricing type.",
            "editor": "select",
            "items": {
              "type": "string",
              "enum": [
                "2",
                "S",
                "R",
                "U",
                "V",
                "T",
                "J",
                "M",
                "L",
                "B",
                "A",
                "K",
                "Z",
                "1",
                "3",
                "Y"
              ],
              "enumTitles": [
                "Combination",
                "Cost No Fee",
                "Cost Plus Award Fee",
                "Cost Plus Fixed Fee",
                "Cost Plus Incentive Fee",
                "Cost Sharing",
                "Firm Fixed Price",
                "Fixed Price Award Fee",
                "Fixed Price Incentive",
                "Fixed Price Level of Effort",
                "Fixed Price Redetermination",
                "Fixed Price with Economic Price Adjustment",
                "Labor Hours",
                "Order Dependent",
                "Other",
                "Time and Materials"
              ]
            }
          },
          "recipientTypes": {
            "title": "Recipient Business Types",
            "type": "array",
            "description": "Recipient business categories such as small business, nonprofit, government or higher education.",
            "editor": "select",
            "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",
                "subchapter_s_corporation",
                "limited_liability_corporation",
                "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",
                "woman_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_firm",
                "labor_surplus_area_firm",
                "sba_certified_8a_joint_venture",
                "self_certified_small_disadvanted_business",
                "small_agricultural_cooperative",
                "small_disadvantaged_business",
                "community_developed_corporation_owned_firm",
                "us_owned_business",
                "foreign_owned_and_us_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",
                "regional_and_state_government",
                "regional_organization",
                "interstate_entity",
                "us_territory_or_possession",
                "local_government",
                "indian_native_american_tribal_government",
                "authorities_and_commissions",
                "council_of_governments",
                "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 EDWOSB",
                "Veteran Owned Business",
                "Service Disabled Veteran Owned Business",
                "Special Designations",
                "8(a) Program Participant",
                "AbilityOne Program Participant",
                "DoT Certified Disadvantaged Business Enterprise",
                "Emerging Small Business",
                "Federally Funded Research and Development Corp",
                "HUBZone Firm",
                "Labor Surplus Area Firm",
                "SBA Certified 8(a) Joint Venture",
                "Self-Certified Small Disadvantaged Business",
                "Small Agricultural Cooperative",
                "Small Disadvantaged Business",
                "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 Organization",
                "Foundation",
                "Community Development Corporation",
                "Higher Education",
                "Higher Education (Public)",
                "Higher Education (Private)",
                "Higher Education (Minority Serving)",
                "School of Forestry",
                "Veterinary College",
                "Government",
                "U.S. National Government",
                "U.S. Regional/State Government",
                "U.S. Regional Government Organization",
                "U.S. Interstate Government Entity",
                "U.S. Territory Government",
                "U.S. Local Government",
                "Native American Tribal Government",
                "U.S. Government Authorities",
                "Council of Governments",
                "Individuals"
              ]
            }
          },
          "placeOfPerformanceState": {
            "title": "Place-of-Performance State",
            "type": "string",
            "description": "Two-letter state or territory code where the work is performed. Leave blank for all states.",
            "editor": "select",
            "enum": [
              "AK",
              "AL",
              "AR",
              "AS",
              "AZ",
              "CA",
              "CO",
              "CT",
              "DC",
              "DE",
              "FL",
              "FM",
              "GA",
              "GU",
              "HI",
              "IA",
              "ID",
              "IL",
              "IN",
              "KS",
              "KY",
              "LA",
              "MA",
              "MD",
              "ME",
              "MH",
              "MI",
              "MN",
              "MO",
              "MP",
              "MS",
              "MT",
              "NC",
              "ND",
              "NE",
              "NH",
              "NJ",
              "NM",
              "NV",
              "NY",
              "OH",
              "OK",
              "OR",
              "PA",
              "PR",
              "PW",
              "RI",
              "SC",
              "SD",
              "TN",
              "TX",
              "UT",
              "VA",
              "VI",
              "VT",
              "WA",
              "WI",
              "WV",
              "WY"
            ],
            "enumTitles": [
              "AK — Alaska",
              "AL — Alabama",
              "AR — Arkansas",
              "AS — American Samoa",
              "AZ — Arizona",
              "CA — California",
              "CO — Colorado",
              "CT — Connecticut",
              "DC — District Of Columbia",
              "DE — Delaware",
              "FL — Florida",
              "FM — Micronesia",
              "GA — Georgia",
              "GU — Guam",
              "HI — Hawaii",
              "IA — Iowa",
              "ID — Idaho",
              "IL — Illinois",
              "IN — Indiana",
              "KS — Kansas",
              "KY — Kentucky",
              "LA — Louisiana",
              "MA — Massachusetts",
              "MD — Maryland",
              "ME — Maine",
              "MH — Marshall Islands",
              "MI — Michigan",
              "MN — Minnesota",
              "MO — Missouri",
              "MP — Northern Mariana Islands",
              "MS — Mississippi",
              "MT — Montana",
              "NC — North Carolina",
              "ND — North Dakota",
              "NE — Nebraska",
              "NH — New Hampshire",
              "NJ — New Jersey",
              "NM — New Mexico",
              "NV — Nevada",
              "NY — New York",
              "OH — Ohio",
              "OK — Oklahoma",
              "OR — Oregon",
              "PA — Pennsylvania",
              "PR — Puerto Rico",
              "PW — Palau",
              "RI — Rhode Island",
              "SC — South Carolina",
              "SD — South Dakota",
              "TN — Tennessee",
              "TX — Texas",
              "UT — Utah",
              "VA — Virginia",
              "VI — Virgin Islands",
              "VT — Vermont",
              "WA — Washington",
              "WI — Wisconsin",
              "WV — West Virginia",
              "WY — Wyoming"
            ]
          },
          "placeOfPerformanceCountry": {
            "title": "Place-of-Performance Country",
            "type": "string",
            "description": "Three-letter country code, for example `USA`. Defaults to USA when a state is selected.",
            "editor": "textfield"
          },
          "recipientState": {
            "title": "Recipient State",
            "type": "string",
            "description": "Two-letter state or territory code of the recipient's location.",
            "editor": "select",
            "enum": [
              "AK",
              "AL",
              "AR",
              "AS",
              "AZ",
              "CA",
              "CO",
              "CT",
              "DC",
              "DE",
              "FL",
              "FM",
              "GA",
              "GU",
              "HI",
              "IA",
              "ID",
              "IL",
              "IN",
              "KS",
              "KY",
              "LA",
              "MA",
              "MD",
              "ME",
              "MH",
              "MI",
              "MN",
              "MO",
              "MP",
              "MS",
              "MT",
              "NC",
              "ND",
              "NE",
              "NH",
              "NJ",
              "NM",
              "NV",
              "NY",
              "OH",
              "OK",
              "OR",
              "PA",
              "PR",
              "PW",
              "RI",
              "SC",
              "SD",
              "TN",
              "TX",
              "UT",
              "VA",
              "VI",
              "VT",
              "WA",
              "WI",
              "WV",
              "WY"
            ],
            "enumTitles": [
              "AK — Alaska",
              "AL — Alabama",
              "AR — Arkansas",
              "AS — American Samoa",
              "AZ — Arizona",
              "CA — California",
              "CO — Colorado",
              "CT — Connecticut",
              "DC — District Of Columbia",
              "DE — Delaware",
              "FL — Florida",
              "FM — Micronesia",
              "GA — Georgia",
              "GU — Guam",
              "HI — Hawaii",
              "IA — Iowa",
              "ID — Idaho",
              "IL — Illinois",
              "IN — Indiana",
              "KS — Kansas",
              "KY — Kentucky",
              "LA — Louisiana",
              "MA — Massachusetts",
              "MD — Maryland",
              "ME — Maine",
              "MH — Marshall Islands",
              "MI — Michigan",
              "MN — Minnesota",
              "MO — Missouri",
              "MP — Northern Mariana Islands",
              "MS — Mississippi",
              "MT — Montana",
              "NC — North Carolina",
              "ND — North Dakota",
              "NE — Nebraska",
              "NH — New Hampshire",
              "NJ — New Jersey",
              "NM — New Mexico",
              "NV — Nevada",
              "NY — New York",
              "OH — Ohio",
              "OK — Oklahoma",
              "OR — Oregon",
              "PA — Pennsylvania",
              "PR — Puerto Rico",
              "PW — Palau",
              "RI — Rhode Island",
              "SC — South Carolina",
              "SD — South Dakota",
              "TN — Tennessee",
              "TX — Texas",
              "UT — Utah",
              "VA — Virginia",
              "VI — Virgin Islands",
              "VT — Vermont",
              "WA — Washington",
              "WI — Wisconsin",
              "WV — West Virginia",
              "WY — Wyoming"
            ]
          },
          "recipientCountry": {
            "title": "Recipient Country",
            "type": "string",
            "description": "Three-letter country code of the recipient's location, for example `USA`.",
            "editor": "textfield"
          },
          "spendingLevel": {
            "title": "Spending Level (mode=searchAwards)",
            "type": "string",
            "description": "Prime awards or sub-awards.",
            "editor": "select",
            "enum": [
              "awards",
              "subawards"
            ],
            "enumTitles": [
              "Prime awards",
              "Sub-awards"
            ],
            "default": "awards",
            "prefill": "awards"
          },
          "category": {
            "title": "Spending Category (mode=spendingByCategory)",
            "type": "string",
            "description": "How to group spending totals.",
            "editor": "select",
            "enum": [
              "awardingAgency",
              "awardingSubAgency",
              "fundingAgency",
              "fundingSubAgency",
              "recipient",
              "naics",
              "psc",
              "cfda",
              "state",
              "country",
              "county",
              "district",
              "federalAccount",
              "disasterEmergencyFundCode"
            ],
            "enumTitles": [
              "Awarding agency",
              "Awarding sub-agency",
              "Funding agency",
              "Funding sub-agency",
              "Recipient",
              "NAICS industry",
              "PSC product/service",
              "Assistance listing (CFDA)",
              "State or territory",
              "Country",
              "County",
              "Congressional district",
              "Federal account",
              "Disaster emergency fund code"
            ],
            "default": "recipient",
            "prefill": "recipient"
          },
          "geoScope": {
            "title": "Geography Scope (mode=spendingByGeography)",
            "type": "string",
            "description": "Use the place of performance or the recipient's location.",
            "editor": "select",
            "enum": [
              "placeOfPerformance",
              "recipientLocation"
            ],
            "enumTitles": [
              "Place of performance",
              "Recipient location"
            ],
            "default": "placeOfPerformance",
            "prefill": "placeOfPerformance"
          },
          "geoLayer": {
            "title": "Geography Layer (mode=spendingByGeography)",
            "type": "string",
            "description": "Geographic grouping for the totals.",
            "editor": "select",
            "enum": [
              "state",
              "county",
              "district",
              "country"
            ],
            "enumTitles": [
              "State or territory",
              "County",
              "Congressional district",
              "Country"
            ],
            "default": "state",
            "prefill": "state"
          },
          "timeGroup": {
            "title": "Time Group (mode=spendingOverTime)",
            "type": "string",
            "description": "Time bucket for the spending totals.",
            "editor": "select",
            "enum": [
              "fiscalYear",
              "quarter",
              "month",
              "calendarYear"
            ],
            "enumTitles": [
              "Fiscal year",
              "Fiscal quarter",
              "Month",
              "Calendar year"
            ],
            "default": "fiscalYear",
            "prefill": "fiscalYear"
          },
          "includeAwardDetails": {
            "title": "Include Award Details (mode=searchAwards)",
            "type": "boolean",
            "description": "Fetch the full award record for every search result. Adds one request per award and fills recipient business types, parent recipient, subaward counts and contract competition fields.",
            "default": false,
            "prefill": false
          },
          "includeAgencyDetails": {
            "title": "Include Agency Details (mode=agencySpending)",
            "type": "boolean",
            "description": "Fetch each agency's mission, website and sub-agency count. Adds one request per agency.",
            "default": false,
            "prefill": false
          },
          "sortBy": {
            "title": "Sort By",
            "type": "string",
            "description": "Sort order for award search results. Loans fall back to Award ID when sorting by amount or date.",
            "editor": "select",
            "enum": [
              "awardAmount",
              "startDate",
              "endDate",
              "awardId",
              "recipientName"
            ],
            "enumTitles": [
              "Award amount",
              "Start date",
              "End date",
              "Award ID",
              "Recipient name"
            ],
            "default": "awardAmount",
            "prefill": "awardAmount"
          },
          "sortOrder": {
            "title": "Sort Direction",
            "type": "string",
            "description": "Ascending or descending.",
            "editor": "select",
            "enum": [
              "desc",
              "asc"
            ],
            "enumTitles": [
              "Descending",
              "Ascending"
            ],
            "default": "desc",
            "prefill": "desc"
          },
          "maxItems": {
            "title": "Maximum Records",
            "type": "integer",
            "minimum": 1,
            "maximum": 100000,
            "description": "Maximum records to return (1-100,000). Larger runs use the API's cursor pagination.",
            "default": 50,
            "prefill": 3
          },
          "recipientIds": {
            "title": "Recipient IDs (mode=recipientSearch)",
            "type": "array",
            "description": "Optional recipient profile IDs (UUID hashes). When set, profiles are fetched directly and searchQuery is ignored.",
            "editor": "stringList",
            "default": [],
            "prefill": []
          }
        },
        "required": [
          "mode"
        ]
      },
      "output": {
        "actorOutputSchemaVersion": 1,
        "title": "USAspending.gov Awards, Recipients & Agency Scraper Output",
        "description": "Federal awards, sub-awards, recipients, agencies and spending aggregates from USAspending.gov — amounts, dates, agencies, locations, NAICS/PSC codes and identifiers.",
        "properties": {
          "spendingData": {
            "type": "string",
            "title": "Federal Spending Records",
            "description": "Dataset containing all scraped USAspending.gov records.",
            "template": "{{links.apiDefaultDatasetUrl}}/items"
          }
        }
      },
      "storages": {
        "dataset": {
          "actorSpecification": 1,
          "views": {
            "overview": {
              "title": "Federal Spending Data",
              "transformation": {
                "fields": [
                  "awardId",
                  "recipientName",
                  "awardCategory",
                  "awardType",
                  "awardAmount",
                  "startDate",
                  "endDate",
                  "awardingAgencyName",
                  "placeOfPerformanceStateCode",
                  "description"
                ]
              },
              "display": {
                "component": "table",
                "properties": {}
              }
            }
          }
        }
      },
      "environmentVariables": {}
    },
    "buildNumber": "2.0.1",
    "actVersion": {
      "sourceType": "SOURCE_FILES",
      "buildTag": "latest",
      "versionNumber": "2.0"
    }
  }
}