{
  "openapi": "3.0.1",
  "info": {
    "title": "US Diverse Supplier Leads Scraper - MBE, WBE, DBE & Veteran",
    "description": "Scrape official state & city supplier-diversity directories for certified MBE, WBE, DBE, SBE, Veteran-Owned & Service-Disabled-Veteran-Owned businesses. Company, contact name, phone, email, website, NAICS/NIGP codes, certification type & expiry, lead score. Filters + monitoring, keyless, no browser.",
    "version": "0.1",
    "x-build-id": "77KS5zDlLJjCcY6QF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~us-diverse-supplier-leads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-us-diverse-supplier-leads-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/scrapesage~us-diverse-supplier-leads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-us-diverse-supplier-leads-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/scrapesage~us-diverse-supplier-leads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-us-diverse-supplier-leads-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": {
          "states": {
            "title": "States / programs",
            "type": "array",
            "description": "Which official supplier-diversity programs to query. <b>NY</b> = NYC SBS certified M/WBE, EBE &amp; LBE firms (refreshed every 2 weeks) + the NY State UCP DBE directory (archive, last published 2016) + NYC's self-reported veteran-owned directory (archive, 2022); <b>NJ</b> = NJSAVI (SBE, MBE, WBE, VOB, DVOB, LGBTQ+, SEDB; daily); <b>DE</b> = Delaware Office of Supplier Diversity + Small Business Focus (daily); <b>LA</b> = New Orleans DBE directory (archive, 2019); <b>VA</b> = Virginia SWaM firms in Norfolk (with expiry dates); <b>OH</b> = Cincinnati MBE/WBE/SBE; <b>TX</b> = Austin SBE fiscal-year roster; <b>IL</b> = Cook County veteran-owned (archive, 2018, all expired). Leave empty for ALL programs.",
            "items": {
              "type": "string",
              "enum": [
                "NY",
                "NJ",
                "DE",
                "LA",
                "VA",
                "OH",
                "TX",
                "IL"
              ],
              "enumTitles": [
                "New York (NYC SBS M/WBE + NY State DBE archive + NYC veteran directory)",
                "New Jersey (NJSAVI)",
                "Delaware (Office of Supplier Diversity + Small Business Focus)",
                "Louisiana (New Orleans DBE, archive)",
                "Virginia (SWaM / DBE firms in Norfolk)",
                "Ohio (Cincinnati MBE / WBE / SBE)",
                "Texas (Austin SBE, fiscal-year roster)",
                "Illinois (Cook County veteran-owned, archive)"
              ]
            },
            "default": []
          },
          "certificationTypes": {
            "title": "Certification types",
            "type": "array",
            "description": "Filter by certification category, normalized across every program (each record also keeps the program's own labels in <code>certificationsRaw</code>). Leave empty for ALL. <code>MBE</code> minority-owned · <code>WBE</code> women-owned · <code>DBE</code> disadvantaged (federal DBE and state/local disadvantaged programs) · <code>ACDBE</code> airport-concession DBE · <code>SBE</code> small business · <code>VBE</code> veteran-owned · <code>SDVBE</code> service-disabled-veteran-owned · <code>LBE</code> local · <code>EBE</code> emerging · <code>LGBTBE</code> LGBTQ+-owned (New Jersey) · <code>DOBE</code> disability-owned (Delaware).",
            "items": {
              "type": "string",
              "enum": [
                "MBE",
                "WBE",
                "DBE",
                "ACDBE",
                "SBE",
                "VBE",
                "SDVBE",
                "LBE",
                "EBE",
                "LGBTBE",
                "DOBE"
              ],
              "enumTitles": [
                "MBE - Minority-Owned",
                "WBE - Women-Owned",
                "DBE - Disadvantaged Business Enterprise",
                "ACDBE - Airport Concession DBE",
                "SBE - Small Business Enterprise",
                "VBE - Veteran-Owned",
                "SDVBE - Service-Disabled Veteran-Owned",
                "LBE - Local Business Enterprise",
                "EBE - Emerging Business Enterprise",
                "LGBTBE - LGBTQ+-Owned",
                "DOBE - Disability-Owned"
              ]
            },
            "default": []
          },
          "naicsCodes": {
            "title": "NAICS codes (exact or prefix)",
            "type": "array",
            "description": "Filter by NAICS industry code - <code>23</code> matches all construction (23xxxx), <code>238220</code> matches plumbing/HVAC contractors only. Programs that publish NAICS: NYC SBS, Delaware, NY State DBE and some Norfolk firms; the others are not searched when this is set.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Free-text match (case-insensitive) across business name and whatever the program publishes about the work: description, industry, commodity codes or NAICS title. e.g. <code>construction</code>, <code>IT services</code>, <code>catering</code>, <code>trucking</code>."
          },
          "nameQuery": {
            "title": "Business name contains",
            "type": "string",
            "description": "Only suppliers whose business or trade name contains this text (case-insensitive)."
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Filter by business city (case-insensitive, exact match). e.g. <code>Brooklyn</code>, <code>Newark</code>, <code>Cincinnati</code>. New Orleans publishes no city, so it is not searched when this is set.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "zipCodes": {
            "title": "ZIP codes (prefix)",
            "type": "array",
            "description": "Filter by ZIP-code prefix - <code>112</code> matches all 112xx ZIPs, <code>11215</code> matches one.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "counties": {
            "title": "Counties",
            "type": "array",
            "description": "Filter by county (case-insensitive). Programs that publish a county: NY State DBE, and NYC (borough names work too: <code>Kings</code> = <code>Brooklyn</code>).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "withEmailOnly": {
            "title": "Only suppliers with an email",
            "type": "boolean",
            "description": "Return only records that include a contact email address (programs that publish no e-mail, such as NYC SBS, Norfolk and Cincinnati, are not searched).",
            "default": false
          },
          "withPhoneOnly": {
            "title": "Only suppliers with a phone",
            "type": "boolean",
            "description": "Return only records that include a valid US phone number.",
            "default": false
          },
          "withWebsiteOnly": {
            "title": "Only suppliers with a website",
            "type": "boolean",
            "description": "Return only records that include a website.",
            "default": false
          },
          "statusActiveOnly": {
            "title": "Active certifications only",
            "type": "boolean",
            "description": "Return only certifications the program confirms as current: an expiry date in the future, or a listing in a directory of certified firms that the program still refreshes. This leaves out expired certifications and the archive lists that cannot confirm a current certification (NY State DBE 2016, New Orleans 2019, NYC veteran directory 2022, Austin's fiscal-year roster, Cook County 2018). Turn off to include them; every record says <code>active</code> (true / false / null), <code>status</code> and the list's <code>dataAsOf</code> date.",
            "default": true
          },
          "certifiedAfter": {
            "title": "Certified on/after (newly certified)",
            "type": "string",
            "description": "Only firms certified on or after this date (<code>YYYY-MM-DD</code>). Programs that publish a certification date: Norfolk, Austin, New Orleans and Cook County; the others are not searched when this is set."
          },
          "expiringBefore": {
            "title": "Certification expiring before",
            "type": "string",
            "description": "Only certifications expiring before this date (<code>YYYY-MM-DD</code>) - for re-certification / renewal-timing offers. Programs that publish an expiration date: NYC SBS, Norfolk and Cook County."
          },
          "expiringWithinDays": {
            "title": "Expiring within N days",
            "minimum": 1,
            "type": "integer",
            "description": "Convenience alternative to \"Expiring before\": only certifications that are still valid and expire within this many days from today."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of supplier records to return in this run (across all selected states/programs). A run with no filters and no Max results returns a 25-record sample."
          },
          "maxResultsPerSource": {
            "title": "Max results per program (optional)",
            "minimum": 1,
            "type": "integer",
            "description": "Cap how many records each individual program may contribute. Leave blank to share Max results evenly across the programs (a balanced round-robin)."
          },
          "sortNewestFirst": {
            "title": "Newest certifications first",
            "type": "boolean",
            "description": "Within each program, list the most recent certifications first: by renewal/expiry date (NYC SBS, Norfolk, Cook County), certification date (New Orleans, Austin) or certificate number (Delaware). Programs without a date are listed alphabetically.",
            "default": true
          },
          "deduplicateResults": {
            "title": "Deduplicate within a run",
            "type": "boolean",
            "description": "Drop duplicate listings of the same firm within a program in a single run.",
            "default": true
          },
          "includeRawFields": {
            "title": "Include raw source fields",
            "type": "boolean",
            "description": "Attach the original source row (cleaned of empty values) as <code>sourceFields</code> on every record, so no published data is lost. Turn off for a leaner dataset.",
            "default": true
          },
          "monitorMode": {
            "title": "Monitoring mode - only new or renewed suppliers",
            "type": "boolean",
            "description": "Keep a record of the current list (in a named key-value store) and, from the second run on, return ONLY suppliers that are new to the list or renewed with a later expiry since the last run - tagged <code>monitorEvent: \"new\"</code> or <code>\"renewed\"</code>. The first run records the whole current list as the baseline and returns up to Max results of it (<code>monitorEvent: \"initial\"</code>). Run it on a Schedule to capture newly-certified firms as fresh leads.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Names the memory used by monitoring mode. Use a distinct key per saved watch (e.g. per state / certification type) so different monitors don't share state.",
            "default": "default"
          },
          "socrataAppToken": {
            "title": "Socrata app token (optional)",
            "type": "string",
            "description": "Optional Socrata app token for higher rate limits on very large runs. Not required - leave blank for normal use. Free at any state/city open-data portal."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional proxy. Government open data is fetched directly and needs no proxy - leave this off for the fastest, cheapest runs. Enable Apify Proxy only if your network requires it.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}