{
  "openapi": "3.0.1",
  "info": {
    "title": "US Federal Expiring Contracts & Recompete Finder",
    "description": "Find US federal contracts ending in the next 3-12 months - upcoming recompete opportunities. Filter by NAICS, PSC, agency, incumbent, state and value. Incumbent UEI, end dates, annualized value and pipeline summaries from the official USAspending.gov API. No API key.",
    "version": "0.1",
    "x-build-id": "iswe9KreEDDp7tYD4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zhucl1006~us-federal-expiring-contracts-recompete/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zhucl1006-us-federal-expiring-contracts-recompete",
        "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/zhucl1006~us-federal-expiring-contracts-recompete/runs": {
      "post": {
        "operationId": "runs-sync-zhucl1006-us-federal-expiring-contracts-recompete",
        "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/zhucl1006~us-federal-expiring-contracts-recompete/run-sync": {
      "post": {
        "operationId": "run-sync-zhucl1006-us-federal-expiring-contracts-recompete",
        "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": {
          "expiringWithinDays": {
            "title": "Ending within (days from today)",
            "minimum": 1,
            "maximum": 1825,
            "type": "integer",
            "description": "Upper edge of the window: contracts whose current period of performance ends no later than today + N days. 180 = next 6 months (typical recompete planning horizon).",
            "default": 180
          },
          "expiringAfterDays": {
            "title": "Ending after (days from today)",
            "minimum": -365,
            "maximum": 1824,
            "type": "integer",
            "description": "Lower edge of the window. 0 = from today. Use e.g. 90 to skip contracts ending in the next 3 months, or -90 to include ones that ended recently.",
            "default": 0
          },
          "naicsCodes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "Industry codes (2-6 digits), e.g. 541512 (computer systems design), 541330 (engineering), 561210 (facilities support).",
            "items": {
              "type": "string"
            }
          },
          "pscCodes": {
            "title": "PSC codes",
            "type": "array",
            "description": "Product/Service codes, e.g. DA01, R425.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words searched in award descriptions, e.g. 'cybersecurity', 'janitorial'.",
            "items": {
              "type": "string"
            }
          },
          "agencies": {
            "title": "Awarding agencies",
            "type": "array",
            "description": "Agency name, part of name or abbreviation, e.g. 'Department of Defense', 'VA', 'GSA', 'Department of the Army'.",
            "items": {
              "type": "string"
            }
          },
          "recipients": {
            "title": "Incumbent / recipient name or UEI",
            "type": "array",
            "description": "Only contracts held by these companies (find a competitor's contracts that are about to end).",
            "items": {
              "type": "string"
            }
          },
          "placeOfPerformanceStates": {
            "title": "Place of performance states",
            "type": "array",
            "description": "Two-letter US state codes, e.g. VA, MD, TX.",
            "items": {
              "type": "string"
            }
          },
          "minAmount": {
            "title": "Minimum award amount (USD)",
            "type": "integer",
            "description": "Skip small awards. Prefilled at $1M for faster, more valuable results."
          },
          "maxAmount": {
            "title": "Maximum award amount (USD)",
            "type": "integer",
            "description": "Optional upper bound."
          },
          "awardType": {
            "title": "Award type",
            "enum": [
              "contracts",
              "idvs"
            ],
            "type": "string",
            "description": "Contracts or indefinite-delivery vehicles.",
            "default": "contracts"
          },
          "activitySinceMonths": {
            "title": "Had activity in the last N months",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "Only scan contracts with a transaction (award or modification) in the last N months. 24 covers almost all live contracts; raise it for long multi-year vehicles.",
            "default": 24
          },
          "sortBy": {
            "title": "Sort results by",
            "enum": [
              "endDateAsc",
              "amountDesc",
              "annualizedDesc"
            ],
            "type": "string",
            "description": "Order of output records.",
            "default": "endDateAsc"
          },
          "maxItems": {
            "title": "Max records",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum expiring-contract records to output (0 = no limit). You pay per record.",
            "default": 500
          },
          "outputMode": {
            "title": "Output",
            "enum": [
              "records",
              "summary",
              "both"
            ],
            "type": "string",
            "description": "Records = one row per expiring contract. Summary = totals grouped by agency/incumbent/NAICS/PSC/state/month.",
            "default": "records"
          },
          "summaryBy": {
            "title": "Summary grouping",
            "enum": [
              "agency",
              "subAgency",
              "incumbent",
              "naics",
              "psc",
              "state",
              "month"
            ],
            "type": "string",
            "description": "Used when Output includes summary rows.",
            "default": "agency"
          },
          "summaryTopN": {
            "title": "Summary rows (top N)",
            "minimum": 0,
            "type": "integer",
            "description": "0 = all groups.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}