{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Amendment & Opportunity Change Tracker",
    "description": "Track what changed in SAM.gov contract opportunities: amendments, response deadline moves, new or removed attachments, set-aside, NAICS, place of performance and cancellations. For government contractors and bid teams. Returns each change with before, after and a plain-English impact note.",
    "version": "0.1",
    "x-build-id": "vJ0zfNDrgyqyeXCb8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ultimatemc~sam-gov-opportunity-change-detector/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ultimatemc-sam-gov-opportunity-change-detector",
        "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/ultimatemc~sam-gov-opportunity-change-detector/runs": {
      "post": {
        "operationId": "runs-sync-ultimatemc-sam-gov-opportunity-change-detector",
        "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/ultimatemc~sam-gov-opportunity-change-detector/run-sync": {
      "post": {
        "operationId": "run-sync-ultimatemc-sam-gov-opportunity-change-detector",
        "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": {
          "noticeIds": {
            "title": "SAM.gov notice IDs or URLs",
            "type": "array",
            "description": "Notice IDs (the 32-character code in the URL) or full links like https://sam.gov/opp/<id>/view. Any version of a notice works; the whole amendment history is checked. The prefill has two real notices; replace them with yours.",
            "items": {
              "type": "string"
            }
          },
          "solicitationNumbers": {
            "title": "Solicitation numbers",
            "type": "array",
            "description": "Solicitation / notice numbers such as W9127826RA005. Spaces and dashes don't matter. If several notices share the number (for example a presolicitation and the solicitation), each one is returned.",
            "items": {
              "type": "string"
            }
          },
          "searchKeywords": {
            "title": "Search: keywords",
            "type": "string",
            "description": "Find recently amended opportunities by keyword (e.g. \"janitorial\"). Combine with NAICS, set-aside and notice type. Leave all search fields empty to check only the notices listed above."
          },
          "naics": {
            "title": "Search: NAICS codes",
            "type": "array",
            "description": "Primary NAICS codes, e.g. 561720.",
            "items": {
              "type": "string"
            }
          },
          "setAside": {
            "title": "Search: set-aside",
            "type": "array",
            "description": "Only opportunities with these set-asides.",
            "items": {
              "type": "string",
              "enum": [
                "SBA",
                "SBP",
                "8A",
                "8AN",
                "HZC",
                "HZS",
                "SDVOSBC",
                "SDVOSBS",
                "WOSB",
                "WOSBSS",
                "EDWOSB",
                "EDWOSBSS",
                "LAS",
                "IEE",
                "ISBEE",
                "BICiv",
                "VSA",
                "VSS"
              ],
              "enumTitles": [
                "Total Small Business",
                "Partial Small Business",
                "8(a) Set-Aside",
                "8(a) Sole Source",
                "HUBZone Set-Aside",
                "HUBZone Sole Source",
                "SDVOSB Set-Aside",
                "SDVOSB Sole Source",
                "WOSB Set-Aside",
                "WOSB Sole Source",
                "EDWOSB Set-Aside",
                "EDWOSB Sole Source",
                "Local Area Set-Aside",
                "Indian Economic Enterprise",
                "Indian Small Business Economic Enterprise",
                "Buy Indian",
                "Veteran-Owned Small Business (VA)",
                "Veteran-Owned Sole Source (VA)"
              ]
            }
          },
          "noticeTypes": {
            "title": "Search: notice types",
            "type": "array",
            "description": "Only these notice types.",
            "items": {
              "type": "string",
              "enum": [
                "o",
                "k",
                "p",
                "r",
                "s",
                "a",
                "i",
                "u",
                "g"
              ],
              "enumTitles": [
                "Solicitation",
                "Combined Synopsis/Solicitation",
                "Presolicitation",
                "Sources Sought",
                "Special Notice",
                "Award Notice",
                "Intent to Bundle",
                "Justification",
                "Sale of Surplus Property"
              ]
            }
          },
          "modifiedWithinDays": {
            "title": "Search: modified within (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Search only opportunities updated in the last N days. Use 1 on a daily schedule.",
            "default": 7
          },
          "onlyWithAmendments": {
            "title": "Search: only amended opportunities",
            "type": "boolean",
            "description": "In search mode, skip opportunities that have never been modified.",
            "default": true
          },
          "maxOpportunities": {
            "title": "Search: max opportunities",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum opportunities to analyze from the search.",
            "default": 25
          },
          "changesWithinDays": {
            "title": "Only changes from the last N days (optional)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Report only changes posted in the last N days, e.g. 1 for a daily alert. Leave empty for the full history."
          },
          "changesSinceDate": {
            "title": "Only changes since date (optional)",
            "type": "string",
            "description": "Report only changes posted on or after this date (YYYY-MM-DD). Overrides the field above."
          },
          "minSeverity": {
            "title": "Minimum impact",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "type": "string",
            "description": "Hide lower-impact changes. 'medium' drops archive-date, PSC and small wording changes.",
            "default": "low"
          },
          "onlyWithChanges": {
            "title": "Only output opportunities with changes",
            "type": "boolean",
            "description": "Skip opportunities with no reported changes (you aren't charged for skipped ones). Useful with scheduled runs.",
            "default": false
          },
          "maxVersions": {
            "title": "Max versions per opportunity",
            "minimum": 2,
            "maximum": 60,
            "type": "integer",
            "description": "Compare at most this many of the most recent versions of each notice.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}