{
  "openapi": "3.0.1",
  "info": {
    "title": "Supplier Finder by Photo | Dataset to 1688 & AliExpress",
    "description": "Find 1688 or AliExpress suppliers for every product in a scraper's Dataset by its photo. Each row keeps your ASIN or SKU, title and price next to the top supplier candidates, MOQ and price. Batching and budget handled.",
    "version": "0.1",
    "x-build-id": "ukD7nDFeKuHVcl5ym"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automa-flow~supplier-finder-by-photo/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automa-flow-supplier-finder-by-photo",
        "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/automa-flow~supplier-finder-by-photo/runs": {
      "post": {
        "operationId": "runs-sync-automa-flow-supplier-finder-by-photo",
        "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/automa-flow~supplier-finder-by-photo/run-sync": {
      "post": {
        "operationId": "run-sync-automa-flow-supplier-finder-by-photo",
        "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": {
          "datasetId": {
            "title": "Dataset",
            "pattern": "^(?:[A-Za-z0-9][A-Za-z0-9_~-]{2,127})?$",
            "type": "string",
            "description": "Dataset with one product per row. Takes priority over pasted image URLs. Read access is all the run gets."
          },
          "imageField": {
            "title": "Image URL field",
            "pattern": "^[A-Za-z0-9_-]+(?:\\.[A-Za-z0-9_-]+)*$",
            "maxLength": 200,
            "type": "string",
            "description": "Dot path to the product photo in each row: thumbnailImage after the Amazon crawler, images.0.src for Shopify products.json, image for most others. A list or an object with src/url uses its first image.",
            "default": "thumbnailImage"
          },
          "keyField": {
            "title": "Product key field",
            "pattern": "^(?:[A-Za-z0-9_-]+(?:\\.[A-Za-z0-9_-]+)*)?$",
            "maxLength": 200,
            "type": "string",
            "description": "Copied to sourceKey: asin, sku, id or handle. Leave empty to skip.",
            "default": "asin"
          },
          "titleField": {
            "title": "Title field",
            "pattern": "^(?:[A-Za-z0-9_-]+(?:\\.[A-Za-z0-9_-]+)*)?$",
            "maxLength": 200,
            "type": "string",
            "description": "Copied to sourceTitle. Leave empty to skip.",
            "default": "title"
          },
          "priceField": {
            "title": "Price field",
            "pattern": "^(?:[A-Za-z0-9_-]+(?:\\.[A-Za-z0-9_-]+)*)?$",
            "maxLength": 200,
            "type": "string",
            "description": "Copied to sourcePrice as given: price.value for the Amazon crawler, variants.0.price for Shopify. Leave empty to skip.",
            "default": "price.value"
          },
          "passthroughFields": {
            "title": "More fields to keep",
            "maxItems": 10,
            "type": "array",
            "description": "Up to 10 more dot paths copied into the passthrough object of each row, for example brand, url or stars.",
            "items": {
              "type": "string",
              "maxLength": 200,
              "pattern": "^[A-Za-z0-9_-]+(?:\\.[A-Za-z0-9_-]+)*$"
            }
          },
          "datasetOffset": {
            "title": "Dataset offset",
            "minimum": 0,
            "type": "integer",
            "description": "Skip this many rows, then read up to Max products. RUN_SUMMARY gives nextDatasetOffset when rows remain.",
            "default": 0
          },
          "imageUrls": {
            "title": "Image URLs",
            "maxItems": 500,
            "type": "array",
            "description": "Public product photo URLs (JPG, PNG, WebP), one product each, when no Dataset is set. Ignored when Dataset is set.",
            "items": {
              "type": "string",
              "maxLength": 2000,
              "pattern": "^\\s*(?:https?:)?//\\S+\\s*$"
            }
          },
          "backend": {
            "title": "Marketplace",
            "enum": [
              "1688",
              "aliexpress",
              "1688-alt"
            ],
            "type": "string",
            "description": "Which image search runs for each photo. Its own per-search fee is billed to your account next to this Actor's fee; see Pricing in the README.",
            "default": "1688"
          },
          "maxCandidatesPerProduct": {
            "title": "Suppliers per product",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Top candidates kept per product, in the marketplace's similarity order. 1-20.",
            "default": 5
          },
          "maxProducts": {
            "title": "Max products",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Most rows (or pasted URLs) handled in this run. 1-5,000.",
            "default": 100
          },
          "maxBackendChargeUsd": {
            "title": "Max image-search fees (USD)",
            "minimum": 0.01,
            "maximum": 500,
            "type": "number",
            "description": "Ceiling on the image-search Actor's own fees across this run. Products left when it runs out get BUDGET_EXHAUSTED and are not searched or charged. 100 products on 1688 need about $0.55.",
            "default": 1
          },
          "targetMarket": {
            "title": "Target market (1688)",
            "enum": [
              "US",
              "EU",
              "UK",
              "AU",
              "global"
            ],
            "type": "string",
            "description": "Market hint passed to the 1688 search.",
            "default": "US"
          },
          "shipTo": {
            "title": "Ship-to country (AliExpress)",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "Two-letter country code AliExpress prices are shown for.",
            "default": "US"
          },
          "currency": {
            "title": "Currency (AliExpress)",
            "pattern": "^[A-Za-z]{3}$",
            "type": "string",
            "description": "Three-letter currency code for AliExpress prices. 1688 prices are in CNY.",
            "default": "USD"
          },
          "payload": {
            "title": "Integration payload",
            "type": "object",
            "description": "Added by an Apify Actor-to-Actor integration. It is accepted so the run can start and is not read. Set datasetId to {{resource.defaultDatasetId}} in the integration input."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}