{
  "openapi": "3.0.1",
  "info": {
    "title": "MA, NV, IL State Vendor Registries with Contacts",
    "description": "Every vendor registered with Massachusetts COMMBUYS, Nevada NevadaEPro and Illinois BidBuy: company, status, emails, phones and every address with its contact name. Full, new-vendor and sample runs.",
    "version": "0.14",
    "x-build-id": "1xADVP0cewssjcZPS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/overlookdata~periscope-vendor-registry/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-overlookdata-periscope-vendor-registry",
        "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/overlookdata~periscope-vendor-registry/runs": {
      "post": {
        "operationId": "runs-sync-overlookdata-periscope-vendor-registry",
        "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/overlookdata~periscope-vendor-registry/run-sync": {
      "post": {
        "operationId": "run-sync-overlookdata-periscope-vendor-registry",
        "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": {
          "states": {
            "title": "States",
            "type": "array",
            "description": "Which registries to walk. Leave empty for all. States run one after the other.",
            "items": {
              "type": "string",
              "enum": [
                "MA",
                "NV",
                "IL"
              ],
              "enumTitles": [
                "Massachusetts (COMMBUYS)",
                "Nevada (NevadaEPro)",
                "Illinois (BidBuy)"
              ]
            },
            "default": [
              "MA",
              "NV",
              "IL"
            ]
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "sample",
              "full",
              "delta",
              "range"
            ],
            "type": "string",
            "description": "sample: the newest vendors first, stopping after the sample size per state (minutes). full: every vendor id from the lowest to the highest, plus the Massachusetts legacy ids (about 21 hours for Massachusetts, 8 for Nevada and 13 for Illinois at the default pace; resumable). delta: only ids above the highest one a previous full or delta run found in this account, which is how new registrations are picked up. range: the ids between Id from and Id to.",
            "default": "sample"
          },
          "sampleSize": {
            "title": "Sample size",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Sample mode only: stop after this many vendors per state, walking down from the top of the known id range (newest first).",
            "default": 100
          },
          "idFrom": {
            "title": "Id from",
            "type": "string",
            "description": "Range mode only, inclusive, in the portal's own id format: 00040000 for COMMBUYS (8 digits, zero padded), VEN20000 for NevadaEPro or V00020000 for BidBuy, V plus 8 digits. A range applies only to the state whose format it matches, so one run covers one state's range."
          },
          "idTo": {
            "title": "Id to",
            "type": "string",
            "description": "Range mode only, inclusive, same format as Id from."
          },
          "includeInactive": {
            "title": "Include Inactive vendors",
            "type": "boolean",
            "description": "The portals keep Inactive vendors on file and show their profiles. On by default, with the status in every row. Turn off to output Active vendors only; Inactive ones are still counted in the verification record.",
            "default": true
          },
          "includeLegacyIds": {
            "title": "Include Massachusetts legacy ids",
            "type": "boolean",
            "description": "Full mode, Massachusetts only: also walk the 1,005 vendors that carry older unpadded ids (for example 5072, a different vendor from 00005072).",
            "default": true
          },
          "includeContracts": {
            "title": "Include contracts",
            "type": "boolean",
            "description": "Fetch each vendor's contracts tab (\"Blankets\" on COMMBUYS and BidBuy) as well. This adds at least one request for every vendor found (one more for each further 25 contracts), so runs take longer.",
            "default": false
          },
          "stopAfterMisses": {
            "title": "Stop after missing ids",
            "minimum": 100,
            "maximum": 5000,
            "type": "integer",
            "description": "Full and delta modes: the walk ends after this many consecutive ids with no vendor, once it is past the highest id known when this version shipped. Ids get sparse near the top (runs of 575 missing ids were measured), so values below 600 risk stopping early.",
            "default": 600
          },
          "expectedActiveCount": {
            "title": "Reference Active counts",
            "type": "object",
            "description": "The number of Active vendors each portal's own search reported. The MA and NV counts are from 2026-10-07 and the Illinois count from 2026-11-09. The run compares its Active count with these and writes the difference to the VERIFICATION record. They are reference values, not live counts; update them if you check the search yourself.",
            "default": {
              "MA": 60165,
              "NV": 21991,
              "IL": 39236
            }
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 250,
            "maximum": 5000,
            "type": "integer",
            "description": "Minimum time between the starts of two requests. The default of 500 ms keeps one worker at no more than two requests per second, the rate that was tested against COMMBUYS and NevadaEPro.",
            "default": 500
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 2,
            "type": "integer",
            "description": "Parallel workers per state. 2 doubles the request rate beyond what was tested; leave it at 1 unless you need the time.",
            "default": 1
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}