{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Contract Opportunities Feed (no API key)",
    "description": "New U.S. federal contract opportunities from SAM.gov's official public data extract - no API key or login. Solicitations, RFQs, sources sought, presolicitations and award notices with NAICS, PSC, set-aside, agency, state and keyword filters plus a new-since-last-run mode.",
    "version": "0.1",
    "x-build-id": "rEtZa288AXsaIuvXD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moment-data~sam-gov-opportunities-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moment-data-sam-gov-opportunities-feed",
        "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/moment-data~sam-gov-opportunities-feed/runs": {
      "post": {
        "operationId": "runs-sync-moment-data-sam-gov-opportunities-feed",
        "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/moment-data~sam-gov-opportunities-feed/run-sync": {
      "post": {
        "operationId": "run-sync-moment-data-sam-gov-opportunities-feed",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "window",
              "sinceLastRun"
            ],
            "type": "string",
            "description": "window (default): notices posted in the lookback window, no saved state. sinceLastRun: only notices (or new versions of notices) not delivered before for this State key; use this for daily schedules.",
            "default": "window"
          },
          "noticeKinds": {
            "title": "Notice kinds",
            "type": "array",
            "description": "Which SAM.gov notice types to return. The run splits Max notices fairly between the selected kinds.",
            "items": {
              "type": "string",
              "enum": [
                "solicitation",
                "combined",
                "presolicitation",
                "sourcesSought",
                "specialNotice",
                "award",
                "justification",
                "surplusSale",
                "bundling",
                "other"
              ],
              "enumTitles": [
                "Solicitation (RFP/IFB)",
                "Combined synopsis/solicitation (RFQ)",
                "Presolicitation",
                "Sources sought / RFI",
                "Special notice (industry days, events)",
                "Award notice (winner + amount)",
                "Justification (sole source J&A)",
                "Sale of surplus property",
                "Intent to bundle / consolidate",
                "Other"
              ]
            },
            "default": [
              "solicitation",
              "combined",
              "presolicitation",
              "sourcesSought",
              "award"
            ]
          },
          "lookbackDays": {
            "title": "Lookback (days)",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "Posting-date window, counted back from the newest posting day in today's SAM.gov extract (rebuilt nightly). Longer windows read more of the file (about 4 MB per business day).",
            "default": 3
          },
          "naicsCodes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "NAICS prefixes, e.g. 541511, 5415, 236220, 2382. Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "pscCodes": {
            "title": "PSC / FSC codes",
            "type": "array",
            "description": "Product Service Code prefixes, e.g. R4 (professional support), D3 (IT), Z2 (repair of buildings), 59 (electrical components). Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "setAsides": {
            "title": "Set-aside codes",
            "type": "array",
            "description": "Exact SAM.gov set-aside codes, e.g. SBA, SBP, 8A, 8AN, HZC, SDVOSBC, WOSB, EDWOSB, VSA, ISBEE. Empty = all (including unrestricted).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "smallBusinessOnly": {
            "title": "Any small-business set-aside",
            "type": "boolean",
            "description": "Keep only notices with some set-aside (any code other than none).",
            "default": false
          },
          "agencies": {
            "title": "Agencies / offices",
            "type": "array",
            "description": "Case-insensitive text matched against department, sub-tier, office and office code, e.g. 'veterans affairs', 'army', 'nasa', 'W912'.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "Place-of-performance states",
            "type": "array",
            "description": "2-letter USPS codes, e.g. CO, TX, VA, DC. Empty = all (including overseas and unspecified).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keep notices whose title or description contains any of these words or phrases (word-start match, case-insensitive), e.g. 'janitorial', 'event', 'cybersecurity'.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop notices whose title or description contains any of these words.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "onlyOpen": {
            "title": "Only open opportunities",
            "type": "boolean",
            "description": "Keep only notices with a response deadline in the future (drops awards, justifications and notices without a deadline).",
            "default": false
          },
          "minAwardAmount": {
            "title": "Minimum award amount (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "For award notices: keep awards of at least this amount. Notices without an amount are dropped when set (so combine with noticeKinds = award)."
          },
          "maxItems": {
            "title": "Max notices",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum notices delivered (and charged) per run, newest first.",
            "default": 30
          },
          "descriptionChars": {
            "title": "Description length",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Characters of plain-text description kept (emails and phone numbers masked). 0 = no description.",
            "default": 600
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Only for sinceLastRun: separate saved state per saved search, e.g. 'va-janitorial'.",
            "default": "default"
          },
          "maxDownloadMb": {
            "title": "Max download (MB)",
            "minimum": 5,
            "maximum": 400,
            "type": "integer",
            "description": "Safety cap on how much of the ~210 MB extract a run may read. Default runs read under 5 MB.",
            "default": 230
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}