{
  "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": "y7jr1DYrX35SRStCd"
  },
  "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. Each is a state/city open-data portal of certified businesses. <b>NY</b> = NYC SBS (M/WBE, EBE, LBE) + NY State UCP DBE + NYC Veteran-Owned; <b>NJ</b> = NJSAVI (SBE/M/WBE/Veteran); <b>DE</b> = Delaware Office of Supplier Diversity; <b>LA</b> = New Orleans SLDBE/DBE; <b>VA</b> = Norfolk SWaM/DBE; <b>OH</b> = Cincinnati SBE/MBE/WBE; <b>TX</b> = Austin SBE; <b>IL</b> = Chicago Veteran-Owned. 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 + NYC Veteran)",
                "New Jersey (NJSAVI)",
                "Delaware (Office of Supplier Diversity)",
                "Louisiana (New Orleans DBE)",
                "Virginia (Norfolk SWaM / DBE)",
                "Ohio (Cincinnati SBE/MBE/WBE)",
                "Texas (Austin SBE)",
                "Illinois (Chicago Veteran-Owned)"
              ]
            },
            "default": []
          },
          "certificationTypes": {
            "title": "Certification types",
            "type": "array",
            "description": "Filter by certification category (normalized across every program). Leave empty for ALL. <code>MBE</code> minority-owned · <code>WBE</code> women-owned · <code>DBE</code> disadvantaged · <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> LGBT-owned · <code>DOBE</code> disability-owned.",
            "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 — LGBT-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. Applies where the program publishes NAICS/commodity codes.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Free-text match across business name, description, industry/commodity and NAICS title (case-insensitive). 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 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>. (Applies where the program publishes a city.)",
            "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, exact match). Applies where the program publishes a county (e.g. NY State DBE).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "withEmailOnly": {
            "title": "Only suppliers with an email",
            "type": "boolean",
            "description": "Return only records that include a contact email address.",
            "default": false
          },
          "withPhoneOnly": {
            "title": "Only suppliers with a phone",
            "type": "boolean",
            "description": "Return only records that include a 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": "Only return currently-active / non-expired certifications (recommended for lead-gen). Turn off to include expired records where a program publishes them.",
            "default": true
          },
          "certifiedAfter": {
            "title": "Certified on/after (newly certified)",
            "type": "string",
            "description": "Only firms first certified on or after this date (<code>YYYY-MM-DD</code>) — perfect for fresh, newly-certified leads. Applies to programs that publish a certification date (Norfolk, Chicago); other programs are skipped when this is set."
          },
          "expiringBefore": {
            "title": "Certification expiring before",
            "type": "string",
            "description": "Only certifications expiring before this date (<code>YYYY-MM-DD</code>) — perfect for re-certification / renewal-timing offers. Applies to programs that publish an expiration/renewal date."
          },
          "expiringWithinDays": {
            "title": "Expiring within N days",
            "minimum": 1,
            "type": "integer",
            "description": "Convenience alternative to \"Expiring before\": only certifications expiring within this many days from now."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of supplier records to return in this run (across all selected states/programs).",
            "default": 1000
          },
          "maxResultsPerSource": {
            "title": "Max results per program (optional)",
            "minimum": 1,
            "type": "integer",
            "description": "Cap how many records are pulled from each individual program before the global limit and newest-first sorting are applied. Leave blank to use the same value as Max results."
          },
          "sortNewestFirst": {
            "title": "Newest certifications first",
            "type": "boolean",
            "description": "Sort each program's output by most-recent certification date first (where the program publishes one).",
            "default": true
          },
          "deduplicateResults": {
            "title": "Deduplicate within a run",
            "type": "boolean",
            "description": "Drop duplicate supplier records within 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 suppliers",
            "type": "boolean",
            "description": "Remember which suppliers were already returned (in a named key-value store) and emit ONLY suppliers that are new since the last run — each tagged <code>monitorEvent: \"new\"</code>. A re-certification (new expiration/renewal date) also surfaces as new. Run on a Schedule to capture newly-certified firms as fresh leads. Works alongside Apify Schedules — the schedule starts the run; monitoring decides what's new.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}