{
  "openapi": "3.0.1",
  "info": {
    "title": "USAspending Scraper: US Federal Contract Awards & Winners",
    "description": "New US government contract awards from the official USAspending.gov API: winner, UEI, amount, agency, NAICS, PSC, place of performance and parent contract vehicle. Filter by agency, keyword, NAICS, PSC, recipient, amount or state; only new awards since the last run for daily subcontracting leads.",
    "version": "0.1",
    "x-build-id": "RymaoDtxU9K3vciMY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/latamdatatools~us-federal-contract-awards/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-latamdatatools-us-federal-contract-awards",
        "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/latamdatatools~us-federal-contract-awards/runs": {
      "post": {
        "operationId": "runs-sync-latamdatatools-us-federal-contract-awards",
        "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/latamdatatools~us-federal-contract-awards/run-sync": {
      "post": {
        "operationId": "run-sync-latamdatatools-us-federal-contract-awards",
        "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": "Keywords",
            "type": "array",
            "description": "Optional. Words searched in the award description and other text fields (at least 3 characters). Several keywords = any of them.",
            "items": {
              "type": "string"
            }
          },
          "agencies": {
            "title": "Awarding agencies",
            "type": "array",
            "description": "Optional. Federal agency names or abbreviations: \"Department of Defense\", \"DOD\", \"VA\", \"GSA\", \"NASA\", \"Department of Energy\"...",
            "items": {
              "type": "string"
            }
          },
          "subAgencies": {
            "title": "Awarding sub-agencies",
            "type": "array",
            "description": "Optional. Exact sub-agency names, e.g. \"Department of the Army\", \"Federal Acquisition Service\".",
            "items": {
              "type": "string"
            }
          },
          "naicsCodes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "Optional. 2 to 6 digits, e.g. 541512 (computer systems design) or 5415 (all computer services).",
            "items": {
              "type": "string"
            }
          },
          "pscCodes": {
            "title": "PSC codes",
            "type": "array",
            "description": "Optional. Product and Service Codes, e.g. DA01, R425, 7030.",
            "items": {
              "type": "string"
            }
          },
          "placeOfPerformanceStates": {
            "title": "Place of performance (US states)",
            "type": "array",
            "description": "Optional. Two-letter state codes: VA, TX, CA...",
            "items": {
              "type": "string"
            }
          },
          "minAmount": {
            "title": "Minimum amount (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. 0 = no minimum.",
            "default": 0
          },
          "maxAmount": {
            "title": "Maximum amount (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. 0 = no maximum.",
            "default": 0
          },
          "awardCategories": {
            "title": "Award categories",
            "type": "array",
            "description": "Contracts (definitive contracts, delivery/task orders, purchase orders, BPA calls) and/or IDVs (new contract vehicles: GWACs, IDIQs, Federal Supply Schedules, BPAs, BOAs).",
            "items": {
              "type": "string",
              "enum": [
                "contracts",
                "idvs"
              ],
              "enumTitles": [
                "Contracts and orders",
                "IDVs (contract vehicles)"
              ]
            },
            "default": [
              "contracts"
            ]
          },
          "dateType": {
            "title": "Date filter",
            "enum": [
              "new_awards_only",
              "action_date",
              "last_modified_date"
            ],
            "type": "string",
            "description": "New awards only (first signed in the period, best for leads), any action in the period (includes modifications of older awards) or last modified.",
            "default": "new_awards_only"
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Used when no \"from\" date is given. USAspending usually publishes contract data a few days after signature.",
            "default": 7
          },
          "fromDate": {
            "title": "From (YYYY-MM-DD)",
            "pattern": "^([0-9]{4}-[0-9]{2}-[0-9]{2})?$",
            "type": "string",
            "description": "Optional. Earliest 2007-10-01."
          },
          "toDate": {
            "title": "To (YYYY-MM-DD)",
            "pattern": "^([0-9]{4}-[0-9]{2}-[0-9]{2})?$",
            "type": "string",
            "description": "Optional. Default: today."
          },
          "recipients": {
            "title": "Recipients (companies or UEIs)",
            "type": "array",
            "description": "Optional. Track awards won by specific companies or competitors: names or UEIs, one per line. Each one is searched separately with the other filters.",
            "items": {
              "type": "string"
            }
          },
          "datasetId": {
            "title": "Dataset with recipients",
            "type": "string",
            "description": "Optional. Apify dataset with company names or UEIs (max 500)."
          },
          "csvUrl": {
            "title": "CSV URL with recipients",
            "type": "string",
            "description": "Optional. Public CSV or Google Sheets link shared as \"Anyone with the link\"."
          },
          "recipientField": {
            "title": "Recipient column / field",
            "type": "string",
            "description": "Column (CSV) or field (dataset) with the company name or UEI.",
            "default": "recipient"
          },
          "includeDetails": {
            "title": "Include competition details",
            "type": "boolean",
            "description": "One extra request per award: parent contract vehicle (IDIQ/GWAC), solicitation ID, extent competed, number of offers, set-aside, pricing type, potential value and subaward count.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new awards (incremental)",
            "type": "boolean",
            "description": "Return only awards not delivered in earlier runs with the same alert name. Schedule it daily.",
            "default": false
          },
          "alertName": {
            "title": "Alert name",
            "type": "string",
            "description": "Separate memory per alert.",
            "default": "default"
          },
          "maxItems": {
            "title": "Max awards per run",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Total cap.",
            "default": 1000
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}