{
  "openapi": "3.0.1",
  "info": {
    "title": "USASpending Scraper - New Federal Contract Awards",
    "description": "See who won new federal contracts in your trade and state. Only awards first signed in your date range, not old contracts that only got a change. Winner address and small-business status included. Monitor mode skips awards you've already seen. $3 per 1,000.",
    "version": "1.0",
    "x-build-id": "9S6zAqg0JrzWbka8t"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/goldstandardweb~usaspending-contract-awards/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-goldstandardweb-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/goldstandardweb~usaspending-contract-awards/runs": {
      "post": {
        "operationId": "runs-sync-goldstandardweb-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/goldstandardweb~usaspending-contract-awards/run-sync": {
      "post": {
        "operationId": "run-sync-goldstandardweb-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": {
          "awardType": {
            "title": "Award type",
            "enum": [
              "contracts",
              "idvs",
              "grants"
            ],
            "type": "string",
            "description": "Contracts: money for a specific job, the best pick for sub leads. IDVs: umbrella deals like IDIQs and GWACs. Their money comes later as task orders, which show up under Contracts. Grants: federal grants and cooperative agreements.",
            "default": "contracts"
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 1,
            "maximum": 7000,
            "type": "integer",
            "description": "How many days back from today to search. Most contracts show up within a few days of signing and grants within a month. Defense Department contracts show up about 90 days after signing, so use 120 to include them. For a weekly lead list, use 120 with monitor mode on.",
            "default": 30
          },
          "dateMode": {
            "title": "Which awards count as recent",
            "enum": [
              "new",
              "any_activity"
            ],
            "type": "string",
            "description": "\"New awards only\" returns awards first signed in the date range, which is what you want for new-winner leads. \"Any activity\" also includes older awards that got a modification or extra money in the range.",
            "default": "new"
          },
          "naicsCodes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "Industry codes, 2 to 6 digits. A shorter code matches everything under it: 2362 matches 236210 and 236220. Looking for general contractors to work for? Use their codes, like 236220 commercial building or 237310 highway and street. Your own trade code (238210 electrical) finds your competitors. Not used for grants.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "States (place of performance)",
            "type": "array",
            "description": "2-letter state codes where the work is done, for example TX, CA, VA. Leave empty for the whole country.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words to look for in the award description, winner name and other award text. Each keyword needs at least 3 characters. Awards matching any keyword are returned.",
            "items": {
              "type": "string"
            }
          },
          "minAmount": {
            "title": "Minimum award amount ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Only return awards worth at least this many dollars. Use it to skip small purchase orders. For IDVs the amount is only what has been committed so far, which is often small at first, so keep this at 0 for IDVs. 0 means no minimum.",
            "default": 0
          },
          "maxAmount": {
            "title": "Maximum award amount ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Only return awards worth at most this many dollars. Leave empty or 0 for no maximum."
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many awards, up to 10,000. You pay per award returned, so this also caps the cost of a run.",
            "default": 200
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "amount",
              "newest"
            ],
            "type": "string",
            "description": "Biggest awards first, or most recently signed first. When Maximum results cuts the list short, this decides which awards you get. Monitor mode always reads the most recently updated first.",
            "default": "amount"
          },
          "includeRecipientDetails": {
            "title": "Add winner address and business type",
            "type": "boolean",
            "description": "Look up each winning company's mailing address, parent company and business types (small business, 8(a), woman-owned, veteran-owned and more). Adds a few seconds per 100 awards.",
            "default": true
          },
          "newOnly": {
            "title": "Only awards I haven't seen (monitor mode)",
            "type": "boolean",
            "description": "Turn this on for any scheduled run. It remembers the awards earlier monitor runs returned (under the same Monitor name) and skips them, so each run has only new winners. The first run returns every match, so set Maximum results to cap it. Leave it off for a one-time search.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "Used with monitor mode. Each name keeps its own memory of seen awards, so you can run separate monitors (for example \"tx-electrical\" and \"va-it\") without them blocking each other. Letters, numbers and dashes.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}