{
  "openapi": "3.0.1",
  "info": {
    "title": "1688 Image Search Scraper - Reverse Image & Supplier Finder",
    "description": "[💰$0.10/1K] Reverse image search on 1688 plus supplier and keyword modes. Rows keep price, MOQ, sold count, repeat rate, shop score, review summary and a similarity score. Detail mode adds stock, SKU prices, logistics and 2 latest reviews. CN proxy, no login, no key.",
    "version": "0.2",
    "x-build-id": "stPCALIqorUwpbyd6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ai-lead-gen-tools~1688-image-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ai-lead-gen-tools-1688-image-search-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/ai-lead-gen-tools~1688-image-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ai-lead-gen-tools-1688-image-search-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/ai-lead-gen-tools~1688-image-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ai-lead-gen-tools-1688-image-search-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": {
          "imageUrls": {
            "title": "Image URLs or base64",
            "type": "array",
            "description": "Photos to reverse-search on 1688, one entry per photo. A public http or https link, a data URL such as data:image/jpeg;base64,... or a raw base64 payload all work. Each entry costs one `image-search` event and returns up to `maxResultsPerImage` offers. Up to 25 photos per run.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Chinese or English search terms, one target per entry. Keywords reach further than a photo: the search pools about 2 000 offers per term and the actor fills a 650+ offer sample per keyword by splitting the same query across price bands and sort orders, with no overlap between the base pages. Keywords are sent to 1688 in GBK, the encoding the search endpoint expects; Latin and Cyrillic terms are covered by that encoding, and a term with characters outside GBK is skipped with a clear message instead of being sent as garbage.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "memberIds": {
            "title": "Supplier member ids",
            "type": "array",
            "description": "1688 supplier ids such as b2b-2218295605397bd or a bare 2218295605397bd. Each id reads that supplier storefront and returns a bounded sample around 51 to 108 offers depending on the shop. Supplier mode reuses the image search session, so it needs at least one entry in `imageUrls`; without a photo the storefront comes back empty.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "offerIds": {
            "title": "Offer ids or offer links",
            "type": "array",
            "description": "Offer ids to open as full detail records, one per entry. A bare number, a mobile link or a desktop link all work: only the id is used and the desktop address is never requested. Each entry always produces an `offer-detail` row and costs one `offer-detail` event, regardless of the other modes.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxResults": {
            "title": "Max offer rows",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on listing rows for the whole run, shared across photos, keywords and suppliers. Duplicates by offer id are already dropped before the cap is applied. The run stops requesting as soon as the cap is reached.",
            "default": 300
          },
          "maxResultsPerImage": {
            "title": "Max rows per photo",
            "minimum": 60,
            "maximum": 10000,
            "type": "integer",
            "description": "Listing cap for a single photo, so one broad photo cannot eat the whole budget. A photo search pool reports 700 matches and the actor pages through it 60 rows at a time until this cap or the end of the pool.",
            "default": 120
          },
          "maxItems": {
            "title": "Max detail records",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Limit on enriched detail records, not on listing rows. One detail record costs one request, while a listing page brings 60 rows in one request, so the two caps are counted separately. Detail records are only produced when `includeDetails` is on or when `offerIds` is filled.",
            "default": 50
          },
          "includeDetails": {
            "title": "Include details",
            "type": "boolean",
            "description": "Open the mobile offer page of every collected listing row and push a second record with stock, MOQ, SKU prices, images, attributes, logistics and the review summary. Each of those records costs a `detail-item` event and one extra request, so keep `maxItems` low when the flag is on.",
            "default": false
          },
          "reviews": {
            "title": "Collect reviews",
            "type": "boolean",
            "description": "Attach the review summary and the latest review texts to every detail record. 1688 returns one summary plus at most two review entries per offer in a single request, with no pagination: `reviewCountText` is the rounded counter shown on the offer card, `reviewCountTextExact` is the number of reviews that actually carry text, and the two are never swapped. Turning this off saves one request per detail record and leaves the review fields empty.",
            "default": true
          },
          "excludeAds": {
            "title": "Exclude ads",
            "type": "boolean",
            "description": "Drop paid placements from the dataset. 1688 repeats a sponsored card as a second entry with the same offer id and `isP4P: true`, so the row is deduplicated anyway; this switch decides whether that deduplicated row is pushed at all. Turn it off to keep sponsored offers and see the `isP4P` and `isAd` flags on the row.",
            "default": true
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "number",
            "description": "Lower price bound in CNY, applied by this actor after parsing. 1688 has no strict server-side price filter: a price range shifts the pool but still leaks offers outside it, so this bound cuts rows the actor already received instead of narrowing the request."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "number",
            "description": "Upper price bound in CNY, applied by this actor after parsing. Rows whose price could not be read are dropped when either bound is set, because an unknown price cannot be proven to match."
          },
          "minOrderQuantity": {
            "title": "Min MOQ",
            "minimum": 0,
            "type": "number",
            "description": "Keep only offers whose minimum order quantity is at least this value. Useful for buyers who cannot take single pieces. Rows without a readable MOQ are dropped when the bound is set."
          },
          "sortBy": {
            "title": "Sort keywords by",
            "enum": [
              "relevance",
              "priceAsc",
              "priceDesc"
            ],
            "type": "string",
            "description": "Ordering applied to keyword searches only, because photo and supplier pools come back in 1688 relevance order. Price sorting is sent to 1688 as a query parameter and also adds two extra query variants to the keyword sweep, which shifts the sample rather than strictly sorting it.",
            "default": "relevance"
          },
          "maxTotalChargeUsd": {
            "title": "Max spend per run",
            "minimum": 0.01,
            "type": "number",
            "description": "Spending cap for this run in US dollars, checked before every paid event. The actor stops once the next event would cross the cap, keeps everything it already pushed and reports `chargeCapReached` in the summary. Leave empty to run without a cap."
          },
          "requestDelaySecs": {
            "title": "Delay between requests",
            "minimum": 0.5,
            "maximum": 10,
            "type": "number",
            "description": "Pause between requests, in seconds. A cookie jar survives about three keyword page calls before 1688 answers with a validation page, and the actor rotates the jar on every query variant, so a short pause is enough. Raising the delay is the cheapest way to stretch a run when 1688 answers with a validation page.",
            "default": 1.5
          },
          "requestTimeoutSecs": {
            "title": "Request timeout",
            "minimum": 10,
            "maximum": 120,
            "type": "integer",
            "description": "Timeout of one request in seconds. Keyword pages come back around 185 KB and detail pages around 190 KB over a Chinese residential proxy, where two to three seconds is normal and ten seconds is not.",
            "default": 60
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy the run goes through. The default is a Chinese residential pool, preconfigured so a run needs no setup. Keyword search only answers from a Chinese residential address: a US residential pool returned nothing in ten attempts, and the photos also work from a datacenter address but the run is priced as one job. Proxy traffic is billed to your Apify account, and a 650 offer keyword run costs roughly 1.2 MB."
          },
          "runBudgetSecs": {
            "title": "Run budget",
            "minimum": 30,
            "maximum": 3600,
            "type": "integer",
            "description": "Soft time budget for the whole run, in seconds. The run stops requesting before the platform timeout, keeps the rows it already pushed and reports the budget as exhausted in the summary. Leave empty to use the whole platform allowance."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}