{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Contract Opportunities (no API key)",
    "description": "Find federal contract opportunities on SAM.gov as clean rows. Filter by keyword, NAICS, set-aside, agency, state and deadline. No API key or login. One row per solicitation.",
    "version": "0.0",
    "x-build-id": "aQbWfLZXwlEQlSqxH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/opendocketdata~sam-gov-contract-opportunities/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-opendocketdata-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/opendocketdata~sam-gov-contract-opportunities/runs": {
      "post": {
        "operationId": "runs-sync-opendocketdata-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/opendocketdata~sam-gov-contract-opportunities/run-sync": {
      "post": {
        "operationId": "run-sync-opendocketdata-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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words or phrases to look for in the title or description. A notice matches if it contains any of them. Leave empty for everything.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Skip notices whose title or description contains any of these.",
            "items": {
              "type": "string"
            }
          },
          "keywordsInTitleOnly": {
            "title": "Search titles only",
            "type": "boolean",
            "description": "Match keywords against the notice title only. Leave off to search the title and the description. Titles only gives fewer, more exact matches.",
            "default": false
          },
          "naicsCodes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "Full or partial codes. 5415 matches every code that starts with 5415.",
            "items": {
              "type": "string"
            }
          },
          "pscCodes": {
            "title": "Product or service codes (PSC)",
            "type": "array",
            "description": "Full or partial classification codes, for example R4 or DA01.",
            "items": {
              "type": "string"
            }
          },
          "setAsides": {
            "title": "Set-asides",
            "type": "array",
            "description": "Leave empty for all notices. Choose Any set-aside to see only notices that have one.",
            "items": {
              "type": "string",
              "enum": [
                "ANY",
                "SBA",
                "SBP",
                "8A",
                "8AN",
                "WOSB",
                "EDWOSB",
                "SDVOSBC",
                "SDVOSBS",
                "HZC",
                "HZS",
                "ISBEE",
                "IEE",
                "VSA",
                "VSS",
                "LAS"
              ],
              "enumTitles": [
                "Any set-aside",
                "Total Small Business (SBA)",
                "Partial Small Business (SBP)",
                "8(a) Set-Aside (8A)",
                "8(a) Sole Source (8AN)",
                "Women-Owned Small Business (WOSB)",
                "Economically Disadvantaged WOSB (EDWOSB)",
                "Service-Disabled Veteran-Owned Set-Aside (SDVOSBC)",
                "Service-Disabled Veteran-Owned Sole Source (SDVOSBS)",
                "HUBZone Set-Aside (HZC)",
                "HUBZone Sole Source (HZS)",
                "Indian Small Business Economic Enterprise (ISBEE)",
                "Indian Economic Enterprise (IEE)",
                "Veteran-Owned Set-Aside (VSA)",
                "Veteran-Owned Sole Source (VSS)",
                "Local Area Set-Aside (LAS)"
              ]
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "Solicitation",
                "Combined Synopsis/Solicitation",
                "Presolicitation",
                "Sources Sought",
                "Special Notice",
                "Award Notice",
                "Justification",
                "Sale of Surplus Property"
              ]
            }
          },
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Part of a department, sub-tier or office name, for example Veterans Affairs or GSA.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "Place of performance (states)",
            "type": "array",
            "description": "Two-letter state codes, for example CO or VA.",
            "items": {
              "type": "string"
            }
          },
          "daysBack": {
            "title": "Posted in the last (days)",
            "minimum": 0,
            "maximum": 400,
            "type": "integer",
            "description": "Used when Posted from is empty. Set to 0 for no date limit.",
            "default": 7
          },
          "postedFrom": {
            "title": "Posted from",
            "type": "string",
            "description": "Earliest posted date, as YYYY-MM-DD."
          },
          "postedTo": {
            "title": "Posted to",
            "type": "string",
            "description": "Latest posted date, as YYYY-MM-DD."
          },
          "openOnly": {
            "title": "Only notices still open",
            "type": "boolean",
            "description": "Keep only notices whose response deadline has not passed. Notices with no deadline, such as award notices, are left out.",
            "default": false
          },
          "deadlineFrom": {
            "title": "Deadline from",
            "type": "string",
            "description": "Earliest response deadline, as YYYY-MM-DD."
          },
          "deadlineTo": {
            "title": "Deadline to",
            "type": "string",
            "description": "Latest response deadline, as YYYY-MM-DD."
          },
          "activeOnly": {
            "title": "Active notices only",
            "type": "boolean",
            "description": "SAM.gov marks each notice active or inactive.",
            "default": true
          },
          "latestVersionOnly": {
            "title": "Latest version of each notice only",
            "type": "boolean",
            "description": "Agencies re-post a notice each time they amend it, so SAM.gov's file can hold several versions of one solicitation. Leave this on to get one row per solicitation: its newest version. A version is left out when the file holds a newer notice with the same solicitation number from the same office, including a later award notice. Turn off to get every version.",
            "default": true
          },
          "maxItems": {
            "title": "Maximum notices",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The run stops after this many matching notices, newest first.",
            "default": 100
          },
          "descriptionMaxChars": {
            "title": "Description length",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "Longest description to save, in characters. Set to 0 to leave descriptions out.",
            "default": 2000
          },
          "includeContacts": {
            "title": "Include contracting office contacts",
            "type": "boolean",
            "description": "Adds the government points of contact SAM.gov publishes for each notice (name, title, work email and phone). Off by default.",
            "default": false
          },
          "onlyNew": {
            "title": "Only notices not seen before",
            "type": "boolean",
            "description": "For scheduled runs: saves only notices that earlier runs with the same watch name have not saved.",
            "default": false
          },
          "watchName": {
            "title": "Watch name",
            "type": "string",
            "description": "A name for this saved search, used with Only notices not seen before."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}