{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Contract Opportunities: New Federal Bids & RFPs Feed",
    "description": "New federal bids and RFPs from SAM.gov, filtered by keyword, NAICS, set-aside (8(a), HUBZone, SDVOSB, WOSB), state and agency. Amendments folded, only-new monitor mode. Reads the official daily SAM.gov file, so it does not break when the website changes.",
    "version": "1.0",
    "x-build-id": "ltcwzMPvLJC51Qhiu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/stromation~samgov-bids-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-stromation-samgov-bids-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/stromation~samgov-bids-feed/runs": {
      "post": {
        "operationId": "runs-sync-stromation-samgov-bids-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/stromation~samgov-bids-feed/run-sync": {
      "post": {
        "operationId": "run-sync-stromation-samgov-bids-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": {
          "postedWithinDays": {
            "title": "Posted in the last (days)",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "1 to 30. For a daily monitor use 2 with \"Only new bids\" on.",
            "default": 3
          },
          "keywords": {
            "title": "Keywords (any)",
            "type": "array",
            "description": "A bid matches if its title or description contains any of these words or phrases. Case does not matter.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Skip bids whose title or description contains any of these.",
            "items": {
              "type": "string"
            }
          },
          "naicsCodes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "Full codes or prefixes, e.g. 561720 or 2382 (all specialty trade contractors starting 2382).",
            "items": {
              "type": "string"
            }
          },
          "pscCodes": {
            "title": "PSC codes (product/service)",
            "type": "array",
            "description": "Full codes or prefixes, e.g. S201 or Z2.",
            "items": {
              "type": "string"
            }
          },
          "setAsides": {
            "title": "Set-aside",
            "type": "array",
            "description": "Only bids reserved for these groups. Empty = all bids, including unrestricted.",
            "items": {
              "type": "string",
              "enum": [
                "small_business",
                "8a",
                "hubzone",
                "sdvosb",
                "wosb",
                "veteran",
                "indian",
                "local_area",
                "none"
              ],
              "enumTitles": [
                "Small business (total or partial)",
                "8(a)",
                "HUBZone",
                "Service-disabled veteran-owned (SDVOSB)",
                "Women-owned (WOSB / EDWOSB)",
                "Veteran-owned (incl. SDVOSB)",
                "Indian economic enterprise / Buy Indian",
                "Local area set-aside",
                "No set-aside (full and open)"
              ]
            }
          },
          "states": {
            "title": "Place of performance states",
            "type": "array",
            "description": "2-letter codes such as TX, CA. When SAM.gov leaves the state blank, it is filled from the ZIP code.",
            "items": {
              "type": "string"
            }
          },
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Part of the department, agency or office name, e.g. army, veterans affairs, NAVFAC.",
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Default: open opportunities (solicitations, combined synopsis, presolicitations, sources sought). Add Award Notice to see who won.",
            "items": {
              "type": "string",
              "enum": [
                "Solicitation",
                "Combined Synopsis/Solicitation",
                "Presolicitation",
                "Sources Sought",
                "Special Notice",
                "Award Notice",
                "Justification",
                "Sale of Surplus Property",
                "Intent to Bundle Requirements (DoD-Funded)"
              ]
            },
            "default": [
              "Solicitation",
              "Combined Synopsis/Solicitation",
              "Presolicitation",
              "Sources Sought"
            ]
          },
          "openOnly": {
            "title": "Only still-open bids",
            "type": "boolean",
            "description": "Skip notices that are inactive or whose response deadline has passed. Turn off for award notices or research.",
            "default": true
          },
          "onlyNew": {
            "title": "Only new bids (monitor mode)",
            "type": "boolean",
            "description": "Remembers what earlier runs with the same filters delivered and returns only bids you have not received yet. Repeats are free. Pair with a daily schedule.",
            "default": false
          },
          "latestVersionOnly": {
            "title": "Fold amendments",
            "type": "boolean",
            "description": "One row per solicitation (its latest amendment). Off = one row per notice.",
            "default": true
          },
          "descriptionMaxChars": {
            "title": "Description length",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Characters of the bid description to include. 0 = no description.",
            "default": 3000
          },
          "maxItems": {
            "title": "Max bids",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard limit on bids returned (and charged) in this run. Maximum 10,000.",
            "default": 200
          },
          "samApiKey": {
            "title": "SAM.gov API key (backup, optional)",
            "type": "string",
            "description": "Only used if the official daily SAM.gov file is unavailable. Your own free key from your SAM.gov account (Account Details > API Key). Stored as a secret and sent only to api.sam.gov."
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "bids",
              "health"
            ],
            "type": "string",
            "description": "Leave on Bids. Feed check tests the data source and returns one row (free).",
            "default": "bids"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}