{
  "openapi": "3.0.1",
  "info": {
    "title": "eBay Business Seller Contacts & VAT Directory",
    "description": "Build deduplicated B2B lead lists from eBay UK and EU business seller disclosures: company name, registered address, phone, email, VAT number and company registration number, with feedback and store stats.",
    "version": "1.0",
    "x-build-id": "kWEceRquvX5XsogbD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlyth-forge~ebay-business-seller-directory/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlyth-forge-ebay-business-seller-directory",
        "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/crawlyth-forge~ebay-business-seller-directory/runs": {
      "post": {
        "operationId": "runs-sync-crawlyth-forge-ebay-business-seller-directory",
        "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/crawlyth-forge~ebay-business-seller-directory/run-sync": {
      "post": {
        "operationId": "run-sync-crawlyth-forge-ebay-business-seller-directory",
        "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": [
              "search",
              "sellers",
              "items",
              "urls"
            ],
            "type": "string",
            "description": "How to find sellers: search live listings by keyword or category, look up seller usernames, read item IDs/URLs, or route a mixed list of eBay URLs.",
            "default": "search"
          },
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "(mode=search) Keywords to search on each selected marketplace. Every keyword is searched separately and sellers are deduplicated across them.",
            "items": {
              "type": "string"
            }
          },
          "categoryIds": {
            "title": "Category IDs",
            "type": "array",
            "description": "(mode=search) eBay category IDs to browse instead of, or together with, keywords. Paste numeric IDs such as 9355 (mobile phones) or a category URL.",
            "items": {
              "type": "string"
            }
          },
          "sellerUsernames": {
            "title": "Seller usernames",
            "type": "array",
            "description": "(mode=sellers) eBay usernames or seller/store profile URLs. Each seller's feedback profile is checked, then one active listing is read for the legal contact block.",
            "items": {
              "type": "string"
            }
          },
          "itemIds": {
            "title": "Item IDs or listing URLs",
            "type": "array",
            "description": "(mode=items) eBay item IDs or full listing URLs. Bare IDs are read on the first selected marketplace; a listing URL is read on its own marketplace. One row per unique business seller is returned.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "eBay URLs",
            "type": "array",
            "description": "(mode=urls) Mixed eBay listing, seller, store, search or category URLs. Each URL is routed to the matching lookup path.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL",
                  "description": "eBay listing, seller, store, search or category URL."
                }
              }
            }
          },
          "marketplaces": {
            "title": "Marketplaces",
            "type": "array",
            "description": "eBay sites to query (mode=search, sellers, items). EU and UK sites publish the business seller legal block; duplicates are kept once per marketplace.",
            "items": {
              "type": "string",
              "enum": [
                "ebay.co.uk",
                "ebay.de",
                "ebay.fr",
                "ebay.it",
                "ebay.es",
                "ebay.ie",
                "ebay.at",
                "ebay.be",
                "ebay.nl",
                "ebay.pl"
              ],
              "enumTitles": [
                "United Kingdom (ebay.co.uk)",
                "Germany (ebay.de)",
                "France (ebay.fr)",
                "Italy (ebay.it)",
                "Spain (ebay.es)",
                "Ireland (ebay.ie)",
                "Austria (ebay.at)",
                "Belgium (ebay.be)",
                "Netherlands (ebay.nl)",
                "Poland (ebay.pl)"
              ]
            },
            "default": [
              "ebay.co.uk"
            ]
          },
          "condition": {
            "title": "Item condition",
            "enum": [
              "any",
              "new",
              "used",
              "refurbished",
              "forParts"
            ],
            "type": "string",
            "description": "(mode=search) Restrict discovered listings to a condition group using eBay's own condition filter.",
            "default": "any"
          },
          "minPrice": {
            "title": "Minimum item price",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "number",
            "description": "(mode=search) Only discover listings at or above this price, in the marketplace currency. Leave empty for no minimum."
          },
          "maxPrice": {
            "title": "Maximum item price",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "number",
            "description": "(mode=search) Only discover listings at or below this price, in the marketplace currency. Leave empty for no maximum."
          },
          "sortBy": {
            "title": "Search result order",
            "enum": [
              "relevance",
              "priceLow",
              "priceHigh",
              "newest"
            ],
            "type": "string",
            "description": "(mode=search) How eBay orders search results while discovering sellers.",
            "default": "relevance"
          },
          "sellerCountries": {
            "title": "Seller registered countries",
            "type": "array",
            "description": "Keep only sellers whose registered business address is in these ISO country codes. Select from the list or type any code (for example GB, DE, FR, IT, ES, NL, PL, CN, US).",
            "items": {
              "type": "string",
              "enumSuggestedValues": [
                "GB",
                "DE",
                "FR",
                "IT",
                "ES",
                "IE",
                "AT",
                "BE",
                "NL",
                "PL",
                "PT",
                "SE",
                "DK",
                "FI",
                "NO",
                "CH",
                "CZ",
                "HU",
                "RO",
                "BG",
                "GR",
                "SK",
                "SI",
                "HR",
                "LT",
                "LV",
                "EE",
                "LU",
                "MT",
                "CY",
                "UA",
                "US",
                "CA",
                "CN",
                "HK",
                "TR",
                "IL",
                "JP",
                "KR",
                "TW",
                "SG",
                "IN",
                "AU",
                "AE",
                "MX",
                "BR",
                "ZA",
                "NZ"
              ],
              "enumTitles": [
                "United Kingdom",
                "Germany",
                "France",
                "Italy",
                "Spain",
                "Ireland",
                "Austria",
                "Belgium",
                "Netherlands",
                "Poland",
                "Portugal",
                "Sweden",
                "Denmark",
                "Finland",
                "Norway",
                "Switzerland",
                "Czechia",
                "Hungary",
                "Romania",
                "Bulgaria",
                "Greece",
                "Slovakia",
                "Slovenia",
                "Croatia",
                "Lithuania",
                "Latvia",
                "Estonia",
                "Luxembourg",
                "Malta",
                "Cyprus",
                "Ukraine",
                "United States",
                "Canada",
                "China",
                "Hong Kong",
                "Turkey",
                "Israel",
                "Japan",
                "South Korea",
                "Taiwan",
                "Singapore",
                "India",
                "Australia",
                "United Arab Emirates",
                "Mexico",
                "Brazil",
                "South Africa",
                "New Zealand"
              ]
            }
          },
          "minFeedbackScore": {
            "title": "Minimum feedback score",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Skip sellers whose eBay feedback score is below this number. Sellers without a readable feedback score are skipped when this is above 0.",
            "default": 0
          },
          "minMatchingListings": {
            "title": "Minimum matching listings",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Keep only sellers with at least this many listings in the scanned results. Raise it to focus on high-volume sellers.",
            "default": 1
          },
          "requireEmail": {
            "title": "Require an email",
            "type": "boolean",
            "description": "Save only sellers whose legal block includes an email address.",
            "default": false
          },
          "requirePhone": {
            "title": "Require a phone number",
            "type": "boolean",
            "description": "Save only sellers whose legal block includes a phone number.",
            "default": false
          },
          "includeSellerStats": {
            "title": "Add feedback and member details",
            "type": "boolean",
            "description": "Read each seller's feedback profile for exact feedback score, positive %, member-since date, top-rated and verified badges. Adds one request per seller.",
            "default": true
          },
          "includeStoreDetails": {
            "title": "Add store details",
            "type": "boolean",
            "description": "Read the seller's eBay Store page for exact items sold, follower count and store title. Adds one request per seller with a store.",
            "default": true
          },
          "includeLegalText": {
            "title": "Include terms and conditions",
            "type": "boolean",
            "description": "Include the seller's full terms and conditions text from the legal block. This can make records much larger.",
            "default": false
          },
          "maxSellers": {
            "title": "Maximum business sellers",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Stop after saving this many business sellers, split evenly across the selected marketplaces. Private sellers and filtered sellers do not count.",
            "default": 20
          },
          "maxListingsToScan": {
            "title": "Maximum listings to scan",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on listing pages opened while looking for business sellers. A run stops at the cap even if fewer sellers were found.",
            "default": 60
          },
          "maxSearchPages": {
            "title": "Maximum search pages",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Pages of 60 search results to read per keyword or category. More pages find more distinct sellers.",
            "default": 1
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}