{
  "openapi": "3.0.1",
  "info": {
    "title": "Federal Contract Recompete Radar (Unofficial)",
    "description": "Federal contracts expiring in the next 6-18 months, by NAICS, PSC, agency, state and set-aside: incumbent, value, end and option dates, competition, vehicle and award link. Capture pipeline from USAspending.gov data. No API key.",
    "version": "1.0",
    "x-build-id": "m1F703VuJym2EnDBy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/saiberops~federal-contract-recompete-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-saiberops-federal-contract-recompete-radar",
        "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/saiberops~federal-contract-recompete-radar/runs": {
      "post": {
        "operationId": "runs-sync-saiberops-federal-contract-recompete-radar",
        "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/saiberops~federal-contract-recompete-radar/run-sync": {
      "post": {
        "operationId": "run-sync-saiberops-federal-contract-recompete-radar",
        "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": {
          "endsAfterMonths": {
            "title": "Ends after (months from today)",
            "minimum": 0,
            "maximum": 120,
            "type": "integer",
            "description": "Start of the expiry window. 0 = from today. Set 6 to skip contracts ending in the next 6 months (too late to shape the recompete).",
            "default": 0
          },
          "endsWithinMonths": {
            "title": "Ends within (months from today)",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "End of the expiry window. 12 = contracts whose current period of performance ends in the next 12 months; 18 is common for capture planning.",
            "default": 12
          },
          "endDateFrom": {
            "title": "Ends on or after (exact date)",
            "type": "string",
            "description": "Optional, YYYY-MM-DD. Overrides 'Ends after' with a fixed date, for example the start of a fiscal year."
          },
          "endDateTo": {
            "title": "Ends on or before (exact date)",
            "type": "string",
            "description": "Optional, YYYY-MM-DD. Overrides 'Ends within' with a fixed date."
          },
          "naicsCodes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "2- to 6-digit NAICS codes or prefixes, for example 541512 (computer systems design) or 5415. Leave empty for all industries.",
            "items": {
              "type": "string"
            }
          },
          "pscCodes": {
            "title": "Product and service codes (PSC)",
            "type": "array",
            "description": "4-character PSC codes such as DA01 or R425 (matched by USAspending), or shorter prefixes such as D3 or R4 (matched by the Actor, slower). Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "agencies": {
            "title": "Agencies (top tier)",
            "type": "array",
            "description": "Exact top-tier agency names as USAspending writes them, for example Department of Defense, Department of Veterans Affairs, General Services Administration. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "subAgencies": {
            "title": "Sub-agencies",
            "type": "array",
            "description": "Exact sub-tier names, for example Department of the Army, Defense Information Systems Agency, Veterans Health Administration.",
            "items": {
              "type": "string"
            }
          },
          "agencyRole": {
            "title": "Agency filter applies to",
            "enum": [
              "awarding",
              "funding"
            ],
            "type": "string",
            "description": "Match the agency that awarded the contract (usual) or the agency that pays for it.",
            "default": "awarding"
          },
          "placeOfPerformanceStates": {
            "title": "Place of performance states",
            "type": "array",
            "description": "Two-letter codes where the work is performed, for example VA, MD, DC, TX. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "setAsideTypes": {
            "title": "Set-aside types",
            "type": "array",
            "description": "Keep contracts awarded under these set-asides, for example small business (SBA), 8(a), HUBZone, SDVOSB, WOSB. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "NONE",
                "SBA",
                "SBP",
                "8A",
                "8AN",
                "HZC",
                "HZS",
                "SDVOSBC",
                "SDVOSBS",
                "WOSB",
                "WOSBSS",
                "EDWOSB",
                "EDWOSBSS",
                "VSA",
                "VSS",
                "ISBEE"
              ],
              "enumTitles": [
                "No set-aside",
                "Small business (total)",
                "Small business (partial)",
                "8(a) competed",
                "8(a) sole source",
                "HUBZone set-aside",
                "HUBZone sole source",
                "SDVOSB set-aside",
                "SDVOSB sole source",
                "WOSB set-aside",
                "WOSB sole source",
                "EDWOSB set-aside",
                "EDWOSB sole source",
                "Veteran set-aside",
                "Veteran sole source",
                "Indian small business economic enterprise"
              ]
            },
            "default": []
          },
          "extentCompeted": {
            "title": "Extent competed",
            "type": "array",
            "description": "Keep contracts with these competition codes, for example C (not competed) to find sole-source work.",
            "items": {
              "type": "string",
              "enum": [
                "A",
                "B",
                "C",
                "D",
                "E",
                "F",
                "G",
                "CDO",
                "NDO"
              ],
              "enumTitles": [
                "Full and open competition",
                "Not available for competition",
                "Not competed",
                "Full and open after exclusion of sources",
                "Follow-on to competed action",
                "Competed under simplified acquisition",
                "Not competed under simplified acquisition",
                "Competitive delivery order",
                "Non-competitive delivery order"
              ]
            },
            "default": []
          },
          "contractTypes": {
            "title": "Contract types",
            "type": "array",
            "description": "Award types to include. Indefinite-delivery vehicles (IDVs) have an ordering period instead of an end date and are not included.",
            "items": {
              "type": "string",
              "enum": [
                "A",
                "B",
                "C",
                "D"
              ],
              "enumTitles": [
                "BPA call",
                "Purchase order",
                "Delivery order",
                "Definitive contract"
              ]
            },
            "default": [
              "A",
              "B",
              "C",
              "D"
            ]
          },
          "minAmount": {
            "title": "Minimum value (USD obligated)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip contracts with less than this obligated to date. Leave empty for no minimum."
          },
          "maxAmount": {
            "title": "Maximum value (USD obligated)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip contracts above this value, for example to focus on work a small business can win. Leave empty for no maximum."
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words searched by USAspending across award descriptions and other award text, including recipient names, for example cloud, help desk. At least 3 characters each.",
            "items": {
              "type": "string"
            }
          },
          "requireNoRemainingOptions": {
            "title": "Only contracts with no options left",
            "type": "boolean",
            "description": "Keep only contracts whose potential end date (with all options) is also inside the window: the work must be recompeted, not just extended.",
            "default": false
          },
          "includeContractDetails": {
            "title": "Add competition and vehicle details",
            "type": "boolean",
            "description": "Looks up each contract's set-aside, extent competed, number of offers, parent vehicle, potential end date, offices and incumbent business types (one extra request per row, no extra charge).",
            "default": true
          },
          "includeIncumbentHistory": {
            "title": "Add incumbent's other contracts with the agency (paid add-on)",
            "type": "boolean",
            "description": "For each expiring contract, lists the incumbent's largest other contracts with the same awarding agency. Charged per listed award (see Pricing).",
            "default": false
          },
          "historyPerContract": {
            "title": "Other contracts per incumbent",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many of the incumbent's other contracts to list per row when the add-on is on.",
            "default": 5
          },
          "onlyNewSinceLastRun": {
            "title": "Only contracts not returned before",
            "type": "boolean",
            "description": "For a scheduled radar: skip contracts this cursor already returned, so each run lists only contracts newly entering your window. A returned contract whose end date later changes (for example, an extension) is listed again.",
            "default": false
          },
          "cursorName": {
            "title": "Cursor name",
            "type": "string",
            "description": "Keeps a separate 'not returned before' list per name, so different saved searches don't share one. Letters, numbers and dashes.",
            "default": ""
          },
          "maxItems": {
            "title": "Max contracts",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The run stops after returning this many contracts. Each returned contract is one charged event.",
            "default": 100
          },
          "maxPagesToScan": {
            "title": "Max pages to scan",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Upper limit on 100-row result pages read from USAspending per run. Contracts filtered out by the Actor (PSC prefixes, options) are free but use pages.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}