{
  "openapi": "3.0.1",
  "info": {
    "title": "Alibaba Email Scraper By Urls and Keyword",
    "description": "Alibaba Email Scraper helps you collect supplier emails directly from Alibaba listings and profiles. Use the data for wholesale sourcing, partnership discussions, and B2B sales campaigns efficiently.",
    "version": "0.1",
    "x-build-id": "EHTquY9Xkej8RfrT1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapio~alibaba-email-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapio-alibaba-email-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/scrapio~alibaba-email-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapio-alibaba-email-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/scrapio~alibaba-email-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapio-alibaba-email-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": [
          "keywords"
        ],
        "properties": {
          "keywords": {
            "title": "🔍 Keywords",
            "type": "array",
            "description": "Keywords/niches to search for on Alibaba via Google (e.g. ['stainless steel bottle', 'silicone kitchenware']). Each becomes a `site:alibaba.com \"keyword\"` search. Example: ['led lighting'] → Alibaba supplier pages about LED lighting.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "🔗 Alibaba URLs (optional)",
            "type": "array",
            "description": "Paste Alibaba supplier/company/product URLs to scrape directly instead of (or in addition to) keyword search. Non-Alibaba URLs are ignored. Example: https://example.en.alibaba.com/",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "📍 Location Filter (optional)",
            "type": "string",
            "description": "Optional term added to the search query to bias results to a place (e.g. 'Shenzhen', 'India'). Leave empty for global. Example: 'Guangdong'.",
            "default": ""
          },
          "emailDomains": {
            "title": "📧 Email Domain Filter (optional)",
            "type": "array",
            "description": "Keep only emails ending with these domains (e.g. ['@gmail.com', 'company.com']). Leave empty to keep all genuine emails. Example: ['@163.com'].",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "🚫 Exclude Keywords (optional)",
            "type": "array",
            "description": "Drop any result whose title/description/URL contains any of these words (case-insensitive). Example: ['wholesale', 'used'].",
            "items": {
              "type": "string"
            }
          },
          "excludeFreeMail": {
            "title": "🏢 Exclude Free Mail (Gmail/Yahoo/…) ",
            "type": "boolean",
            "description": "When ON, drop emails on free consumer providers (gmail/yahoo/hotmail/163/qq/…) and keep only business-domain emails. Default OFF.",
            "default": false
          },
          "includeCompanyProfile": {
            "title": "🏭 Fetch Real Company Profile (Alibaba minisite)",
            "type": "boolean",
            "description": "When ON, visit each genuine Alibaba supplier minisite (Chrome-impersonated, residential proxy) and extract the real company record: name, country/city, business type, gold-supplier years, verified/trade-assurance flags, response rate, review score, plus any genuine business email/phone/website the page exposes server-side. Alibaba is behind Akamai and renders most contact details client-side behind login, so contact fields are left null (never faked) when not present. Default OFF.",
            "default": false
          },
          "followSupplierWebsite": {
            "title": "🌐 Follow Supplier's Own Website for Contacts",
            "type": "boolean",
            "description": "When ON (and 'Fetch Real Company Profile' is also ON), if a supplier's minisite lists their own external website, fetch that site's homepage/contact page and harvest any genuine business email/phone found there (contiguous email + libphonenumber-validated phone only — never fabricated). This is where real B2B contacts most reliably live. Default ON.",
            "default": true
          },
          "maxResults": {
            "title": "📊 Maximum Results per Keyword",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum billable rows to collect per keyword (a row = one genuine email, or a phone/company record when no email). Example: 20. Default 20.",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy Configuration",
            "type": "object",
            "description": "Proxy used for requests. Google search requires the GOOGLE_SERP group (added automatically for search if you don't pick a group); company-profile fetches use residential. This input is genuinely honored — your selection drives the proxy that is created."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}