{
  "openapi": "3.0.1",
  "info": {
    "title": "Reverse Image Search: AliExpress & Alibaba Suppliers",
    "description": "Reverse image search on AliExpress and Alibaba.com: find products and suppliers by photo, 60 + 20 offers with price, MOQ and sold count, $5 per 1,000 photos. Free price summary per photo. zen-studio and dev00 input works; crawleast input is read, results come from AliExpress and Alibaba.com.",
    "version": "0.1",
    "x-build-id": "wmgugPv7MdnLof8is"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/arcadium~image-sourcing/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-arcadium-image-sourcing",
        "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/arcadium~image-sourcing/runs": {
      "post": {
        "operationId": "runs-sync-arcadium-image-sourcing",
        "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/arcadium~image-sourcing/run-sync": {
      "post": {
        "operationId": "run-sync-arcadium-image-sourcing",
        "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": "Product photos",
            "type": "array",
            "description": "Photo links to search by, for example [\"https://example.com/mug.jpg\"]. JPEG, PNG, WebP, GIF, AVIF or BMP; data:image/...;base64 URLs work too. Also read from imageUrl, imagesBase64 or startUrls.",
            "items": {
              "type": "string"
            }
          },
          "sites": {
            "title": "Sites",
            "type": "array",
            "description": "Where to search each photo: AliExpress (retail, single units) and Alibaba.com (wholesale suppliers, MOQ). Default: both, for example [\"aliexpress\", \"alibaba\"]. Also read from destination or targets.",
            "items": {
              "type": "string",
              "enum": [
                "aliexpress",
                "alibaba"
              ],
              "enumTitles": [
                "AliExpress",
                "Alibaba.com"
              ]
            },
            "default": [
              "aliexpress",
              "alibaba"
            ]
          },
          "maxPagesPerSite": {
            "title": "Result pages per site",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Result pages to read per photo and site, for example 2. Default 1 (60 AliExpress + 20 Alibaba.com offers, included in the photo price). Each extra page is billed as an extra page. Max 5."
          },
          "maxResults": {
            "title": "Max offers per photo and site",
            "minimum": 0,
            "maximum": 300,
            "type": "integer",
            "description": "Cap on offer rows per photo and site, for example 20. 0 (default) keeps every offer of the pages read. Also read from maxResultsPerImage."
          },
          "minPrice": {
            "title": "Minimum price",
            "type": "number",
            "description": "Only offers whose lowest price is at or above this amount, in the result currency, for example 1.5. Leave empty for no lower limit."
          },
          "maxPrice": {
            "title": "Maximum price",
            "type": "number",
            "description": "Only offers whose lowest price is at or below this amount, in the result currency, for example 20. Leave empty for no upper limit."
          },
          "shipTo": {
            "title": "Ship-to country (AliExpress)",
            "type": "string",
            "description": "Two-letter country AliExpress prices and ships for, for example DE. Default US. Also read from aliexpressCountry."
          },
          "currency": {
            "title": "Currency (AliExpress)",
            "type": "string",
            "description": "Three-letter currency of AliExpress prices, for example EUR. Default USD. Alibaba.com prices stay in its own currency (USD). Also read from aliexpressCurrency."
          },
          "includeAds": {
            "title": "Keep paid placements",
            "type": "boolean",
            "description": "Keep sponsored offers among the results (flagged with isAd). Default true.",
            "default": true
          },
          "includeErrorRows": {
            "title": "Add error rows",
            "type": "boolean",
            "description": "Add a free row with a code and message for every photo or site that failed. Default true.",
            "default": true
          },
          "includeCoverageRows": {
            "title": "Add coverage rows",
            "type": "boolean",
            "description": "Add a free row per photo and site: matches the site states, offers delivered and why paging stopped. Default false.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave empty: the actor picks its own route and pays for it. Set your own proxy URLs only if you need a fixed exit."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}