{
  "openapi": "3.0.1",
  "info": {
    "title": "US Federal Contract Opportunities - SAM.gov Public Data Feed",
    "description": "Daily U.S. federal contract opportunities from GSA's official SAM.gov public extract. Filter by NAICS, set-aside, agency, keyword and deadline; get only new notices. Contacts removed.",
    "version": "0.1",
    "x-build-id": "eUWbgtKwgTJDCa413"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/noisy_jubilee~us-federal-contract-opportunities/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-noisy_jubilee-us-federal-contract-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/noisy_jubilee~us-federal-contract-opportunities/runs": {
      "post": {
        "operationId": "runs-sync-noisy_jubilee-us-federal-contract-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/noisy_jubilee~us-federal-contract-opportunities/run-sync": {
      "post": {
        "operationId": "run-sync-noisy_jubilee-us-federal-contract-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": {
          "naicsCodes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "NAICS codes or prefixes (e.g. '5415' matches 541511, 541512...). Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "setAsideCodes": {
            "title": "Set-aside codes",
            "type": "array",
            "description": "SAM.gov set-aside codes, e.g. SBA, SBP, 8A, 8AN, HZC, HZS, SDVOSBC, SDVOSBS, WOSB, WOSBSS, EDWOSB, EDWOSBSS, VSA, VSS, LAS, IEE, ISBEE, BICiv. Empty = any (including none).",
            "items": {
              "type": "string"
            }
          },
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Case-insensitive text matched against department, sub-tier and office names and codes, e.g. 'VETERANS AFFAIRS', 'ARMY', '3600'.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Case-insensitive words or phrases matched in the title (and description, if enabled).",
            "items": {
              "type": "string"
            }
          },
          "keywordMode": {
            "title": "Keyword mode",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "'any' = at least one keyword must appear; 'all' = every keyword must appear.",
            "default": "any"
          },
          "searchDescription": {
            "title": "Search descriptions too",
            "type": "boolean",
            "description": "Match keywords in the notice description as well as the title.",
            "default": true
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Only these notice types. Empty = all except award notices.",
            "items": {
              "type": "string",
              "enum": [
                "Solicitation",
                "Combined Synopsis/Solicitation",
                "Presolicitation",
                "Sources Sought",
                "Special Notice",
                "Justification",
                "Sale of Surplus Property",
                "Consolidate/(Substantially) Bundle",
                "Modification/Amendment/Cancel",
                "Award Notice"
              ]
            }
          },
          "includeAwardNotices": {
            "title": "Include award notices",
            "type": "boolean",
            "description": "Award notices are excluded by default. Awardee names are never output (they can identify sole proprietors).",
            "default": false
          },
          "placeOfPerformanceStates": {
            "title": "Place-of-performance states",
            "type": "array",
            "description": "Two-letter US state codes, e.g. VA, DC, CA. Note: most notices leave this blank, so this filter is strict.",
            "items": {
              "type": "string"
            }
          },
          "postedSince": {
            "title": "Posted since",
            "type": "string",
            "description": "YYYY-MM-DD or relative like '3 days', '2 weeks', '1 month'. Posted dates are U.S. Eastern."
          },
          "responseDeadlineFrom": {
            "title": "Response deadline from",
            "type": "string",
            "description": "YYYY-MM-DD or relative (e.g. '0 days' = today). Notices without a deadline are excluded when a deadline range is set."
          },
          "responseDeadlineTo": {
            "title": "Response deadline to",
            "type": "string",
            "description": "YYYY-MM-DD. Notices without a deadline are excluded when a deadline range is set."
          },
          "onlyOpen": {
            "title": "Only open (deadline not passed)",
            "type": "boolean",
            "description": "Drop notices whose response deadline is already in the past. Notices without a deadline are kept.",
            "default": true
          },
          "outputMode": {
            "title": "Output mode",
            "enum": [
              "all",
              "new",
              "newOrUpdated"
            ],
            "type": "string",
            "description": "'all' = every match. 'new' = only notices not seen in the previous run of this snapshot. 'newOrUpdated' = also notices whose title, type, deadline, set-aside, NAICS or description changed. Unchanged notices are free.",
            "default": "all"
          },
          "snapshotName": {
            "title": "Snapshot name",
            "type": "string",
            "description": "Use a different name per saved search when using 'new' modes. Stored in your named key-value store 'us-contract-opportunities-state'.",
            "default": "default"
          },
          "includeDescription": {
            "title": "Include description text",
            "type": "boolean",
            "description": "Include the notice description (emails, phone numbers and labelled contact names are removed).",
            "default": true
          },
          "maxDescriptionChars": {
            "title": "Max description characters",
            "minimum": 200,
            "type": "integer",
            "description": "Truncate long descriptions to this many characters.",
            "default": 20000
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many output items (0 = no limit). Each output item is one billable event.",
            "default": 500
          },
          "dataSource": {
            "title": "Data source",
            "enum": [
              "extract",
              "api"
            ],
            "type": "string",
            "description": "'extract' = GSA's daily public extract (no key, refreshed once a day). 'api' = the SAM.gov Get Opportunities public API using YOUR OWN key (fresher; no descriptions).",
            "default": "extract"
          },
          "samApiKey": {
            "title": "Your SAM.gov public API key",
            "type": "string",
            "description": "Only for dataSource 'api'. Get it from your SAM.gov Account Details page. It is used only for your run and never logged or stored."
          },
          "maxApiRequests": {
            "title": "Max API requests",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Cap on API pages (1,000 notices each). Non-federal SAM.gov keys may be limited to about 10 requests per day.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}