{
  "openapi": "3.0.1",
  "info": {
    "title": "Government Bids & RFP Scraper — US Procurement, Grants, E-Rate",
    "description": "Open government bids, RFPs, solicitations and grants from official APIs: NYC City Record, LA RAMP, Delaware, Montgomery County MD, Illinois CDB, Baton Rouge, E-Rate Form 470, Grants.gov and optional SAM.gov. One normalized feed with deadlines and links. Daily alerts. $4 per 1,000 notices.",
    "version": "1.0",
    "x-build-id": "gjEeID0F1e5fPaAUZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/opendatafrontierlab~us-public-bids/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-opendatafrontierlab-us-public-bids",
        "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/opendatafrontierlab~us-public-bids/runs": {
      "post": {
        "operationId": "runs-sync-opendatafrontierlab-us-public-bids",
        "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/opendatafrontierlab~us-public-bids/run-sync": {
      "post": {
        "operationId": "run-sync-opendatafrontierlab-us-public-bids",
        "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": "Official sources to query. Use keys like 'nyc-city-record', 'los-angeles-ramp', 'erate-form-470', 'grants-gov', or 'all'. 'sam-gov' runs only when you add a SAM.gov API key.",
            "items": {
              "type": "string",
              "enum": [
                "los-angeles-ramp",
                "delaware-state",
                "montgomery-county-md",
                "nyc-city-record",
                "illinois-cdb",
                "baton-rouge-la",
                "erate-form-470",
                "grants-gov",
                "sam-gov",
                "all"
              ],
              "enumTitles": [
                "City of Los Angeles — RAMP open bids",
                "State of Delaware — open bids (MyMarketplace)",
                "Montgomery County, MD — solicitations",
                "New York City — City Record Online (procurement)",
                "State of Illinois — Capital Development Board future solicitations",
                "City of Baton Rouge / East Baton Rouge Parish — bid openings",
                "E-Rate (USAC/FCC) — Form 470 school & library tech bids",
                "Grants.gov — federal grant opportunities (no key)",
                "SAM.gov — federal contract opportunities (needs your free API key)",
                "All sources"
              ]
            },
            "default": [
              "los-angeles-ramp",
              "delaware-state",
              "montgomery-county-md",
              "nyc-city-record",
              "illinois-cdb",
              "baton-rouge-la",
              "erate-form-470",
              "grants-gov"
            ]
          },
          "daysBack": {
            "title": "Posted in the last N days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Return notices posted in the last N days (e.g. 1 for daily alerts). Ignored when 'Posted since' is set. Sources without a posting date (Illinois CDB, Baton Rouge) return all upcoming items.",
            "default": 14
          },
          "postedSince": {
            "title": "Posted since (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional absolute start date, format YYYY-MM-DD (e.g. 2026-10-01). Overrides 'Posted in the last N days'."
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Optional full-text filter sent to each source, e.g. 'software', 'cybersecurity', 'HVAC', 'paving', 'fiber', 'janitorial'. One word or phrase."
          },
          "openOnly": {
            "title": "Only open (due date not passed)",
            "type": "boolean",
            "description": "Drop solicitations whose due date is already past.",
            "default": true
          },
          "includeAwards": {
            "title": "Include award notices",
            "type": "boolean",
            "description": "Include contract-award notices (NYC City Record, SAM.gov) with awardee business name and amount — useful for competitive intelligence.",
            "default": false
          },
          "maxItemsPerSource": {
            "title": "Max notices per source",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Cap per source (newest first).",
            "default": 300
          },
          "maxItems": {
            "title": "Max notices total",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum notices across all sources. You are charged $0.004 per notice returned, so this is your spending cap.",
            "default": 2000
          },
          "onlyNewSinceLastRun": {
            "title": "Only new since last run",
            "type": "boolean",
            "description": "Skip notices returned by previous runs — ideal for scheduled daily alerts.",
            "default": false
          },
          "samGovApiKey": {
            "title": "SAM.gov API key (optional)",
            "type": "string",
            "description": "Free key from your SAM.gov account (Account Details → Public API Key). Required only for the sam-gov source."
          },
          "includeDescriptions": {
            "title": "Include free-text descriptions",
            "type": "boolean",
            "description": "Agency-written notice text. E-mail addresses and phone numbers are automatically redacted; turn off to drop free text entirely.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}