{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Federal Contract Opportunities (No API Key)",
    "description": "Every US federal contract opportunity from SAM.gov: solicitations, sources sought, presolicitations and awards. Filter by keyword, NAICS, PSC, set-aside, agency, state and deadline, or get only new notices since your last run. No SAM.gov API key or quota needed.",
    "version": "0.0",
    "x-build-id": "UgBA3ivGlqtmuzUmQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/agentready~sam-gov-opportunities/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-agentready-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/agentready~sam-gov-opportunities/runs": {
      "post": {
        "operationId": "runs-sync-agentready-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/agentready~sam-gov-opportunities/run-sync": {
      "post": {
        "operationId": "run-sync-agentready-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": "Keep notices whose title (and description, see below) contains any of these words or phrases. Whole words, case-insensitive.",
            "items": {
              "type": "string"
            }
          },
          "searchInDescription": {
            "title": "Also search descriptions",
            "type": "boolean",
            "description": "Match keywords in the full notice description as well as the title.",
            "default": true
          },
          "naicsCodes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "Industry codes. Prefixes work: 5415 matches 541511, 541512 and so on.",
            "items": {
              "type": "string"
            }
          },
          "pscCodes": {
            "title": "PSC codes",
            "type": "array",
            "description": "Product/Service Codes. Prefixes work: D3 matches all IT services codes starting with D3.",
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Which kinds of notice to return. Default: the ones you can respond to.",
            "items": {
              "type": "string",
              "enum": [
                "solicitation",
                "presolicitation",
                "sources_sought",
                "award",
                "special",
                "justification",
                "other"
              ],
              "enumTitles": [
                "Solicitations (incl. combined synopsis/solicitation)",
                "Presolicitations",
                "Sources sought / RFIs",
                "Award notices",
                "Special notices (industry days, events)",
                "Justifications (sole source)",
                "Other (surplus sales, bundling)"
              ]
            },
            "default": [
              "solicitation",
              "presolicitation",
              "sources_sought"
            ]
          },
          "setAsides": {
            "title": "Set-asides",
            "type": "array",
            "description": "Keep only notices with these set-asides. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "SBA",
                "SBP",
                "8A",
                "8AN",
                "HZC",
                "HZS",
                "SDVOSBC",
                "SDVOSBS",
                "WOSB",
                "WOSBSS",
                "EDWOSB",
                "EDWOSBSS",
                "VSA",
                "VSS",
                "ISBEE",
                "IEE",
                "BICiv",
                "LAS",
                "NONE"
              ],
              "enumTitles": [
                "Total Small Business (SBA)",
                "Partial Small Business (SBP)",
                "8(a) (8A)",
                "8(a) Sole Source (8AN)",
                "HUBZone (HZC)",
                "HUBZone Sole Source (HZS)",
                "SDVOSB (SDVOSBC)",
                "SDVOSB Sole Source (SDVOSBS)",
                "WOSB (WOSB)",
                "WOSB Sole Source (WOSBSS)",
                "EDWOSB (EDWOSB)",
                "EDWOSB Sole Source (EDWOSBSS)",
                "Veteran-Owned, VA (VSA)",
                "Veteran-Owned Sole Source, VA (VSS)",
                "Indian Small Business Economic Enterprise (ISBEE)",
                "Indian Economic Enterprise (IEE)",
                "Buy Indian, IHS (BICiv)",
                "Local Area Set-Aside (LAS)",
                "No set-aside (NONE)"
              ]
            }
          },
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Keep notices whose department, sub-tier or office contains any of these (case-insensitive), e.g. 'Army', 'Veterans Affairs', 'NASA'.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "Place-of-performance states",
            "type": "array",
            "description": "2-letter US state codes, e.g. VA, MD, TX. Notices without a place of performance are excluded when this is set.",
            "items": {
              "type": "string"
            }
          },
          "postedWithinDays": {
            "title": "Posted within (days)",
            "minimum": 0,
            "type": "integer",
            "description": "Only notices posted in the last N days. 0 reads the entire history back to 2008 (slower).",
            "default": 7
          },
          "onlyOpenForBids": {
            "title": "Only open for responses",
            "type": "boolean",
            "description": "Keep only notices whose response deadline is in the future. Notices without a deadline are excluded.",
            "default": false
          },
          "includeDescription": {
            "title": "Include descriptions",
            "type": "boolean",
            "description": "Include the full notice description. Turn off for smaller output.",
            "default": true
          },
          "includeContacts": {
            "title": "Include government points of contact",
            "type": "boolean",
            "description": "Include the contracting officer contact details published on each notice.",
            "default": true
          },
          "maxResults": {
            "title": "Max notices",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many notices. 0 means up to 50,000. You can also cap cost with the run's maximum charge.",
            "default": 500
          },
          "onlyNewNotices": {
            "title": "Only notices new since my last run",
            "type": "boolean",
            "description": "Remember which notices this account already received and output only new ones. Ideal for scheduled daily runs; you pay only for new notices.",
            "default": false
          },
          "stateKey": {
            "title": "Monitoring list name",
            "type": "string",
            "description": "Keeps separate 'already seen' lists for different searches. Use a different name for each scheduled search.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}