{
  "openapi": "3.0.1",
  "info": {
    "title": "1688 Image & Link Search: Find the Factory",
    "description": "Paste an Amazon or Shopify link, a photo, or a whole Shopify store and get the 1688.com factories selling the same product: AI-verified matches, wholesale price in USD/EUR, supplier signals, sales and your margin. No 1688 account, no Chinese needed.",
    "version": "0.1",
    "x-build-id": "mWUdWfcM2PrSjewBi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/factorylens_data~1688-image-link-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-factorylens_data-1688-image-link-search",
        "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/factorylens_data~1688-image-link-search/runs": {
      "post": {
        "operationId": "runs-sync-factorylens_data-1688-image-link-search",
        "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/factorylens_data~1688-image-link-search/run-sync": {
      "post": {
        "operationId": "run-sync-factorylens_data-1688-image-link-search",
        "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": {
          "productUrls": {
            "title": "Product links",
            "type": "array",
            "description": "Amazon, Shopify or other shop product pages. We read title, price and photo, then find the factory on 1688.",
            "items": {
              "type": "string"
            }
          },
          "imageUrls": {
            "title": "Product photos",
            "type": "array",
            "description": "Public image URLs (jpg, png, webp).",
            "items": {
              "type": "string"
            }
          },
          "imagesBase64": {
            "title": "Uploaded photos (base64)",
            "type": "array",
            "description": "For photos on your computer or from an app/agent: base64 strings or data URLs, or objects {\"base64\": \"...\", \"fileName\": \"x.jpg\", \"title\": \"...\", \"price\": 19.99}."
          },
          "products": {
            "title": "Photo + title (best accuracy for AliExpress, Etsy, Temu)",
            "type": "array",
            "description": "Objects like {\"imageUrl\": \"...\", \"title\": \"Electric can opener\", \"price\": 24.99}. The title tells the AI what the product is; price enables margin."
          },
          "storeUrls": {
            "title": "Whole Shopify stores (catalogue audit)",
            "type": "array",
            "description": "Paste a Shopify store URL (yours or a competitor's): every product is matched to its 1688 factory, with margin. Capped by 'Max products per run'.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerItem": {
            "title": "Matches per product",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many 1688 matches to return for each product.",
            "default": 10
          },
          "currency": {
            "title": "Currency for prices and margin",
            "enum": [
              "USD",
              "EUR",
              "GBP"
            ],
            "type": "string",
            "description": "Wholesale prices are converted from CNY at the daily ECB rate.",
            "default": "USD"
          },
          "shippingCostPerUnit": {
            "title": "Your shipping + fees per unit (overrides the estimate)",
            "minimum": 0,
            "type": "number",
            "description": "If set, used instead of our shipping estimate. Leave 0 to use the estimate for the destination below.",
            "default": 0
          },
          "shipTo": {
            "title": "Ship to (for landed cost)",
            "enum": [
              "US",
              "EU",
              "UK",
              "NONE"
            ],
            "type": "string",
            "description": "We estimate the shipping weight with AI and apply a typical small-parcel air rate from China to get a landed cost. Choose NONE to leave shipping out.",
            "default": "US"
          },
          "importDutyPct": {
            "title": "Import duty / tariff %",
            "minimum": 0,
            "maximum": 200,
            "type": "number",
            "description": "Applied to the factory price. Tariffs change often: set the rate that applies to your product and country.",
            "default": 0
          },
          "onlyExactMatches": {
            "title": "Only AI-verified exact matches",
            "type": "boolean",
            "description": "Return only matches the AI judged to be the same product design.",
            "default": false
          },
          "enrichTopResults": {
            "title": "Read full supplier pages for the top N",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Adds price tiers, MOQ, stock, ship-from, dropshipping and free-sample flags. Billed per supplier page.",
            "default": 0
          },
          "translateTitles": {
            "title": "Translate titles to English",
            "type": "boolean",
            "description": "Adds an English title next to the original Chinese one.",
            "default": true
          },
          "candidatesPerQuery": {
            "title": "1688 candidates per query",
            "minimum": 20,
            "maximum": 60,
            "type": "integer",
            "description": "How many 1688 results are fetched for each search query before visual ranking.",
            "default": 40
          },
          "maxItems": {
            "title": "Max products per run",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Safety cap on the number of input products processed in one run.",
            "default": 20
          },
          "parallelProducts": {
            "title": "Products processed in parallel",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Higher = faster runs for big lists.",
            "default": 4
          },
          "secondPass": {
            "title": "Second search pass when no exact match",
            "type": "boolean",
            "description": "If no exact match is found, the AI learns the sellers' wording from the closest listings and searches again (adds ~20 s).",
            "default": true
          },
          "watchExactMatches": {
            "title": "Start price monitoring of the exact matches",
            "type": "boolean",
            "description": "Starts the 1688 Supplier & Price Monitor (billed separately) on the exact factory matches. The ready-to-schedule input is always saved as MONITOR_INPUT.",
            "default": false
          },
          "watchlistName": {
            "title": "Monitor watchlist name",
            "type": "string",
            "description": "Used when starting the monitor.",
            "default": "factorylens-matches"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}