{
  "openapi": "3.0.1",
  "info": {
    "title": "US Gov Contracts Intel - SAM.gov + USAspending Opp Hunter",
    "description": "$700B/year US federal contract intel. Active opportunities (SAM.gov), historical awards (USAspending), re-compete radar, vendor competitive intel, set-aside filter (8(a)/WOSB/SDVOSB/HUBZone). For B2B vendors selling to government.",
    "version": "0.1",
    "x-build-id": "e1T7GYDTpM9cM2BpN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/seibs.co~us-gov-contracts-intel/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-seibs.co-us-gov-contracts-intel",
        "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/seibs.co~us-gov-contracts-intel/runs": {
      "post": {
        "operationId": "runs-sync-seibs.co-us-gov-contracts-intel",
        "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/seibs.co~us-gov-contracts-intel/run-sync": {
      "post": {
        "operationId": "run-sync-seibs.co-us-gov-contracts-intel",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "active_opportunities",
              "historical_awards",
              "recompete_radar",
              "vendor_intel",
              "subcontracts",
              "set_aside_only"
            ],
            "type": "string",
            "description": "active_opportunities = open RFPs/RFIs from SAM.gov (needs SAM.gov API key). historical_awards = past awards via USAspending (no key). recompete_radar = contracts expiring soon (needs SAM.gov key). vendor_intel = competitive profile of one vendor (no key). subcontracts = FPDS subcontract awards (no key). set_aside_only = small-biz / minority / veteran / women-owned opps only (needs SAM.gov key).",
            "default": "active_opportunities"
          },
          "sam_gov_api_key": {
            "title": "SAM.gov API key (free)",
            "type": "string",
            "description": "Your free SAM.gov API key. Get one in 5 minutes at https://open.gsa.gov/api/get-opportunities-public-api/ (sign in with login.gov, request a key from your profile). Required for active_opportunities, recompete_radar, and set_aside_only modes. Leave empty for USAspending-only modes (historical_awards, vendor_intel, subcontracts)."
          },
          "naics_codes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "6-digit NAICS codes to filter by. Examples: '541512' (computer systems design), '541330' (engineering services), '236220' (commercial building construction), '561210' (facilities support), '339112' (surgical & medical instruments). Empty = no NAICS filter.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "agencies": {
            "title": "Agencies / departments",
            "type": "array",
            "description": "Department / agency names or codes. Examples: 'Department of Defense', 'DOD', 'GSA', 'DHS', 'Department of Veterans Affairs', 'NASA'. Matched case-insensitive as substrings. Empty = all agencies.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "vendor_name": {
            "title": "Vendor name (vendor_intel mode)",
            "type": "string",
            "description": "For vendor_intel mode: exact or partial vendor / recipient name. Used as a USAspending recipient_search_text filter. Examples: 'Lockheed Martin', 'Booz Allen', 'Acme Engineering LLC'."
          },
          "vendor_uei": {
            "title": "Vendor UEI / DUNS (vendor_intel mode)",
            "type": "string",
            "description": "Alternative to vendor_name. SAM Unique Entity ID (12 chars) or legacy 9-digit DUNS. Most precise way to look up a single vendor."
          },
          "min_value_usd": {
            "title": "Minimum contract value (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Contract / award value floor. 0 = no minimum. Useful for filtering out micropurchases.",
            "default": 0
          },
          "max_value_usd": {
            "title": "Maximum contract value (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Contract / award value ceiling. 0 = no maximum.",
            "default": 0
          },
          "date_from": {
            "title": "Date from (YYYY-MM-DD)",
            "type": "string",
            "description": "Lower bound for posted_date (active opps) or action_date (historical awards). Format: YYYY-MM-DD. Empty = mode default (last 90 days for active opps, last 5 years for awards)."
          },
          "date_to": {
            "title": "Date to (YYYY-MM-DD)",
            "type": "string",
            "description": "Upper bound for posted_date / action_date. Format: YYYY-MM-DD. Empty = today."
          },
          "place_of_performance_state": {
            "title": "Place of performance state(s)",
            "type": "array",
            "description": "Two-letter US state codes for where work is performed. Examples: 'VA', 'MD', 'DC', 'CA', 'TX'. Empty = nationwide.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "set_aside_types": {
            "title": "Set-aside types",
            "uniqueItems": true,
            "type": "array",
            "description": "Filter to specific small-business set-asides. Valid: SBA, 8(a), WOSB, EDWOSB, SDVOSB, VOSB, HUBZone, IndianEconomic. Empty = no set-aside filter (or, in set_aside_only mode, all set-asides). Multiple = OR.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "response_deadline_days": {
            "title": "Response deadline window (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "For active_opportunities mode: only emit opps whose response deadline is within this many days from now. 30 = upcoming month. 7 = urgent only.",
            "default": 30
          },
          "recompete_window_months": {
            "title": "Re-compete window (months)",
            "minimum": 1,
            "maximum": 36,
            "type": "integer",
            "description": "For recompete_radar mode: how far ahead to look for contracts whose period-of-performance ends. 12 = next year. Re-competes are the #1 source of vendor pipeline.",
            "default": 12
          },
          "include_subcontracts": {
            "title": "Include subcontracts (FPDS subaward data)",
            "type": "boolean",
            "description": "If true and mode = historical_awards or vendor_intel, also pull subcontract awards (smaller vendors winning under big primes). Lower revenue per record but excellent for finding emerging vendors.",
            "default": false
          },
          "max_results": {
            "title": "Max records",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard cap on emitted records. Page size is 100 (SAM.gov) or 100 (USAspending); we stop once max_results is reached.",
            "default": 200
          },
          "use_apify_proxy": {
            "title": "Use Apify Proxy",
            "type": "boolean",
            "description": "Route requests through Apify Proxy. Neither SAM.gov nor USAspending anti-bots aggressively, so off is fine. Turn on if you hit rate limits.",
            "default": false
          },
          "apify_proxy_groups": {
            "title": "Proxy groups",
            "type": "array",
            "description": "Apify Proxy groups to use if use_apify_proxy is true. DATACENTER is cheapest and fine for these APIs.",
            "default": [
              "DATACENTER"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}