{
  "openapi": "3.0.1",
  "info": {
    "title": "USAspending Federal Contract Awards Scraper — GovCon Leads",
    "description": "Find GovCon leads and competitors: federal contract awards from USAspending.gov back to FY2008 with winner, UEI, agency, amount and NAICS. Filter by state, NAICS, agency, set-aside or company, find recompetes, or run weekly with onlyNew (no repeat charges). $0.004/award, no start fee.",
    "version": "0.1",
    "x-build-id": "h2StaH2s59Qqc8rwY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parallelstudio~usaspending-contract-awards/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parallelstudio-usaspending-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/parallelstudio~usaspending-contract-awards/runs": {
      "post": {
        "operationId": "runs-sync-parallelstudio-usaspending-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/parallelstudio~usaspending-contract-awards/run-sync": {
      "post": {
        "operationId": "run-sync-parallelstudio-usaspending-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": {
          "state": {
            "title": "Place-of-performance state (2-letter)",
            "pattern": "^([A-Za-z]{2})?$",
            "type": "string",
            "description": "Two-letter U.S. state code for where the work is performed (place of performance), e.g. MN, TX, VA. Leave empty to search all states.",
            "default": "MN"
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Optional words matched against award descriptions and recipient names, e.g. \"construction\", \"cybersecurity\", \"snow removal\". Several keywords widen the search.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "awardTypes": {
            "title": "Award type",
            "enum": [
              "contracts",
              "grants",
              "idvs"
            ],
            "type": "string",
            "description": "contracts = definitive contracts, purchase orders, delivery/task orders, BPA calls. idvs = indefinite-delivery vehicles (IDIQs, GWACs, BPAs, FSS). grants = block, formula, project and cooperative-agreement grants.",
            "default": "contracts"
          },
          "startDate": {
            "title": "Action date from (YYYY-MM-DD)",
            "type": "string",
            "description": "Earliest action date to include (YYYY-MM-DD). USAspending contract data reaches back to FY2008.",
            "default": "2026-01-01"
          },
          "endDate": {
            "title": "Action date to (YYYY-MM-DD, empty = today)",
            "type": "string",
            "description": "Latest action date to include (YYYY-MM-DD). Leave empty for today."
          },
          "naicsCodes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "Optional 6-digit NAICS codes to require, e.g. 236220 (commercial building construction), 541511 (custom programming). Ignored for grants.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minAmount": {
            "title": "Minimum award amount",
            "type": "integer",
            "description": "Only return awards worth at least this many dollars. Results are sorted largest award first (or soonest-ending first in recompete mode).",
            "default": 0
          },
          "maxItems": {
            "title": "Max results",
            "type": "integer",
            "description": "Maximum number of awards to return. You pay $0.004 per award, so 100 awards cost $0.40.",
            "default": 300
          },
          "agencies": {
            "title": "Awarding agencies",
            "type": "array",
            "description": "Top-tier awarding agency names, e.g. \"Department of Defense\", \"Department of Veterans Affairs\", \"General Services Administration\". Case does not matter; common abbreviations like DOD or VA also work. Several agencies widen the search.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "recipientSearch": {
            "title": "Recipient (company name or UEI)",
            "type": "array",
            "description": "Find awards won by specific companies: enter part of a company name (e.g. \"Lockheed\") or a 12-character UEI. Great for competitor research. Several entries widen the search.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "pscCodes": {
            "title": "PSC codes (product/service codes)",
            "type": "array",
            "description": "Product/Service Codes to match, 1-4 characters. A full code (R425 = engineering/technical support) or a prefix (R4, or R for all services) both work. Contracts and IDVs only; ignored for grants.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "setAsideTypes": {
            "title": "Set-aside types",
            "type": "array",
            "description": "Only return awards made under these small-business set-asides, e.g. SBA total small business, 8(a), HUBZone, SDVOSB, WOSB. Contracts and IDVs only; ignored for grants.",
            "items": {
              "type": "string",
              "enum": [
                "SBA",
                "SBP",
                "8A",
                "8AN",
                "HZC",
                "HZS",
                "SDVOSBC",
                "SDVOSBS",
                "WOSB",
                "WOSBSS",
                "EDWOSB",
                "EDWOSBSS",
                "VSA",
                "VSS",
                "ISBEE",
                "IEE",
                "BI",
                "NONE"
              ],
              "enumTitles": [
                "Small Business Set-Aside (total) (SBA)",
                "Small Business Set-Aside (partial) (SBP)",
                "8(a) Competed (8A)",
                "8(a) Sole Source (8AN)",
                "HUBZone Set-Aside (HZC)",
                "HUBZone Sole Source (HZS)",
                "Service-Disabled Veteran-Owned Small Business (SDVOSB) Set-Aside (SDVOSBC)",
                "SDVOSB Sole Source (SDVOSBS)",
                "Women-Owned Small Business (WOSB) Set-Aside (WOSB)",
                "WOSB Sole Source (WOSBSS)",
                "Economically Disadvantaged WOSB (EDWOSB) Set-Aside (EDWOSB)",
                "EDWOSB Sole Source (EDWOSBSS)",
                "Veteran Set-Aside (VA) (VSA)",
                "Veteran Sole Source (VA) (VSS)",
                "Indian Small Business Economic Enterprise (ISBEE)",
                "Indian Economic Enterprise (IEE)",
                "Buy Indian (BI)",
                "No set-aside used (NONE)"
              ]
            },
            "default": []
          },
          "newAwardsOnly": {
            "title": "New awards only",
            "type": "boolean",
            "description": "Only return awards first signed within the action date range, instead of any award with activity (e.g. a modification) in that range.",
            "default": false
          },
          "expiringWithinDays": {
            "title": "Recompete leads: ending within N days (0 = off)",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Recompete mode. Only return awards whose current period of performance ends between today and today + N days (e.g. 180), sorted soonest-ending first. Combine with state, agency, NAICS, PSC or minAmount filters. Scans at most 50 pages (5,000 awards) per run and logs a warning if that is not enough.",
            "default": 0
          },
          "daysBack": {
            "title": "Only last N days (0 = use start date)",
            "minimum": 0,
            "type": "integer",
            "description": "Rolling window for scheduled runs. When above 0, the action date start becomes today minus N days (UTC) and overrides \"Action date from\". Use 7 for weekly runs, or 14 to cover reporting lag. 0 = use \"Action date from\".",
            "default": 0
          },
          "onlyNew": {
            "title": "Only new since last run",
            "type": "boolean",
            "description": "Incremental mode for schedules. Remembers the awards already delivered (per set of filters, in a named key-value store) and skips them, so each run returns only awards you have not received before and you are not charged twice. Pair with \"Only last N days\".",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}