{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Contract Opportunities – Federal Bids & RFP Alerts",
    "description": "Federal contract opportunities from the official SAM.gov public data extract: solicitations, RFPs, sources sought and award notices with NAICS, set-aside, deadline, place of performance and contracting officer email. Filter by keyword, NAICS, state, agency. $2 per 1,000 notices.",
    "version": "0.1",
    "x-build-id": "YqJpzVGEROAp1Peiv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gazidev~sam-gov-contract-opportunities/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gazidev-sam-gov-contract-opportunities",
        "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/gazidev~sam-gov-contract-opportunities/runs": {
      "post": {
        "operationId": "runs-sync-gazidev-sam-gov-contract-opportunities",
        "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/gazidev~sam-gov-contract-opportunities/run-sync": {
      "post": {
        "operationId": "run-sync-gazidev-sam-gov-contract-opportunities",
        "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": {
          "postedWithinDays": {
            "title": "Posted in the last N days",
            "minimum": 1,
            "maximum": 400,
            "type": "integer",
            "description": "Notices posted in the last N days (about 500 new notices appear per business day). Ignored when *Posted on/after* is set.",
            "default": 3
          },
          "postedAfter": {
            "title": "Posted on/after (date)",
            "type": "string",
            "description": "YYYY-MM-DD. Overrides *Posted in the last N days*."
          },
          "postedBefore": {
            "title": "Posted on/before (date)",
            "type": "string",
            "description": "Optional upper bound, YYYY-MM-DD."
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Match any of these words or phrases in the title or description (case-insensitive), e.g. `janitorial`, `cybersecurity`, `roofing`.",
            "items": {
              "type": "string"
            }
          },
          "keywordsInTitleOnly": {
            "title": "Match keywords in title only",
            "type": "boolean",
            "description": "Search only notice titles (fewer, more precise matches).",
            "default": false
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Skip notices whose title or description contains any of these.",
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Empty = all types.",
            "items": {
              "type": "string",
              "enum": [
                "solicitation",
                "presolicitation",
                "sources-sought",
                "award",
                "special",
                "justification",
                "intent-to-bundle",
                "surplus-sale"
              ],
              "enumTitles": [
                "Solicitation / Combined synopsis (open bids)",
                "Presolicitation",
                "Sources sought / RFI",
                "Award notice (who won)",
                "Special notice",
                "Justification (sole source)",
                "Intent to bundle",
                "Sale of surplus property"
              ]
            }
          },
          "naicsCodes": {
            "title": "NAICS codes or prefixes",
            "type": "array",
            "description": "E.g. `541512` (computer systems design) or `236` (construction of buildings) for the whole group.",
            "items": {
              "type": "string"
            }
          },
          "pscCodes": {
            "title": "PSC / classification codes or prefixes",
            "type": "array",
            "description": "Product and service codes, e.g. `S201` (custodial) or `D3` (IT services).",
            "items": {
              "type": "string"
            }
          },
          "setAsides": {
            "title": "Set-asides",
            "type": "array",
            "description": "Any of the selected set-aside types. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "small-business",
                "8a",
                "hubzone",
                "sdvosb",
                "wosb",
                "veteran",
                "indian",
                "none"
              ],
              "enumTitles": [
                "Small business",
                "8(a)",
                "HUBZone",
                "Service-disabled veteran-owned (SDVOSB)",
                "Women-owned (WOSB / EDWOSB)",
                "Veteran-owned",
                "Indian economic enterprise",
                "No set-aside (full and open)"
              ]
            }
          },
          "states": {
            "title": "States (place of performance or office)",
            "type": "array",
            "description": "2-letter codes, e.g. `TX`, `VA`. Matches the place of performance or the contracting office state.",
            "items": {
              "type": "string"
            }
          },
          "agencies": {
            "title": "Agency contains",
            "type": "array",
            "description": "Match department, sub-tier or office names, e.g. `Veterans Affairs`, `Army`, `NASA`.",
            "items": {
              "type": "string"
            }
          },
          "openForResponsesOnly": {
            "title": "Only open opportunities",
            "type": "boolean",
            "description": "Active notices whose response deadline has not passed.",
            "default": false
          },
          "onlyWithContactEmail": {
            "title": "Only notices with a contact email",
            "type": "boolean",
            "description": "Skip notices without a contracting officer email.",
            "default": false
          },
          "minAwardAmount": {
            "title": "Min award amount (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "For award notices: only awards of at least this value. Notices without an amount are skipped when set."
          },
          "includeDescription": {
            "title": "Include description text",
            "type": "boolean",
            "description": "Full notice description as plain text.",
            "default": true
          },
          "maxDescriptionLength": {
            "title": "Max description length (characters)",
            "minimum": 0,
            "type": "integer",
            "description": "Trim long descriptions. 0 = no limit.",
            "default": 5000
          },
          "onlyNew": {
            "title": "Only new notices (monitoring)",
            "type": "boolean",
            "description": "Skip notices returned by earlier runs with the same *State key*. Schedule the Actor daily for a bid alert feed.",
            "default": false
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Separate 'already seen' lists for different searches.",
            "default": "default"
          },
          "maxResults": {
            "title": "Max opportunities",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many notices (0 = no limit). You pay per notice saved.",
            "default": 500
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}