# USAspending Federal Contracts Scraper

**Use case:** 

Scrape top US federal contract awards with award amount, recipient, awarding agency, dates, and description. Export to JSON or CSV.

## Input

```json
{
  "awardType": "contracts",
  "spendingLevel": "awards",
  "sort": "Award Amount",
  "order": "desc",
  "maxItems": 5
}
```

## Output

```json
{
  "awardId": {
    "label": "Award ID",
    "format": "text"
  },
  "awardUrl": {
    "label": "Award",
    "format": "link"
  },
  "description": {
    "label": "Description",
    "format": "text"
  },
  "awardTypeDescription": {
    "label": "Award Type",
    "format": "text"
  },
  "awardAmount": {
    "label": "Award Amount",
    "format": "number"
  },
  "totalOutlays": {
    "label": "Total Outlays",
    "format": "number"
  },
  "awardingAgency": {
    "label": "Awarding Agency",
    "format": "text"
  },
  "awardingSubAgency": {
    "label": "Awarding Sub-Agency",
    "format": "text"
  },
  "awardingOfficeName": {
    "label": "Awarding Office",
    "format": "text"
  },
  "fundingAgency": {
    "label": "Funding Agency",
    "format": "text"
  },
  "dateSigned": {
    "label": "Date Signed",
    "format": "date"
  },
  "startDate": {
    "label": "Start Date",
    "format": "date"
  },
  "endDate": {
    "label": "End Date",
    "format": "date"
  },
  "recipientName": {
    "label": "Recipient",
    "format": "text"
  },
  "recipientUrl": {
    "label": "Recipient Profile",
    "format": "link"
  },
  "recipientUEI": {
    "label": "Recipient UEI",
    "format": "text"
  },
  "recipientBusinessCategories": {
    "label": "Business Categories",
    "format": "text"
  },
  "recipientLocation": {
    "label": "Recipient Location",
    "format": "text"
  },
  "primaryPlaceOfPerformance": {
    "label": "Place of Performance",
    "format": "text"
  },
  "naicsCode": {
    "label": "NAICS Code",
    "format": "text"
  },
  "naicsDescription": {
    "label": "NAICS Description",
    "format": "text"
  },
  "pscCode": {
    "label": "PSC Code",
    "format": "text"
  },
  "pscDescription": {
    "label": "PSC Description",
    "format": "text"
  },
  "covid19Obligations": {
    "label": "COVID-19 Obligations",
    "format": "number"
  },
  "covid19Outlays": {
    "label": "COVID-19 Outlays",
    "format": "number"
  },
  "infrastructureObligations": {
    "label": "Infrastructure Obligations",
    "format": "number"
  },
  "infrastructureOutlays": {
    "label": "Infrastructure Outlays",
    "format": "number"
  },
  "subawardCount": {
    "label": "Sub-awards",
    "format": "number"
  },
  "totalSubawardAmount": {
    "label": "Sub-award Amount",
    "format": "number"
  },
  "scrapedTimestamp": {
    "label": "Scraped At",
    "format": "date"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [USAspending Scraper](https://apify.com/parseforge/usaspending-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/parseforge/usaspending-scraper) to learn more, explore other use cases, and run it yourself.