{
  "openapi": "3.0.1",
  "info": {
    "title": "Gov Opportunities Watch: SAM.gov Contracts & Grants.gov",
    "description": "New US federal contract bids (SAM.gov) and grants (Grants.gov) in one clean feed, with a new-since-last-run mode for daily alerts. Official APIs; bring your own free SAM.gov key.",
    "version": "0.1",
    "x-build-id": "dZQ7pHyWIBv9ntHje"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/volutiontech~gov-opportunities-watch/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-volutiontech-gov-opportunities-watch",
        "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/volutiontech~gov-opportunities-watch/runs": {
      "post": {
        "operationId": "runs-sync-volutiontech-gov-opportunities-watch",
        "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/volutiontech~gov-opportunities-watch/run-sync": {
      "post": {
        "operationId": "run-sync-volutiontech-gov-opportunities-watch",
        "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": {
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Where to look: sam (federal contract opportunities, needs your SAM.gov API key) and grants (Grants.gov grant opportunities, no key).",
            "items": {
              "type": "string",
              "enum": [
                "sam",
                "grants"
              ],
              "enumTitles": [
                "SAM.gov contract opportunities",
                "Grants.gov grant opportunities"
              ]
            },
            "default": [
              "sam",
              "grants"
            ]
          },
          "samApiKey": {
            "title": "SAM.gov API key",
            "type": "string",
            "description": "Your own free SAM.gov API key (SAM.gov account, Account Details, API Key). It is only sent to api.sam.gov and is never saved or logged. Not needed for Grants.gov only."
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "One search per keyword. SAM.gov matches the notice title; Grants.gov matches title and description. Empty means everything in the date range. Up to 20.",
            "items": {
              "type": "string"
            }
          },
          "naicsCodes": {
            "title": "NAICS codes (SAM.gov)",
            "type": "array",
            "description": "2 to 6 digit NAICS codes, for example 541512 (computer systems design) or 238220. One search per code (and keyword). SAM.gov only.",
            "items": {
              "type": "string"
            }
          },
          "agencies": {
            "title": "Agency contains",
            "type": "array",
            "description": "Keep only opportunities whose agency name contains one of these words, for example Army, Veterans, Health, NASA. Not case-sensitive.",
            "items": {
              "type": "string"
            }
          },
          "setAsides": {
            "title": "Set-aside codes (SAM.gov)",
            "type": "array",
            "description": "SAM.gov set-aside codes, for example SBA (small business), 8A, HZC (HUBZone), SDVOSBC (service-disabled veteran), WOSB, EDWOSB. Several are matched after the search.",
            "items": {
              "type": "string"
            }
          },
          "noticeTypes": {
            "title": "Notice types (SAM.gov)",
            "type": "array",
            "description": "Keep only these kinds of SAM.gov notices. Empty means all.",
            "items": {
              "type": "string",
              "enum": [
                "solicitation",
                "presolicitation",
                "combined-synopsis-solicitation",
                "sources-sought",
                "special-notice",
                "award-notice",
                "justification",
                "sale-of-surplus-property",
                "intent-to-bundle"
              ],
              "enumTitles": [
                "Solicitation",
                "Presolicitation",
                "Combined synopsis/solicitation",
                "Sources sought",
                "Special notice",
                "Award notice",
                "Justification",
                "Sale of surplus property",
                "Intent to bundle"
              ]
            }
          },
          "states": {
            "title": "Place of performance states (SAM.gov)",
            "type": "array",
            "description": "Two-letter state codes, for example VA, TX, DC.",
            "items": {
              "type": "string"
            }
          },
          "grantStatuses": {
            "title": "Grant statuses (Grants.gov)",
            "type": "array",
            "description": "Which grant opportunities to include.",
            "items": {
              "type": "string",
              "enum": [
                "posted",
                "forecasted",
                "closed",
                "archived"
              ]
            },
            "default": [
              "posted",
              "forecasted"
            ]
          },
          "postedWithinDays": {
            "title": "Posted within the last (days)",
            "minimum": 1,
            "maximum": 360,
            "type": "integer",
            "description": "Only opportunities posted in this window. 1 to 360.",
            "default": 7
          },
          "closingWithinDays": {
            "title": "Deadline within (days, optional)",
            "minimum": 1,
            "type": "integer",
            "description": "Keep only opportunities whose response deadline is within this many days. Opportunities without a deadline are kept. Leave empty for no limit."
          },
          "hideExpired": {
            "title": "Hide expired",
            "type": "boolean",
            "description": "Drop opportunities whose deadline has already passed.",
            "default": true
          },
          "onlyNew": {
            "title": "Only new since last run",
            "type": "boolean",
            "description": "For scheduled runs: return (and pay for) only opportunities not returned by an earlier run of the same search. The first run of a search returns everything and flags nothing as new.",
            "default": false
          },
          "maxResults": {
            "title": "Max results per search",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Upper bound per keyword/NAICS search and source. Also limits your cost.",
            "default": 200
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}