{
  "openapi": "3.0.1",
  "info": {
    "title": "Global Sources Scraper - B2B Products & Suppliers",
    "description": "Extract Global Sources product listings, supplier profiles and trade-show exhibitors, including available prices and public contacts. Export structured rows and pay per delivered row plus a start fee.",
    "version": "0.1",
    "x-build-id": "1WNt6HB36V2fjxBfQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~globalsources-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-globalsources-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/lentic_clockss~globalsources-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-globalsources-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/lentic_clockss~globalsources-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-globalsources-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "auto",
              "product_search",
              "category",
              "product",
              "supplier",
              "exhibitors"
            ],
            "type": "string",
            "description": "Leave on auto to select a mode from your target fields. Choose an explicit mode only when you want to force that selection.",
            "default": "auto"
          },
          "query": {
            "title": "Query",
            "type": "string",
            "description": "One product keyword, such as stainless steel pipe. A non-empty searchQueries list replaces this value."
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "One or more product keywords, each with its own maxResults row allowance. This list replaces query when filled.",
            "items": {
              "type": "string"
            }
          },
          "supplierUrls": {
            "title": "Supplier URLs",
            "type": "array",
            "description": "Supplier homepage links, e.g. https://easy-buy.manufacturer.globalsources.com/homepage_6008855290824.htm.",
            "items": {
              "type": "string"
            }
          },
          "productUrls": {
            "title": "Product URLs",
            "type": "array",
            "description": "Global Sources product page URLs, such as links ending in p.htm.",
            "items": {
              "type": "string"
            }
          },
          "detailUrls": {
            "title": "Detail URLs",
            "type": "array",
            "description": "Global Sources product or supplier links. With mode set to auto, a list containing only supplier homepage links selects supplier mode; product links select product mode.",
            "items": {
              "type": "string"
            }
          },
          "productIds": {
            "title": "Product IDs",
            "type": "array",
            "description": "Product numbers, when you do not have the product link.",
            "items": {
              "type": "string"
            }
          },
          "categoryUrl": {
            "title": "Category URL",
            "pattern": "^(https?://([A-Za-z0-9-]+\\.)*globalsources\\.com/.*|/.*)?$",
            "type": "string",
            "description": "A Global Sources category URL or relative category path, such as /category/1-industrial-supplies-for-sale-price_48659/."
          },
          "categoryId": {
            "title": "Category ID",
            "pattern": "^[0-9]*$",
            "type": "string",
            "description": "Numeric category ID when you do not provide categoryUrl."
          },
          "supplierShortName": {
            "title": "Supplier short name",
            "type": "string",
            "description": "Supplier subdomain, such as easy-buy. Fill this together with homepageId when you do not provide supplierUrls or detailUrls."
          },
          "homepageId": {
            "title": "Homepage ID",
            "pattern": "^[0-9]+$",
            "type": "string",
            "description": "Digits from the supplier homepage URL, such as 6008855290824. Pair with supplierShortName when you do not provide a supplier URL."
          },
          "exhibitorRegion": {
            "title": "Exhibitor region",
            "pattern": "^[A-Za-z]{2,10}$",
            "type": "string",
            "description": "Trade-show exhibitor directory region code, such as HK. Available suppliers depend on the directory."
          },
          "maxResults": {
            "title": "Max results per input",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum rows for each query, category, product URL/ID, supplier URL/profile, or exhibitor region. Default 70; larger values are collected in parts of at most 70 when the source supports continuation. Product and supplier row types share this per-input allowance. The whole run stops at your maximum total charge; the free Apify plan is capped at 200 rows per run and 10 runs.",
            "default": 70
          },
          "maxPages": {
            "title": "Max pages",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum listing pages to request, from 1 to 50. Fewer pages may be needed to reach maxResults.",
            "default": 5
          },
          "page": {
            "title": "Start page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Starting listing page, from 1 to 100. Use 1 to begin at the first page.",
            "default": 1
          },
          "enrichDetails": {
            "title": "Add product and supplier details",
            "type": "boolean",
            "description": "Add available details and public contacts to product, category and exhibitor rows; listing enrichment can be limited. Enabled by default, while supplier mode requests profile and contact information regardless of this setting.",
            "default": true
          },
          "lang": {
            "title": "Language",
            "type": "string",
            "description": "Global Sources language setting. Use enus for English; other language coverage is not guaranteed.",
            "default": "enus"
          },
          "surface": {
            "title": "Site version",
            "enum": [
              "www",
              "mobile"
            ],
            "type": "string",
            "description": "Choose www for the desktop site or mobile for the mobile site. Use www unless you specifically need the mobile version.",
            "default": "www"
          },
          "fields": {
            "title": "Output fields",
            "type": "array",
            "description": "Optional list of output field names to keep. Leave empty to retain all available fields.",
            "items": {
              "type": "string"
            }
          },
          "workerBaseUrl": {
            "title": "Developer test setting",
            "type": "string",
            "description": "Leave empty. Used only by the developer for testing."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}