# TikTok Shop Image Search (`devcake/tiktok-shop-image`) Actor

Search TikTok Shop by image to find similar products, compare prices and sellers, and export data from the US, UK, Germany, France, Italy and Spain.

- **URL**: https://apify.com/devcake/tiktok-shop-image.md
- **Developed by:** [devcake](https://apify.com/devcake) (community)
- **Features:** Limited permissions
- **Stats:** 6 total users, 4 monthly users, 96.6% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## 🛍️ TikTok Shop Image Search: Find Products by Photo

Use **TikTok Shop image search** to find matching and visually similar products from a photo. Upload an image, paste its link or provide a Base64-encoded image to compare prices and seller details in your chosen market.

Ecommerce sellers, product researchers and shoppers can use it to compare similar listings without writing code.

**Search in the United States, United Kingdom, Germany, France, Italy and Spain.**

### ✨ Key features

- 🖼️ **Search from photos:** Upload a photo, paste a Base64 image or search several image links in one run.
- 🌍 **Choose from six markets:** Find listings from the TikTok Shop country you select, with prices in its local currency.
- 🛍️ **Collect up to 150 products per image:** Set your result limit and gather the matches TikTok makes available.
- 📦 **Automatic US product details:** US matches can include product-page descriptions, galleries, variations, stock, ratings, specifications and shipping details. UK and other supported markets return search cards.
- 🎥 **Discover related product videos:** Receive video links, creator details and engagement figures when included with a matching product.
- 📥 **Download your results:** Choose Excel, CSV or JSON for your spreadsheet or other tools.
- 🗓️ **Repeat your searches:** Save searches using hosted image links as Apify tasks and schedule them to run again.

### 🖼️ Search options

| Setting | What to choose |
| --- | --- |
| **Image URLs** | Links that open the image itself. |
| **Market** | The TikTok Shop country to search. The default is the United States. |
| **Max products per image** | Your result limit, from 26 to 150. The default is 26. |
| **Base64 image** | One encoded image, as raw Base64 or a `data:image/...;base64,` URL. |
| **Upload an image** | One photo saved on your phone or computer. |

Provide at least one image. All inputs share a limit of **10 images per run**. Supported formats are **JPEG, PNG, WEBP and HEIC**, up to **10 MB per image** after Base64 decoding. Identical prepared images are searched once. Clear the prefilled example URL if you want to search only the uploaded or Base64 image.

For Base64 input, results use `BASE64_IMAGE` as the source label in `search_image_url` and Search summary. The encoded image is not copied into results or logs.

Base64 makes the input larger than the original image. Large encoded inputs may exceed Apify's request-size limit before the Actor starts; upload the image or use a direct image URL instead.

Images can contain up to **32 megapixels**. Public image links are downloaded directly when possible. If a link is reachable only through the selected market's proxy, the image must be no larger than **512 KiB**; for larger images, upload the photo or use a directly accessible image link.

For a product you spotted in a video, save a screenshot and use that as your search image. A clear photo focused on one item makes it easier to review the matches.

### 🌍 Supported markets

| Market | Prices shown in | Output |
| --- | --- | --- |
| 🇬🇧 United Kingdom | British pounds (£) | Search cards |
| 🇩🇪 Germany | Euros (€) | Search cards |
| 🇫🇷 France | Euros (€) | Search cards |
| 🇮🇹 Italy | Euros (€) | Search cards |
| 🇪🇸 Spain | Euros (€) | Search cards |
| 🇺🇸 United States | US dollars ($) | Product details by default, when available |

Each run searches one country's TikTok Shop. To compare markets, search the same image again with a different country selected.

Prices stay in the currency of the selected market. They are not converted into another currency.

### 📦 Product data

Each result can include:

- 🏷️ **Product identity:** Listing title and product ID.
- 💵 **Prices:** Current price, displayed price and currency.
- 🔖 **Discounts:** Original price and discount percentage, when shown.
- ⭐ **Ratings and sales:** Product rating and the units-sold figure displayed by TikTok.
- 🏪 **Seller and brand:** Shop name, seller ID and brand, when available.
- 🖼️ **Product images:** Cover photo, additional images and variation photos.
- 🧩 **Categories and variations:** Category details and identifiers for product variations.
- 🚚 **Shipping and promotions:** Free-shipping indicators, delivery tags and promotion labels.
- 🎬 **Related videos:** Links, captions, creators, publication details and engagement figures for videos attached to a returned product.
- 🔎 **Search details:** The source image, selected market and position in the collected results.

Some products include more information than others. Optional fields may be missing, `null` or empty lists (`[]`) when unavailable. These values do not mean a product has no rating, brand, variations or shipping options.

#### 🧾 JSON output examples

The values and links below are illustrative. Optional fields vary by product; the full-details example shows the main PDP fields.

**Full product details (US):**

Product-detail enrichment is enabled by default. This US example shows a successful PDP lookup, including the `product_details` object.

```json
[
  {
    "product_id": "1234567890123456789",
    "title": "Digital watch with silicone strap",
    "price": "4.97",
    "display_price": "$4.97",
    "currency_symbol": "$",
    "original_price": "8.80",
    "discount_percent": "44",
    "rating": 5.0,
    "sold_count": "2",
    "brand": "Example Brand",
    "seller_name": "Example Accessories",
    "seller_id": "5234567890123456789",
    "image_url": "https://example.com/watch-cover.jpg",
    "images": [
      "https://example.com/watch-cover.jpg",
      "https://example.com/watch-black.jpg"
    ],
    "variant_images": [
      {
        "property_value_id": "3234567890123456789",
        "image_url": "https://example.com/watch-black.jpg"
      }
    ],
    "sku_ids": [
      "2234567890123456789"
    ],
    "categories": [
      {
        "category_id": "602083",
        "category_name": "Smart Watches",
        "level": 3,
        "parent_id": "909576",
        "is_leaf": true
      }
    ],
    "shipping": {
      "free_shipping": false,
      "reachable": true,
      "delivery_min_days": 5,
      "delivery_max_days": 10,
      "shipping_fee": {
        "price_str": "$2.99",
        "price_val": "2.99",
        "currency": "USD"
      },
      "scope": "product_detail"
    },
    "promotion_labels": [],
    "country": "US",
    "search_image_url": "https://example.com/search-photo.jpg",
    "position": 1,
    "enrichment_level": "pdp",
    "pdp_status": "success",
    "description": "Digital watch with a silicone strap, calendar and illuminated display.",
    "review_count": "1",
    "stock_count": 178,
    "is_sold_out": false,
    "product_details": {
      "product_id": "1234567890123456789",
      "title": "Digital watch with silicone strap",
      "description": "Digital watch with a silicone strap, calendar and illuminated display.",
      "price": {
        "current": "$4.97",
        "current_decimal": null,
        "original": "$8.80",
        "minimum": "4.97",
        "maximum": null,
        "minimum_original": "8.80",
        "currency": "USD",
        "currency_symbol": "$",
        "discount": "-44%"
      },
      "rating": "5.0",
      "review_count": "1",
      "sold_count": "2",
      "seller": {
        "seller_id": "5234567890123456789",
        "name": "Example Accessories"
      },
      "images": [
        "https://example.com/watch-cover.jpg",
        "https://example.com/watch-black.jpg"
      ],
      "stock_total": 178,
      "default_sku_id": "2234567890123456789",
      "skus": [
        {
          "sku_id": "2234567890123456789",
          "status": 1,
          "stock": 178,
          "purchase_limit": 200,
          "price": {
            "current": "4.97",
            "current_decimal": "4.97",
            "original": "8.80",
            "currency": "USD",
            "currency_symbol": "$"
          },
          "properties": [
            {
              "prop_id": "100000",
              "prop_name": "Color",
              "prop_value_id": "3234567890123456789",
              "prop_value": "Black"
            }
          ]
        }
      ],
      "sale_properties": [
        {
          "prop_id": "100000",
          "prop_name": "Color",
          "has_image": true,
          "sale_prop_values": [
            {
              "prop_value_id": "3234567890123456789",
              "prop_value": "Black",
              "image": {
                "url_list": [
                  "https://example.com/watch-black.jpg"
                ]
              }
            }
          ]
        }
      ],
      "specifications": [
        {
          "name": "Brand",
          "value": "Example Brand"
        },
        {
          "name": "Movement type",
          "value": "Quartz"
        }
      ],
      "categories": [
        {
          "category_id": "602083",
          "category_name": "Smart Watches",
          "level": 3,
          "parent_id": "909576",
          "is_leaf": true
        }
      ],
      "gallery": [
        {
          "width": 800,
          "height": 800,
          "url_list": [
            "https://example.com/watch-cover.jpg"
          ]
        },
        {
          "width": 800,
          "height": 800,
          "url_list": [
            "https://example.com/watch-black.jpg"
          ]
        }
      ],
      "description_blocks": [
        {
          "type": "text",
          "text": "Digital watch with a silicone strap, calendar and illuminated display."
        }
      ],
      "shipping": {
        "free_shipping": false,
        "reachable": true,
        "delivery_min_days": 5,
        "delivery_max_days": 10,
        "shipping_fee": {
          "price_str": "$2.99",
          "price_val": "2.99",
          "currency": "USD"
        }
      },
      "return_policy": {
        "title": "Returns",
        "description": "See the seller's return policy."
      },
      "region": "US",
      "source": "us_pdp_api"
    }
  }
]
```

**Search cards:**

Returned for the United Kingdom, Germany, France, Italy and Spain. US matches also remain search cards when enrichment is unavailable or stopped by a budget limit. This example shows a UK search card; empty fields are omitted for readability.

```json
[
  {
    "product_id": "1234567890123456789",
    "title": "Digital watch with silicone strap",
    "price": "4.97",
    "display_price": "£4.97",
    "currency_symbol": "GBP",
    "original_price": "8.80",
    "discount_percent": "44",
    "sold_count": "2",
    "seller_name": "Example Accessories",
    "seller_id": "5234567890123456789",
    "image_url": "https://example.com/watch-cover.jpg",
    "images": [
      "https://example.com/watch-cover.jpg"
    ],
    "country": "GB",
    "search_image_url": "https://example.com/search-photo.jpg",
    "position": 1,
    "enrichment_level": "search_card",
    "pdp_status": "unsupported_market"
  }
]
```

Related video details can include the video link, caption, creator, publication time, length, dimensions, views, likes, comments, shares and saves. These details appear only when a returned product includes a linked video.

### 📥 Download results

The **Products** view shows a summary of photos, prices, ratings and sellers. Choose **All fields** to see the complete product records, including images, variations, shipping and related videos. When downloading, include all fields to keep these details.

Use [Apify's export options](https://docs.apify.com/storage/dataset) to download:

- 📊 **Excel** for browsing, filtering and sharing a spreadsheet.
- 📄 **CSV** for importing a table into another tool.
- 🧾 **JSON** for keeping grouped details such as additional images and related videos together.

A product appears only once within each image's results. If you search several images, the same product may appear for more than one image.

### 💡 Use cases

- 🔎 **Find similar products by image:** Start with a photo when you do not know the product's name.
- 🏪 **Compare competing listings:** Review prices, sellers, ratings and visible sales figures for similar items.
- 🌍 **Research different markets:** See which listings TikTok returns for the same photo in different countries.
- 📋 **Build a product shortlist:** Download the results and compare the options in a spreadsheet.
- 🗓️ **Repeat your research:** For searches using hosted image links, save your settings as an Apify task to run them again or set up a schedule.

### ❓ FAQ

#### Will it find the exact product in my photo?

TikTok Shop may return the same product or visually similar alternatives. An exact match is not guaranteed. Check the photos and listing details before deciding that two products are identical.

#### Do I need a TikTok account?

No. You do not need to enter TikTok login details to use the hosted Actor.

#### Why did I receive fewer products than requested?

Your chosen number is a maximum, not a guaranteed result count. TikTok may have fewer matches available, or the search may stop early. Products already found are kept in your results.

#### Are these full product descriptions and reviews?

US matches can include full descriptions, specifications, SKU variations and stock when the product page is accessible. Enrichment runs automatically for US results. The United Kingdom and all other supported markets return search cards only. Failed or budget-limited US lookups retain search-card data. Written review text is not collected.

### 🔗 Related Actors

Use your product photo to search other marketplaces with our related image-search Actors:

- **[Scraper by Image - 1688 / Alibaba / AliExpress](https://apify.com/devcake/scraper-by-image):** Find similar products and compare suppliers across 1688, Alibaba, AliExpress, Chinagoods, Yiwugo and Made-in-China.
- **[Scraper by Image - Amazon & eBay](https://apify.com/devcake/amazon-ebay-scraper):** Find similar products on Amazon and eBay from a photo, with prices, ratings and listing links when available.

### 🛟 Troubleshooting and support

- 🔗 **Image link rejected:** Open the link in your browser. It should display the image itself without requiring a login. You can also upload the photo directly.
- 🖼️ **Uploaded image rejected:** Check that it is JPEG, PNG, WEBP or HEIC, no larger than 10 MB, and at most 32 megapixels.
- 🔍 **No products found:** Check your selected market and try a clearer photo focused on one item. The product may not be available in that country's TikTok Shop.
- 📦 **Only some results returned:** Keep the products already found. Retry the image later if you need more matches.

If the problem continues, open the Actor's **Issues** tab and include:

- 🔗 The link to the affected run.
- 🌍 The market you selected.
- 📝 A short description of what went wrong.

# Actor input Schema

## `imageUrls` (type: `array`):

Enter direct image URLs. Up to 10 images in total, including Base64 and uploaded images. Clear the example URL to use only another image input. Duplicate URLs and identical prepared images are searched once. JPEG, PNG, WEBP or HEIC, up to 10 MB and 32 megapixels each. Images accessible only through the market proxy are limited to 512 KiB.

## `country` (type: `string`):

Choose the TikTok Shop market to search. US matches receive product-page (PDP) details automatically when available.

## `maxProducts` (type: `integer`):

Choose the maximum unique products per image, from 26 to 150. The default is 26. TikTok availability and the search budget may limit the number returned.

## `imageBase64` (type: `string`):

Paste one Base64-encoded JPEG, PNG, WEBP or HEIC image, with or without a data:image/...;base64, prefix. The decoded image can be up to 10 MB and 32 megapixels. Large Base64 inputs may exceed Apify's request limit; upload the image instead. Clear the example URL above to search only this image.

## `imageFile` (type: `string`):

Upload one JPEG, PNG, WEBP or HEIC image, up to 10 MB and 32 megapixels. Clear the example URL above to search only the uploaded image.

## Actor input object example

```json
{
  "imageUrls": [
    "https://images.unsplash.com/photo-1523275335684-37898b6baf30?w=1000&q=80"
  ],
  "country": "US",
  "maxProducts": 26
}
```

# Actor output Schema

## `products` (type: `string`):

Product cards found for the submitted images.

## `summary` (type: `string`):

Search status, stop reason, request counts and timing for each image, plus product-detail enrichment counts and timing when enabled.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "imageUrls": [
        "https://images.unsplash.com/photo-1523275335684-37898b6baf30?w=1000&q=80"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("devcake/tiktok-shop-image").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "imageUrls": ["https://images.unsplash.com/photo-1523275335684-37898b6baf30?w=1000&q=80"] }

# Run the Actor and wait for it to finish
run = client.actor("devcake/tiktok-shop-image").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "imageUrls": [
    "https://images.unsplash.com/photo-1523275335684-37898b6baf30?w=1000&q=80"
  ]
}' |
apify call devcake/tiktok-shop-image --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,devcake/tiktok-shop-image"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/NUTeGg7h0m7y6lg3b/builds/RB5QzeNYRjclM2ZXw/openapi.json
