{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Federal Contract Opportunities & RFPs (Free)",
    "description": "Free SAM.gov federal contract opportunities and government contracts: RFPs, solicitations, sources sought, awards. Filter by NAICS, PSC, set-aside, agency, date. Official extract, no API key.",
    "version": "1.0",
    "x-build-id": "BoM0gJwKmkYYV2XFr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/busy_courtyard~sam-gov-opportunities/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-busy_courtyard-sam-gov-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/busy_courtyard~sam-gov-opportunities/runs": {
      "post": {
        "operationId": "runs-sync-busy_courtyard-sam-gov-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/busy_courtyard~sam-gov-opportunities/run-sync": {
      "post": {
        "operationId": "run-sync-busy_courtyard-sam-gov-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": "A notice matches if its title (and description, see below) contains ANY of these words or phrases. Not case-sensitive. Leave empty for no keyword filter.",
            "items": {
              "type": "string"
            }
          },
          "searchDescription": {
            "title": "Search descriptions too",
            "type": "boolean",
            "description": "Off: keywords are matched against titles only (fewer, more precise matches).",
            "default": true
          },
          "naicsCodes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "Industry codes. A shorter code matches every code that starts with it, so 5415 matches 541511, 541512 and so on.",
            "items": {
              "type": "string"
            }
          },
          "pscCodes": {
            "title": "PSC codes (product/service)",
            "type": "array",
            "description": "Product Service Codes, matched by prefix: D3 matches D302, D399 and so on.",
            "items": {
              "type": "string"
            }
          },
          "setAsideCodes": {
            "title": "Set-aside codes",
            "type": "array",
            "description": "For example SBA (small business), 8A, SDVOSBC (service-disabled veteran-owned), WOSB, EDWOSB, HZC (HUBZone), NONE. A notice matches if it has any of them.",
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "Combined Synopsis/Solicitation",
                "Solicitation",
                "Award Notice",
                "Presolicitation",
                "Special Notice",
                "Sources Sought",
                "Justification",
                "Modification/Amendment/Cancel",
                "Justification and Approval (J&A)",
                "Sale of Surplus Property",
                "Consolidate/(Substantially) Bundle"
              ]
            }
          },
          "agencies": {
            "title": "Agency contains",
            "type": "array",
            "description": "Text matched (not case-sensitive) against the department, sub-tier and office, e.g. 'VETERANS AFFAIRS', 'NAVY' or 'FOREST SERVICE'.",
            "items": {
              "type": "string"
            }
          },
          "placeOfPerformanceStates": {
            "title": "Place of performance: US state codes",
            "type": "array",
            "description": "Two-letter codes such as VA, TX or DC. Note: many notices leave the place of performance blank, and those won't match.",
            "items": {
              "type": "string"
            }
          },
          "postedWithinDays": {
            "title": "Posted within the last N days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "The quickest filter: the file is sorted newest first, so the actor stops reading once it passes this date and you pay for less data. 0 = no limit. Don't combine with 'Posted on or after'."
          },
          "postedAfter": {
            "title": "Posted on or after",
            "type": "string",
            "description": "A date (YYYY-MM-DD). Same early-stop benefit as above."
          },
          "responseDeadlineAfter": {
            "title": "Response deadline on or after",
            "type": "string",
            "description": "A date (YYYY-MM-DD). Notices without a deadline (for example award notices) are left out when this is set."
          },
          "activeOnly": {
            "title": "Active only",
            "type": "boolean",
            "description": "Keep notices marked Active whose response deadline (if they have one) has not passed yet.",
            "default": true
          },
          "includeDescription": {
            "title": "Include description text",
            "type": "boolean",
            "description": "The full notice text (up to about 32,000 characters). Email addresses and phone numbers inside it are masked.",
            "default": true
          },
          "maxResults": {
            "title": "Maximum notices",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop after this many matching notices. Each notice is billed.",
            "default": 1000
          },
          "newSinceLastRun": {
            "title": "Only notices new since the last run",
            "type": "boolean",
            "description": "For daily monitoring: remembers which notice IDs were already delivered (in a named key-value store, per 'Monitor name') and skips them. If SAM.gov hasn't published a new file since the last run, the run ends without downloading or charging anything.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps separate 'already delivered' lists for different searches. Letters, digits, '-' and '_' only.",
            "default": "default"
          },
          "maxFileAgeHours": {
            "title": "Fail if the extract is older than (hours)",
            "minimum": 1,
            "maximum": 1440,
            "type": "integer",
            "description": "GSA refreshes the file daily. If it is older than this, the run fails instead of returning stale data.",
            "default": 72
          },
          "maxRetries": {
            "title": "Download retries",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "How many times to resume the download after a network error.",
            "default": 3
          },
          "requestTimeoutSecs": {
            "title": "Network timeout (seconds)",
            "minimum": 10,
            "maximum": 600,
            "type": "integer",
            "description": "How long to wait for the server before retrying.",
            "default": 120
          },
          "selfTest": {
            "title": "Self-test mode",
            "type": "boolean",
            "description": "Ignore the other fields, fetch up to 5 of the newest notices, and fail the run if key fields are empty or contact details appear. Meant for a daily health-check schedule.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}