{
  "openapi": "3.0.1",
  "info": {
    "title": "US Minority, Women & DBE Certified Business Leads Scraper",
    "description": "Scrape minority-, women-, veteran- & disadvantaged-owned (MBE/WBE/DBE/SDVOSB/SBE) certified businesses from official state & city supplier-diversity registries: company, owner, phone, email, website, certifications, NAICS, certifying agency + lead score. Filter by state, certification & ownership.",
    "version": "0.1",
    "x-build-id": "RIfSzronPHRIBeyYT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~diversity-certified-business-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-diversity-certified-business-leads",
        "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/scrapesage~diversity-certified-business-leads/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-diversity-certified-business-leads",
        "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/scrapesage~diversity-certified-business-leads/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-diversity-certified-business-leads",
        "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 (registries)",
            "uniqueItems": true,
            "type": "array",
            "description": "Limit to these supplier-diversity registries by key. Leave empty for ALL. Available: wa-omwbe (Washington OMWBE/WEBS), nyc-mwbe (NYC SBS M/WBE), ny-dbe (New York State UCP DBE), de-osd (Delaware Office of Supplier Diversity), de-sbf (Delaware Small Business Focus), nola-dbe (New Orleans DBE), va-norfolk-swam (Norfolk SWaM/DBE), oh-cincinnati (Cincinnati MBE/WBE/SBE), tx-austin-sbe (Austin SBE), il-chicago-vbe (Chicago Veteran-Owned).",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "States (business location)",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only businesses located in these US states (2-letter codes, e.g. [\"NY\",\"WA\",\"TX\"]). Applied to each business's own address. Pushed to the source server-side where the registry publishes a state field. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "certificationTypes": {
            "title": "Certification types",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only businesses holding at least one of these certifications. Allowed (case-insensitive): MBE, WBE, MWBE, DBE, ACDBE, SDVOSB, VOSB, DVBE, SBE, MICRO, EBE, LBE, HUB, SWaM, 8A. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "minorityOwnedOnly": {
            "title": "Minority-owned only",
            "type": "boolean",
            "description": "Keep only minority-owned businesses (MBE / minority ethnicity).",
            "default": false
          },
          "womanOwnedOnly": {
            "title": "Woman-owned only",
            "type": "boolean",
            "description": "Keep only women-owned businesses (WBE / female owner).",
            "default": false
          },
          "veteranOwnedOnly": {
            "title": "Veteran-owned only",
            "type": "boolean",
            "description": "Keep only veteran-owned businesses (VOSB / SDVOSB / DVBE).",
            "default": false
          },
          "disadvantagedOnly": {
            "title": "Disadvantaged (DBE) only",
            "type": "boolean",
            "description": "Keep only DBE / ACDBE / 8(a) disadvantaged business enterprises — the certifications primes need for DOT & federally-funded projects.",
            "default": false
          },
          "smallBusinessOnly": {
            "title": "Small business only",
            "type": "boolean",
            "description": "Keep only businesses with a small-business / micro certification.",
            "default": false
          },
          "ethnicities": {
            "title": "Owner ethnicities",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only businesses whose owner ethnicity matches (case-insensitive contains), e.g. [\"Black\",\"Hispanic\",\"Asian\",\"Native American\"]. Only some registries publish ethnicity.",
            "items": {
              "type": "string"
            }
          },
          "naicsCodes": {
            "title": "NAICS codes",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only businesses with at least one of these exact NAICS codes (e.g. [\"541330\",\"236220\"]).",
            "items": {
              "type": "string"
            }
          },
          "naicsPrefix": {
            "title": "NAICS prefix",
            "type": "string",
            "description": "Keep only businesses with a NAICS code starting with this prefix (e.g. \"23\" for construction, \"541\" for professional services)."
          },
          "keyword": {
            "title": "Keyword (name / description)",
            "type": "string",
            "description": "Keep only businesses whose name, DBA, description, category or commodity codes contain this text (case-insensitive). Also narrows the source query server-side."
          },
          "cityQuery": {
            "title": "City contains",
            "type": "string",
            "description": "Keep only businesses whose city contains this text (case-insensitive)."
          },
          "withEmailOnly": {
            "title": "With email only",
            "type": "boolean",
            "description": "Keep only businesses that have an email address.",
            "default": false
          },
          "withPhoneOnly": {
            "title": "With phone only",
            "type": "boolean",
            "description": "Keep only businesses that have a phone number.",
            "default": false
          },
          "withWebsiteOnly": {
            "title": "With website only",
            "type": "boolean",
            "description": "Keep only businesses that have a website.",
            "default": false
          },
          "withContactNameOnly": {
            "title": "With named owner/contact only",
            "type": "boolean",
            "description": "Keep only businesses that list a named owner or primary contact.",
            "default": false
          },
          "certExpiringWithinDays": {
            "title": "Certification expiring within N days",
            "minimum": 1,
            "type": "integer",
            "description": "Keep only businesses whose certification expires within the next N days — a re-certification timing signal (only registries that publish an expiration date). Leave empty to disable."
          },
          "minLeadScore": {
            "title": "Minimum lead score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep only businesses with a lead score at or above this value (0-100)."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "leadScore",
              "expiringSoon",
              "name",
              "source"
            ],
            "type": "string",
            "description": "Order of the output.",
            "default": "leadScore"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of records to return.",
            "default": 1000
          },
          "maxResultsPerSource": {
            "title": "Max results per source",
            "minimum": 1,
            "type": "integer",
            "description": "Optional cap on how many records each registry contributes (keeps a large registry from dominating). Leave empty for no per-source cap."
          },
          "maxScanRowsPerSource": {
            "title": "Max scan rows per source",
            "minimum": 100,
            "type": "integer",
            "description": "Safety cap on how many raw rows to read from each registry (the Washington registry alone has 100k+ commodity rows). Default 60000.",
            "default": 60000
          },
          "deduplicateResults": {
            "title": "Deduplicate",
            "type": "boolean",
            "description": "Drop duplicate businesses that share the same name, state and certification number.",
            "default": true
          },
          "includeRawFields": {
            "title": "Include raw source fields",
            "type": "boolean",
            "description": "Attach the raw source row (all original registry columns) under sourceFields on each record.",
            "default": true
          },
          "monitorMode": {
            "title": "Monitoring mode (only new / changed)",
            "type": "boolean",
            "description": "Only return businesses that are new or whose certifications, expiration, status or contact changed since the last run with the same monitor key. Ideal on a Schedule to catch newly-certified diverse suppliers as fresh leads.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Namespace for monitoring mode so independent monitors don't collide. Use a distinct key per saved configuration.",
            "default": "default"
          },
          "socrataAppToken": {
            "title": "Socrata app token (optional)",
            "type": "string",
            "description": "Optional Socrata app token (X-App-Token) for higher rate limits. Not required — these public registries work without one."
          },
          "pageSize": {
            "title": "Page size",
            "minimum": 100,
            "maximum": 5000,
            "type": "integer",
            "description": "Rows fetched per request from each registry (100-5000).",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. These are public government open-data registries and usually need no proxy, so leave this off for the fastest queries.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}