{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Federal Contract Opportunities (Unofficial)",
    "description": "Unofficial tool. Get U.S. federal contract opportunities from the public daily extract file published on SAM.gov. Filter by NAICS, PSC, set-aside, state, agency and keywords, and schedule only-new runs for a daily bid feed. No API key, no contact-person data.",
    "version": "0.1",
    "x-build-id": "L002zLD9xKgZ9a8MO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/syntrovia~federal-opportunities-sam-gov-extract/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-syntrovia-federal-opportunities-sam-gov-extract",
        "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/syntrovia~federal-opportunities-sam-gov-extract/runs": {
      "post": {
        "operationId": "runs-sync-syntrovia-federal-opportunities-sam-gov-extract",
        "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/syntrovia~federal-opportunities-sam-gov-extract/run-sync": {
      "post": {
        "operationId": "run-sync-syntrovia-federal-opportunities-sam-gov-extract",
        "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 within the last N days",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "Return notices posted in the last N days (UTC calendar days, 1-90). Smaller windows finish faster because the Actor stops reading the file once it passes this date.",
            "default": 7
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Keep only these notice types. Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "Combined Synopsis/Solicitation",
                "Solicitation",
                "Award Notice",
                "Presolicitation",
                "Sources Sought",
                "Special Notice",
                "Modification/Amendment/Cancel",
                "Justification",
                "Justification and Approval (J&A)",
                "Sale of Surplus Property",
                "Consolidate/(Substantially) Bundle"
              ]
            },
            "default": []
          },
          "naicsPrefixes": {
            "title": "NAICS code prefixes",
            "type": "array",
            "description": "Keep notices whose NAICS code starts with one of these prefixes (2 to 6 digits), for example 5415 for computer systems design.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "pscPrefixes": {
            "title": "PSC (product/service code) prefixes",
            "type": "array",
            "description": "Keep notices whose product/service code starts with one of these prefixes (1 to 4 letters or digits), for example D3 or R4.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "setAsideCodes": {
            "title": "Set-aside codes",
            "type": "array",
            "description": "Keep notices with one of these set-aside codes. Leave empty to ignore set-asides.",
            "items": {
              "type": "string",
              "enum": [
                "SBA",
                "SBP",
                "8A",
                "8AN",
                "HZC",
                "HZS",
                "SDVOSBC",
                "SDVOSBS",
                "WOSB",
                "WOSBSS",
                "EDWOSB",
                "EDWOSBSS",
                "VSA",
                "ISBEE",
                "IEE",
                "BICIV",
                "LAS",
                "ESB",
                "NONE"
              ],
              "enumTitles": [
                "SBA - Small Business Set Aside (Total)",
                "SBP - Small Business Set Aside (Partial)",
                "8A - 8(a) Set-Aside",
                "8AN - 8(a) Sole Source",
                "HZC - HUBZone Set-Aside",
                "HZS - HUBZone Sole Source",
                "SDVOSBC - Service-Disabled Veteran-Owned Small Business Set-Aside",
                "SDVOSBS - Service-Disabled Veteran-Owned Small Business Sole Source",
                "WOSB - Women-Owned Small Business Set-Aside",
                "WOSBSS - Women-Owned Small Business Sole Source",
                "EDWOSB - Economically Disadvantaged WOSB Set-Aside",
                "EDWOSBSS - Economically Disadvantaged WOSB Sole Source",
                "VSA - Veteran-Owned Small Business Set-Aside (VA)",
                "ISBEE - Indian Small Business Economic Enterprise",
                "IEE - Indian Economic Enterprise",
                "BICIV - Buy Indian Set-Aside (IHS)",
                "LAS - Local Area Set-Aside",
                "ESB - Emerging Small Business Set Aside",
                "NONE - No set-aside used"
              ]
            },
            "default": []
          },
          "placeOfPerformanceStates": {
            "title": "Place of performance states",
            "type": "array",
            "description": "Two-letter U.S. state codes, for example VA, TX, CA. Notices without a place of performance are excluded when this is set.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "agencyKeywords": {
            "title": "Agency keywords",
            "type": "array",
            "description": "Keep notices whose department, sub-tier or office contains one of these phrases (case-insensitive), for example \"army corps of engineers\" or \"veterans affairs\".",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Phrases matched in the title and description (case-insensitive). The description is used only for matching and is not included in the results.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keywordMode": {
            "title": "Keyword match",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "\"any\": a notice needs one of the keywords. \"all\": it needs every keyword.",
            "default": "any"
          },
          "deadlineFrom": {
            "title": "Response deadline on or after",
            "type": "string",
            "description": "Keep notices whose response deadline is on or after this date (YYYY-MM-DD). Notices without a deadline are excluded when this is set."
          },
          "onlyNewSinceLastRun": {
            "title": "Only notices not returned before",
            "type": "boolean",
            "description": "Skip notices that an earlier run with the same state name already returned. Useful for daily schedules. The list of returned notice IDs is kept in a named key-value store in your own Apify account.",
            "default": false
          },
          "stateName": {
            "title": "State name",
            "type": "string",
            "description": "Separate memory for each schedule, for example \"it-services-va\". Lower-case letters, digits and hyphens, up to 40 characters.",
            "default": "default"
          },
          "maxItems": {
            "title": "Max notices",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "The run stops after saving this many notices. You pay per saved notice.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}