{
  "openapi": "3.0.1",
  "info": {
    "title": "BidNetDirect Scraper",
    "description": "[💰 $10.00 / 1K] Collect US government bids, RFPs, and solicitations from BidNetDirect. Search by keyword, filter by status, location, category, and agency, or paste listing URLs.",
    "version": "1.0",
    "x-build-id": "yZZhy4OtsHigjOV5v"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/solidcode~bidnetdirect-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-solidcode-bidnetdirect-scraper",
        "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/solidcode~bidnetdirect-scraper/runs": {
      "post": {
        "operationId": "runs-sync-solidcode-bidnetdirect-scraper",
        "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/solidcode~bidnetdirect-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-solidcode-bidnetdirect-scraper",
        "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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words or phrases to search bid titles and descriptions (e.g. \"road construction\", \"IT services\"). Each keyword is searched separately and the results are merged and de-duplicated. Leave blank to collect the full bid feed for your chosen filters.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs (optional)",
            "type": "array",
            "description": "Paste one or more BidNetDirect search or listing URLs to scrape exactly those pages, instead of (or in addition to) building a search above. Useful when you already have a saved search on the site.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "bidStatus": {
            "title": "Bid status",
            "enum": [
              "open",
              "closed",
              "all"
            ],
            "type": "string",
            "description": "Whether to collect open (still accepting bids), closed (past deadline), or all solicitations.",
            "default": "open"
          },
          "location": {
            "title": "Location (US state)",
            "enum": [
              "",
              "19",
              "25",
              "31",
              "37",
              "43",
              "49",
              "55",
              "61",
              "67",
              "73",
              "79",
              "85",
              "91",
              "97",
              "103",
              "109",
              "115",
              "121",
              "127",
              "133",
              "139",
              "145",
              "151",
              "157",
              "163",
              "169",
              "175",
              "181",
              "187",
              "193",
              "199",
              "205",
              "211",
              "217",
              "223",
              "229",
              "235",
              "241",
              "247",
              "253",
              "259",
              "265",
              "271",
              "277",
              "283",
              "289",
              "295",
              "301",
              "307",
              "313",
              "319",
              "24000",
              "40952",
              "24006",
              "20178",
              "24011"
            ],
            "type": "string",
            "description": "Limit results to bids in a specific US state. Leave as \"All locations\" to collect nationwide.",
            "default": ""
          },
          "categoryCodes": {
            "title": "Category codes (optional)",
            "type": "array",
            "description": "Optional category codes to narrow results by commodity or service type. Use a BidNetDirect category code such as 320204 (Construction), 321609 (Professional, Scientific & Technical Services), 321393 (Information / IT), or 321836 (Health Care & Social Assistance). Leave blank to include all categories.",
            "items": {
              "type": "string"
            }
          },
          "agencyType": {
            "title": "Agency type",
            "enum": [
              "",
              "2085061601",
              "2085061651",
              "2125256051"
            ],
            "type": "string",
            "description": "Limit results to solicitations issued by a particular kind of government agency. Leave as \"All agencies\" to include every type.",
            "default": ""
          },
          "publishedWithin": {
            "title": "Published within",
            "enum": [
              "",
              "HOURS_24",
              "WEEK_1"
            ],
            "type": "string",
            "description": "Only collect bids published within a recent time window. Leave as \"Any time\" for no date restriction.",
            "default": ""
          },
          "sortBy": {
            "title": "Sort results by",
            "enum": [
              "publishedDesc",
              "publishedAsc",
              "closingAsc",
              "closingDesc"
            ],
            "type": "string",
            "description": "Order in which bids are collected.",
            "default": "publishedDesc"
          },
          "includeDetails": {
            "title": "Include full bid details",
            "type": "boolean",
            "description": "Fetch each bid's detail page to capture the exact publication and closing date and time (with time zone) plus the bid's summary overview when available. Turn this off for faster runs that return only listing-level summary data.",
            "default": true
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "How many bids to collect across all keywords and URLs. Default 100 - increase for bigger runs, or set to 0 to collect as many as possible. Results are capped to roughly the number you ask for.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}