{
  "openapi": "3.0.1",
  "info": {
    "title": "BidNet Direct Solicitations Fast API",
    "description": "High-speed public procurement extractor for BidNet Direct open and closed US government solicitations (Federal, State & Local, Member Agency). Lightweight HTTP engine with ISO-8601 timestamps, NAICS/state filters, keyword post-filtering, and strict zero-PII output.",
    "version": "0.1",
    "x-build-id": "2By7Fbb7hiueaX0xP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/abelfeed~bidnetdirect-solicitations-fast-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-abelfeed-bidnetdirect-solicitations-fast-api",
        "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/abelfeed~bidnetdirect-solicitations-fast-api/runs": {
      "post": {
        "operationId": "runs-sync-abelfeed-bidnetdirect-solicitations-fast-api",
        "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/abelfeed~bidnetdirect-solicitations-fast-api/run-sync": {
      "post": {
        "operationId": "run-sync-abelfeed-bidnetdirect-solicitations-fast-api",
        "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": {
          "status": {
            "title": "Solicitation Status",
            "enum": [
              "open",
              "closed"
            ],
            "type": "string",
            "description": "Extract currently open solicitations or recently closed solicitations (closed bids often expose public issuing organization, description, and originating portal URL).",
            "default": "open"
          },
          "keywords": {
            "title": "Search Keywords",
            "type": "string",
            "description": "Optional full-text query passed to BidNet Direct search (e.g., 'cybersecurity', 'construction', 'solar'). Leave empty for all solicitations.",
            "default": ""
          },
          "location": {
            "title": "US State / Territory",
            "enum": [
              "",
              "19",
              "25",
              "24000",
              "31",
              "37",
              "43",
              "49",
              "55",
              "61",
              "67",
              "73",
              "79",
              "40952",
              "85",
              "91",
              "97",
              "103",
              "109",
              "115",
              "121",
              "127",
              "133",
              "139",
              "145",
              "151",
              "157",
              "163",
              "169",
              "175",
              "181",
              "187",
              "193",
              "199",
              "205",
              "211",
              "217",
              "223",
              "24006",
              "110000",
              "229",
              "235",
              "241",
              "247",
              "20178",
              "253",
              "259",
              "265",
              "271",
              "277",
              "24011",
              "283",
              "289",
              "295",
              "301",
              "307",
              "313",
              "319"
            ],
            "type": "string",
            "description": "Filter by US state or territory (accepts dropdown value, state name, or numeric BidNet location ID).",
            "default": ""
          },
          "category": {
            "title": "Industry Category (NAICS)",
            "enum": [
              "",
              "321989",
              "321711",
              "320000",
              "321928",
              "320204",
              "321798",
              "321467",
              "321836",
              "321393",
              "321704",
              "320277",
              "320131",
              "322023",
              "321609",
              "322121",
              "321556",
              "321090",
              "321253",
              "320179",
              "320925"
            ],
            "type": "string",
            "description": "Filter by industry sector (accepts dropdown value, category name, or numeric BidNet category ID).",
            "default": ""
          },
          "bidScope": {
            "title": "Bid Scope",
            "enum": [
              "all",
              "member_agency",
              "state_local",
              "federal"
            ],
            "type": "string",
            "description": "Filter by BidNet solicitation scope.",
            "default": "all"
          },
          "publishDate": {
            "title": "Publication Window",
            "enum": [
              "all",
              "HOURS_24",
              "WEEK_1"
            ],
            "type": "string",
            "description": "Restrict results to solicitations published within the last 24 hours or last 7 days.",
            "default": "all"
          },
          "sortBy": {
            "title": "Sort Order",
            "enum": [
              "default",
              "publicationDateDesc",
              "publicationDateAsc",
              "closingDateAsc",
              "closingDateDesc",
              "noticeTitleAsc",
              "noticeTitleDesc",
              "regionAsc",
              "regionDesc"
            ],
            "type": "string",
            "description": "Server-side sorting of solicitation listings.",
            "default": "publicationDateDesc"
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of solicitations to return (BidNet Direct exposes up to 400 pages / 10,000 results per query).",
            "default": 25
          },
          "includeDetails": {
            "title": "Enrich With Detail Pages",
            "type": "boolean",
            "description": "Fetch each solicitation detail page to extract exact publication/closing ISO-8601 timestamps with timezone, locked field list, and (when publicly available, e.g. closed bids) issuing organization, description, solicitation number, and source portal URL.",
            "default": true
          },
          "mustIncludeKeywords": {
            "title": "Must Include Keywords (Post-Filter)",
            "type": "array",
            "description": "Optional case-insensitive keywords: keep only solicitations whose title or description contains at least one of these terms. Filtered BEFORE dataset push so you never pay for irrelevant matches.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "excludeKeywords": {
            "title": "Exclude Keywords (Post-Filter)",
            "type": "array",
            "description": "Optional case-insensitive keywords: drop solicitations whose title or description contains any of these terms BEFORE dataset push.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "detailConcurrency": {
            "title": "Detail Page Concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Parallel HTTP requests used when includeDetails is enabled (1-10).",
            "default": 6
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Defaults to Apify Datacenter Proxy on Cloud (with automatic Residential fallback on 403/429).",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}