{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Scraper - Federal Contracts & RFP Monitor (No API Key)",
    "description": "Scrape SAM.gov + USASpending for federal RFPs, solicitations, and contract awards. No API key required. AI-ranked by\nrelevance to your business. Filter by NAICS, set-aside, agency, state, value. Attachment URLs included. For govcon BD\nteams, proposal writers, and competitive intelligence.",
    "version": "1.2",
    "x-build-id": "hFEuwORHjM5ZJv8Hc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/omarchydev~government-contract-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-omarchydev-government-contract-monitor",
        "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/omarchydev~government-contract-monitor/runs": {
      "post": {
        "operationId": "runs-sync-omarchydev-government-contract-monitor",
        "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/omarchydev~government-contract-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-omarchydev-government-contract-monitor",
        "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": {
          "business_description": {
            "title": "Your Business Description",
            "type": "string",
            "description": "Describe what your company does (e.g., 'We provide cloud migration and IT modernization services for federal agencies'). Enables AI-powered semantic matching that finds relevant contracts even without exact keyword matches. Also auto-suggests NAICS codes."
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keywords to search for in opportunity titles and descriptions",
            "items": {
              "type": "string"
            }
          },
          "naics_codes": {
            "title": "NAICS Codes",
            "type": "array",
            "description": "NAICS codes to filter opportunities (e.g., 541512 for IT services)",
            "items": {
              "type": "string"
            }
          },
          "psc_codes": {
            "title": "PSC Codes",
            "type": "array",
            "description": "Product Service Codes to filter by",
            "items": {
              "type": "string"
            }
          },
          "set_aside_types": {
            "title": "Set-Aside Types",
            "type": "array",
            "description": "Small business set-aside types (small_business, 8a, hubzone, sdvosb, wosb, edwosb)",
            "items": {
              "type": "string"
            }
          },
          "opportunity_types": {
            "title": "Opportunity Types",
            "type": "array",
            "description": "Types of opportunities to include (presolicitation, solicitation, combined_synopsis, sources_sought, special_notice, award_notice)",
            "items": {
              "type": "string"
            }
          },
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Federal agencies to filter by",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "State codes for place of performance (e.g., VA, MD, DC)",
            "items": {
              "type": "string"
            }
          },
          "min_value": {
            "title": "Minimum Contract Value ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum estimated contract value in USD",
            "default": 0
          },
          "max_value": {
            "title": "Maximum Contract Value ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum estimated contract value in USD (0 = no limit)",
            "default": 0
          },
          "posted_within_days": {
            "title": "Posted Within Days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Only show opportunities posted within this many days",
            "default": 30
          },
          "deadline_within_days": {
            "title": "Deadline Within Days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Only show opportunities with deadlines within this many days",
            "default": 60
          },
          "include_awards": {
            "title": "Include Contract Awards",
            "type": "boolean",
            "description": "Include recent contract awards for competitive intelligence",
            "default": true
          },
          "include_full_description": {
            "title": "Include Full Description",
            "type": "boolean",
            "description": "Include full opportunity description in output",
            "default": true
          },
          "max_results": {
            "title": "Maximum Results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of opportunities to return",
            "default": 100
          },
          "sam_api_key": {
            "title": "SAM.gov API Key",
            "type": "string",
            "description": "SAM.gov API key for richer opportunity data (optional, free at https://api.sam.gov). Without a key, the actor uses USASpending.gov which provides award data but fewer opportunity details."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}