{
  "openapi": "3.0.1",
  "info": {
    "title": "US Federal Contract Opportunities from SAM.gov (Unofficial)",
    "description": "Daily feed of US federal contracts and government contract opportunities from SAM.gov's public extract. Filter by NAICS, PSC, set-aside, agency, state; track new, amended and awarded notices. Not affiliated with or endorsed by the U.S. General Services Administration (GSA) or SAM.gov.",
    "version": "1.0",
    "x-build-id": "bvsnSxcY6P6RKG2i3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/clearpath-data~us-federal-contract-opportunities/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-clearpath-data-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/clearpath-data~us-federal-contract-opportunities/runs": {
      "post": {
        "operationId": "runs-sync-clearpath-data-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/clearpath-data~us-federal-contract-opportunities/run-sync": {
      "post": {
        "operationId": "run-sync-clearpath-data-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "new",
              "all",
              "changes"
            ],
            "type": "string",
            "description": "New since last run: only notices you haven't received yet under this state name (the first run covers \"Posted within (days)\"). All matching: every notice in today's extract that matches, nothing remembered. Changes: compares today's extract with the last run's and lists new, amended (with what changed, e.g. deadline moved), awarded and removed notices; the first run only saves a baseline.",
            "default": "new"
          },
          "postedWithinDays": {
            "title": "Posted within (days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Only notices posted in the last N days (by the extract's posted date). In New since last run it sets the first run's window (2 days if empty); later runs list every matching notice posted since then that you haven't received. Not used in Changes mode. Leave empty in All mode for every active notice."
          },
          "naicsPrefixes": {
            "title": "NAICS code prefixes",
            "type": "array",
            "description": "Only notices whose NAICS code starts with one of these, e.g. 54 (professional, scientific and technical services), 5415, 236220. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "pscPrefixes": {
            "title": "PSC (product/service code) prefixes",
            "type": "array",
            "description": "Only notices whose product or service code starts with one of these, e.g. D3 (IT services), R4, 7A. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "setAsides": {
            "title": "Set-asides",
            "type": "array",
            "description": "Only notices with one of these set-aside codes. \"NONE\" also matches notices with no set-aside given. 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",
                "ESB",
                "NONE"
              ],
              "enumTitles": [
                "Small Business Set-Aside, total (SBA)",
                "Small Business Set-Aside, partial (SBP)",
                "8(a) Set-Aside (8A)",
                "8(a) Sole Source (8AN)",
                "HUBZone Set-Aside (HZC)",
                "HUBZone Sole Source (HZS)",
                "Service-Disabled Veteran-Owned Small Business Set-Aside (SDVOSBC)",
                "Service-Disabled Veteran-Owned Small Business Sole Source (SDVOSBS)",
                "Women-Owned Small Business Program Set-Aside (WOSB)",
                "Women-Owned Small Business Program Sole Source (WOSBSS)",
                "Economically Disadvantaged WOSB Set-Aside (EDWOSB)",
                "Economically Disadvantaged WOSB Sole Source (EDWOSBSS)",
                "Veteran-Owned Small Business Set-Aside, VA (VSA)",
                "Veteran-Owned Small Business Sole Source, VA (VSS)",
                "Indian Small Business Economic Enterprise (ISBEE)",
                "Indian Economic Enterprise (IEE)",
                "Buy Indian Set-Aside, IHS (BICiv)",
                "Local Area Set-Aside (LAS)",
                "Emerging Small Business Set-Aside (ESB)",
                "No set-aside used, or none given (NONE)"
              ]
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Only these notice types (the notice's current type). Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "Combined Synopsis/Solicitation",
                "Solicitation",
                "Presolicitation",
                "Sources Sought",
                "Special Notice",
                "Award Notice",
                "Justification",
                "Justification and Approval (J&A)",
                "Modification/Amendment/Cancel",
                "Sale of Surplus Property",
                "Consolidate/(Substantially) Bundle",
                "Intent to Bundle Requirements (DoD-Funded)"
              ],
              "enumTitles": [
                "Combined Synopsis/Solicitation",
                "Solicitation",
                "Presolicitation",
                "Sources Sought",
                "Special Notice",
                "Award Notice",
                "Justification",
                "Justification and Approval (J&A)",
                "Modification/Amendment/Cancel",
                "Sale of Surplus Property",
                "Consolidate/(Substantially) Bundle",
                "Intent to Bundle Requirements (DoD-Funded)"
              ]
            }
          },
          "agencies": {
            "title": "Agency or department contains",
            "type": "array",
            "description": "Only notices whose department, sub-tier agency or office contains one of these texts (case-insensitive), e.g. VETERANS AFFAIRS, NAVY, NASA. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "placeOfPerformanceStates": {
            "title": "Place-of-performance states",
            "type": "array",
            "description": "Only notices whose place-of-performance state is one of these 2-letter codes, e.g. VA, TX. Notices without a place-of-performance state (most of them) are excluded when this is set. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Only notices whose title or description contains one of these words or phrases (whole words, case-insensitive: \"AI\" does not match \"maintenance\"). Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "keywordsInTitleOnly": {
            "title": "Keywords: title only",
            "type": "boolean",
            "description": "Match keywords in the title only, not the description.",
            "default": false
          },
          "openForResponseOnly": {
            "title": "Open for responses only",
            "type": "boolean",
            "description": "Only notices whose response deadline is still ahead. Notices without a deadline and award notices are excluded when this is on.",
            "default": false
          },
          "includeContacts": {
            "title": "Include contracting contacts",
            "type": "boolean",
            "description": "On (default): primary and secondary contact name, title, email, phone and fax as published on the notice. Off: these fields are empty. Contacts are published for questions about the solicitation; don't use them for bulk marketing.",
            "default": true
          },
          "descriptionMaxChars": {
            "title": "Description length limit",
            "minimum": 0,
            "type": "integer",
            "description": "Cut each description to at most this many characters, including the \"…\" that marks the cut (0 = no description). Leave empty for the full text as in the extract."
          },
          "stateName": {
            "title": "State name",
            "type": "string",
            "description": "New since last run and Changes modes remember what they saw under this name, in a named key-value store in your account. Use one name per schedule or filter set.",
            "default": "default"
          },
          "updateState": {
            "title": "Update state",
            "type": "boolean",
            "description": "Off: read the saved state but don't change it (for test runs that shouldn't affect your schedule).",
            "default": true
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many rows. Leave empty for no limit (your maximum cost per run still applies)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}