{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Federal Contract Opportunities Monitor",
    "description": "New US federal contract opportunities from SAM.gov's official public data extract: solicitations, sources sought, presolicitations and award notices with agency, NAICS, PSC, set-aside and deadline. Only-new mode. No contact-person data.",
    "version": "0.1",
    "x-build-id": "zY1bgUTIhRCx2t5Tg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neushua~us-federal-contract-opportunities/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neushua-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/neushua~us-federal-contract-opportunities/runs": {
      "post": {
        "operationId": "runs-sync-neushua-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/neushua~us-federal-contract-opportunities/run-sync": {
      "post": {
        "operationId": "run-sync-neushua-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": {
          "postedFrom": {
            "title": "Posted from",
            "type": "string",
            "description": "ISO date, e.g. 2026-11-20. Empty = 'Days back' before 'Posted to'. This is the date the notice was posted on SAM.gov."
          },
          "postedTo": {
            "title": "Posted to",
            "type": "string",
            "description": "ISO date. Empty = today (UTC). The extract is refreshed once a day, so today's notices usually appear the next day."
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 0,
            "maximum": 90,
            "type": "integer",
            "description": "Used only when 'Posted from' is empty. At most 90 days per run.",
            "default": 7
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Current notice type on SAM.gov. Empty = all types. For open bids pick Solicitation, Combined Synopsis/Solicitation, Presolicitation and Sources Sought.",
            "items": {
              "type": "string",
              "enum": [
                "Solicitation",
                "Combined Synopsis/Solicitation",
                "Presolicitation",
                "Sources Sought",
                "Special Notice",
                "Award Notice",
                "Justification",
                "Intent to Bundle Requirements (DoD-Funded)",
                "Sale of Surplus Property"
              ]
            },
            "default": []
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keep notices whose title, solicitation number or description contains any of these (case-insensitive). The description is searched but not output. Empty = all.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop notices whose title, solicitation number or description contains any of these.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "naicsCodes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "Prefix match, e.g. 5415 keeps 541511, 541512, ... Empty = all.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "pscCodes": {
            "title": "PSC (product/service) codes",
            "type": "array",
            "description": "Prefix match on the classification code, e.g. D3 for IT services or 7030. Empty = all.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "setAsideCodes": {
            "title": "Set-aside codes",
            "type": "array",
            "description": "Keep only these set-asides. Codes: SBA = Total Small Business Set-Aside, SBP = Partial Small Business Set-Aside, 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 = SDVOSB Sole Source, WOSB = Women-Owned Small Business Program Set-Aside, WOSBSS = WOSB Program Sole Source, EDWOSB = Economically Disadvantaged WOSB Program Set-Aside, EDWOSBSS = EDWOSB Program Sole Source, VSA = Veteran-Owned Small Business Set-Aside (VA), VSS = Veteran-Owned Small Business Sole Source (VA), LAS = Local Area Set-Aside, IEE = Indian Economic Enterprise Set-Aside, ISBEE = Indian Small Business Economic Enterprise Set-Aside, BICiv = Buy Indian Set-Aside, NONE = No set aside used.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "agencies": {
            "title": "Agency contains",
            "type": "array",
            "description": "Words matched against department, sub-tier and office, e.g. 'veterans', 'navy', 'army corps'. Empty = all.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "placeOfPerformanceStates": {
            "title": "Place of performance state",
            "type": "array",
            "description": "Two-letter codes. Many notices leave the place of performance empty; those are dropped when this is set.",
            "items": {
              "type": "string",
              "enum": [
                "AK",
                "AL",
                "AR",
                "AS",
                "AZ",
                "CA",
                "CO",
                "CT",
                "DC",
                "DE",
                "FL",
                "GA",
                "GU",
                "HI",
                "IA",
                "ID",
                "IL",
                "IN",
                "KS",
                "KY",
                "LA",
                "MA",
                "MD",
                "ME",
                "MI",
                "MN",
                "MO",
                "MP",
                "MS",
                "MT",
                "NC",
                "ND",
                "NE",
                "NH",
                "NJ",
                "NM",
                "NV",
                "NY",
                "OH",
                "OK",
                "OR",
                "PA",
                "PR",
                "RI",
                "SC",
                "SD",
                "TN",
                "TX",
                "UT",
                "VA",
                "VI",
                "VT",
                "WA",
                "WI",
                "WV",
                "WY"
              ]
            },
            "default": []
          },
          "openOnly": {
            "title": "Only notices still open",
            "type": "boolean",
            "description": "Keep only notices whose response deadline is in the future. Notices without a deadline (most award and special notices) are dropped.",
            "default": false
          },
          "minAwardAmount": {
            "title": "Minimum award amount (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "0 = no minimum. Only award notices carry an amount, so setting this keeps award notices only.",
            "default": 0
          },
          "onlyNew": {
            "title": "Only new since last run",
            "type": "boolean",
            "description": "Returns only notices not delivered in an earlier run under the same monitor name. The first run returns the whole window and seeds the memory, kept in a key-value store in your account named neushua-us-federal-contracts-state.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "Names the saved monitor for 'only new'. Empty = automatic, derived from your filters."
          },
          "maxItems": {
            "title": "Maximum rows",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Newest first. Billing stops at this number. 1 to 20,000.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}