{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Contract Opportunity Alerts",
    "description": "New US federal contract opportunities from SAM.gov as clean data: title, agency, deadline, NAICS code, set-aside and contact. Filter by keyword and run it on a schedule to get only new notices. Needs your own free SAM.gov API key.",
    "version": "0.0",
    "x-build-id": "GnrilhzzQouCyyYyr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/texxupport~sam-gov-contract-opportunity-alerts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-texxupport-sam-gov-contract-opportunity-alerts",
        "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/texxupport~sam-gov-contract-opportunity-alerts/runs": {
      "post": {
        "operationId": "runs-sync-texxupport-sam-gov-contract-opportunity-alerts",
        "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/texxupport~sam-gov-contract-opportunity-alerts/run-sync": {
      "post": {
        "operationId": "run-sync-texxupport-sam-gov-contract-opportunity-alerts",
        "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": {
          "samApiKey": {
            "title": "SAM.gov API key",
            "type": "string",
            "description": "Required unless the Actor's owner has set one. Free: sign in to SAM.gov, open Account Details and request a public API key. SAM.gov limits how many requests a key may make per day (a small number for most accounts), so this Actor keeps its requests low."
          },
          "keywords": {
            "title": "Keywords (matched in titles)",
            "type": "array",
            "description": "Each keyword is a separate search of notice titles and costs one request to SAM.gov. Leave empty to list every notice in the date window.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Leave out titles containing",
            "type": "array",
            "description": "Notices whose title contains any of these words are skipped.",
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Leave empty for all types. Solicitations and combined synopses are the notices that ask for bids.",
            "items": {
              "type": "string",
              "enum": [
                "solicitation",
                "presolicitation",
                "combined-synopsis",
                "sources-sought",
                "special-notice",
                "award-notice",
                "justification",
                "surplus-sale",
                "intent-to-bundle"
              ],
              "enumTitles": [
                "Solicitation",
                "Presolicitation",
                "Combined synopsis and solicitation",
                "Sources sought",
                "Special notice",
                "Award notice",
                "Justification",
                "Sale of surplus property",
                "Intent to bundle requirements (DoD)"
              ]
            }
          },
          "agencies": {
            "title": "Agencies (optional)",
            "type": "array",
            "description": "Only notices whose agency path contains one of these words, for example VETERANS AFFAIRS or ARMY.",
            "items": {
              "type": "string"
            }
          },
          "naicsCodes": {
            "title": "NAICS codes (optional)",
            "type": "array",
            "description": "Industry codes such as 541511. A shorter code (like 5415) matches every code that starts with it.",
            "items": {
              "type": "string"
            }
          },
          "setAsides": {
            "title": "Set-aside types (optional)",
            "type": "array",
            "description": "Only notices reserved for these kinds of businesses. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "SBA",
                "SBP",
                "8A",
                "8AN",
                "HZC",
                "HZS",
                "SDVOSBC",
                "SDVOSBS",
                "WOSB",
                "WOSBSS",
                "EDWOSB",
                "EDWOSBSS",
                "LAS",
                "IEE",
                "ISBEE",
                "BICiv",
                "VSA",
                "VSS"
              ],
              "enumTitles": [
                "Total small business set-aside",
                "Partial small business set-aside",
                "8(a) competed",
                "8(a) sole source",
                "HUBZone set-aside",
                "HUBZone sole source",
                "Service-disabled veteran-owned set-aside",
                "Service-disabled veteran-owned sole source",
                "Women-owned small business set-aside",
                "Women-owned small business sole source",
                "Economically disadvantaged women-owned set-aside",
                "Economically disadvantaged women-owned sole source",
                "Local area set-aside",
                "Indian economic enterprise set-aside",
                "Indian small business economic enterprise set-aside",
                "Buy Indian",
                "Veteran-owned set-aside",
                "Veteran-owned sole source"
              ]
            }
          },
          "states": {
            "title": "Place of performance: states (optional)",
            "type": "array",
            "description": "Two-letter state codes such as VA or TX.",
            "items": {
              "type": "string"
            }
          },
          "activeOnly": {
            "title": "Active notices only",
            "type": "boolean",
            "description": "Skip notices SAM.gov marks as no longer active.",
            "default": true
          },
          "responseDeadlineFrom": {
            "title": "Responses due from (optional)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only notices whose response deadline falls on or after this date, written YYYY-MM-DD. Notices with no deadline are left out when you use this."
          },
          "responseDeadlineTo": {
            "title": "Responses due until (optional)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only notices whose response deadline falls on or before this date, written YYYY-MM-DD."
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 1,
            "maximum": 364,
            "type": "integer",
            "description": "How many days before the end date to look, by posted date. Ignored when you fill in a start date.",
            "default": 3
          },
          "dateFrom": {
            "title": "Start date (optional)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "First posted date to include, written YYYY-MM-DD. At most one year before the end date."
          },
          "dateTo": {
            "title": "End date (optional)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Last posted date to include, written YYYY-MM-DD. Defaults to today (UTC)."
          },
          "onlyNew": {
            "title": "Only notices not delivered before",
            "type": "boolean",
            "description": "Turn this on and run the Actor on a schedule to get an alert-style feed. The Actor remembers which notices it delivered for this exact search.",
            "default": true
          },
          "maxResults": {
            "title": "Maximum notices",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many notices. You pay per notice delivered, so this also caps your cost.",
            "default": 100
          },
          "maxRequests": {
            "title": "Maximum requests to SAM.gov",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Safety limit. Each request counts against your SAM.gov key's daily allowance. Raise it only if your key allows more.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}