{
  "openapi": "3.0.1",
  "info": {
    "title": "Wholesale Central Supplier Directory Scraper",
    "description": "Browse or search wholesale supplier and dropshipper listings on WholesaleCentral.com by product category, keyword, location, or minimum order, with company name, category, location, and contact details per supplier.",
    "version": "1.2",
    "x-build-id": "Kw2mExxbbkuj6wSRV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nimbryxo-studio~wholesale-central-supplier-directory-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nimbryxo-studio-wholesale-central-supplier-directory-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/nimbryxo-studio~wholesale-central-supplier-directory-scraper/runs": {
      "post": {
        "operationId": "runs-sync-nimbryxo-studio-wholesale-central-supplier-directory-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/nimbryxo-studio~wholesale-central-supplier-directory-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-nimbryxo-studio-wholesale-central-supplier-directory-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "byCategory",
              "search",
              "bySupplier"
            ],
            "type": "string",
            "description": "How to discover suppliers. `search` uses the supplier-only search tab; `bySupplier` refreshes a known list of supplier URLs/slugs.",
            "default": "byCategory"
          },
          "category": {
            "title": "Category",
            "enum": [
              "Amazon-FBA",
              "Apparel",
              "Art-Supplies",
              "As-Seen-On-TV",
              "Automotive",
              "Baby-Products",
              "Business-Opportunities",
              "Business-Services",
              "C-Store-Items",
              "Candles-Incense-Potpourri",
              "CBD-products",
              "Closeout-Suppliers",
              "Collectibles",
              "Computer-Products",
              "Crafts-Supplies",
              "Dollar-Store",
              "Dropshippers",
              "Electronics",
              "Fashion-Accessories",
              "Food-Grocery",
              "General-Merchandise",
              "Gifts",
              "Handbags-Luggage",
              "Health-Beauty",
              "Holiday-Seasonal",
              "Home-Furnishing-Housewares",
              "Jewelry",
              "Knives",
              "Lawn-Garden",
              "Leather",
              "Made-In-USA",
              "Military-Goods",
              "Novelties",
              "Office-Supplies",
              "Party-Items-Greeting-Cards",
              "Perfume",
              "Pet-Supplies",
              "Professional-Supplies",
              "Promotional",
              "Regional-Ethnic",
              "Religious-Items",
              "Self-Defense-Security",
              "Shoes-Footwear",
              "Smoking-Products",
              "Souvenirs",
              "Sporting-Goods",
              "Store-Dealer-Supplies",
              "Sunglasses-Eyewear",
              "Survival-emergency-kits",
              "Telephone-Cellular",
              "Tools-Hardware",
              "Toys-Hobbies",
              "Vape-Products-Eliquids-Smoking-Products",
              "Watches"
            ],
            "type": "string",
            "description": "One of the 54 live top-level supplier categories (mode=byCategory). Use `categories` to crawl several at once, or `customCategorySlug` for a narrower sub-category.",
            "default": "Apparel"
          },
          "categories": {
            "title": "Categories (multi-category crawl)",
            "type": "array",
            "description": "Crawl up to 10 live category slugs in one run, e.g. [\"Apparel\", \"Electronics\", \"Pet-Supplies\"]. Values must come from the `category` list. Overrides `category`; `customCategorySlug` is ignored when this is set.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "customCategorySlug": {
            "title": "Custom category slug (advanced)",
            "type": "string",
            "description": "Use any narrower WholesaleCentral.com category slug, e.g. `Mens-Apparel` or `Apparel-Dropshippers`. Overrides `category`; leave empty to use the live dropdown list."
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Keyword search over supplier names/profiles (mode=search), e.g. `candles` or `bluetooth speakers`. Required in search mode."
          },
          "supplierUrls": {
            "title": "Supplier URLs (mode=bySupplier)",
            "type": "array",
            "description": "Full supplier URLs, paths, or slugs to refresh, e.g. [\"https://www.wholesalecentral.com/suppliers/fourse0001\"]. Duplicates are removed.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "state": {
            "title": "US state filter",
            "type": "string",
            "description": "Keep suppliers in one US state. Accepts a full name or two-letter code (`NY`, `New York`, `California`). Matches the state exactly; it never matches a city substring."
          },
          "maxMinimumOrderUSD": {
            "title": "Max minimum order (USD)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Only include suppliers whose minimum order is at most this amount. Suppliers with no disclosed minimum are always included."
          },
          "keyword": {
            "title": "Keyword filter",
            "type": "string",
            "description": "Only include suppliers whose name or description contains this text (case-insensitive)."
          },
          "featuredOnly": {
            "title": "Featured listings only",
            "type": "boolean",
            "description": "Only include suppliers the directory badges as a Featured (premium/paid) listing.",
            "default": false
          },
          "includeDetails": {
            "title": "Fetch supplier detail pages",
            "type": "boolean",
            "description": "Read each supplier page for phone, full address, website, description, social links, postal code, and product-catalog summary. Turn off for the fastest listing-only run.",
            "default": true
          },
          "includeProductSummary": {
            "title": "Include product-catalog summary",
            "type": "boolean",
            "description": "When details are fetched, include productCount, categoryCounts, collectionsCount, sampleProducts, and shipsFrom. No extra request is made.",
            "default": true
          },
          "includeEmbeddedContact": {
            "title": "Include embedded email/extra phones",
            "type": "boolean",
            "description": "Opt in to business email addresses and extra phone/fax numbers that the site embeds in the supplier page payload but does not display. Off by default. Review your privacy and outreach obligations before enabling.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. The actor connects directly first and automatically picks a working Apify connection if the site blocks it; you do not need to configure anything.",
            "default": {
              "useApifyProxy": false
            }
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Hard cap on emitted supplier records. Each category is additionally capped at 100 cards.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}