# TikTok Shop Search Product by Photo/Image (`rogertkart/tiktok-shop-search-by-photo`) Actor

TikTok Shop reverse image search. Find products from a photo using mobile API response structures. This Actor is optimized for fast, structured JSON output and supports multiple regions. Free Apify accounts: 10 image searches per user.

- **URL**: https://apify.com/rogertkart/tiktok-shop-search-by-photo.md
- **Developed by:** [Rogert kart](https://apify.com/rogertkart) (community)
- **Stats:** 1 total users, 0 monthly users, 68.2% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $0.10 / image search

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Search Product by Photo/Image

TikTok Shop reverse image search. Find products from a photo using mobile API response structures.\
This Actor is optimized for fast, structured JSON output and supports multiple regions.

**Free Apify accounts:** 10 image searches per user.

#### Key Benefits

- **Visual search:** Find similar TikTok Shop listings from a product photo.
- **Flexible image input:** Upload a file, paste a public image URL, or provide base64 (png/jpg/jpeg/webp, max 2MB).
- **Automatic pagination:** Loads all matching result pages until no more products remain.
- **Multi-region support:** Optional region across 16 TikTok Shop markets.
- **Clean dataset:** Product ID, title, price, currency, discount, rating, sold count, shop ID, and image.

***

#### Input

**A product photo is required.** Provide **one** of `imageUpload`, `imageUrl`, or `imageBase64`. Without an image, the run fails and nothing is charged.

`query` and `region` are optional — they only refine photo results (they cannot be used alone).

```json
{
  "imageUrl": "https://example.com/product.png",
  "query": "mobile",
  "region": "VN"
}
```

##### Parameters

- `imageUpload` (optional\*): Upload a product photo from your device. Used first if provided.
- `imageUrl` (optional\*): Public URL of the product photo.
- `imageBase64` (optional\*): Base64 image (`png` / `jpg` / `jpeg` / `webp`, max 2MB).
- `query` (optional): Text query to refine photo matches. Does nothing without an image.
- `region` (optional): TikTok Shop market filter. Does nothing without an image. Codes: `US`, `GB`, `DE`, `FR`, `IT`, `ID`, `MY`, `MX`, `PH`, `SG`, `ES`, `TH`, `VN`, `BR`, `JP`, `IE`.

\* Exactly one image input is required (`imageUpload`, `imageUrl`, or `imageBase64`).

***

#### Output

Each dataset item is one matching product:

```json
{
  "productId": "1735244291042543036",
  "title": "Sơn Xóa Vết Xước Xe MAZDA 6 Màu ĐỎ ÁNH KIM Chính Hãng DR.Paint COMBO 2 BÌNH",
  "showPrice": "₫441.150",
  "salesPrice": "441.150",
  "originalPrice": "599.000",
  "currency": "₫",
  "discountRate": "26%",
  "rate": "4.8",
  "sold": "128",
  "shopId": "7494693484701977020",
  "image": "https://p16-oec-sg.ibyteimg.com/tos-alisg-i-aphluv4xwc-sg/9848aed65c2847caa5c85ec46c101037~tplv-aphluv4xwc-resize-webp:400:400.webp",
  "productType": "same_type",
  "searchResultId": "1735244291042543036",
  "region": "VN",
  "query": "mobile"
}
```

A full run may include many items across all result pages.

***

#### Pricing

This Actor uses **pay per event** pricing.

| Event | Price | Package |
| --- | --- | --- |
| `image-search` | **$0.10** per image | **100 images = $10.00** |

**Free Apify accounts:** 10 image searches per user. Paid plans are unlimited (billed per successful search).

- Charged once per successful image search that returns at least one product (all pages included).
- Actor start is a tiny platform fee.

***

#### Common Use Cases

- **Find lookalike products:** Match competitor or viral product photos to TikTok Shop listings.
- **Price research:** Compare prices, discounts, and sold counts for visually similar items.
- **Catalog sourcing:** Build a list of similar products by image across regions.
- **Creative QA:** Check whether a product photo returns the expected TikTok Shop matches.

***

#### Notes

- Provide a clear product photo for best matches. An image is mandatory.
- `query` and `region` only refine photo search; they cannot replace the image.
- Some fields (such as rating or sold count) may be empty depending on the product and region.
- Each successful search returns all matching product pages for **$0.10**.
- Run responsibly and ensure your usage complies with applicable platform terms and laws.

***

#### Support

If you need custom fields, region coverage, or pipeline help, use the **Issues / Contact** options on this Actor page.

# Actor input Schema

## `imageUpload` (type: `string`):

Required unless you use Image URL or Image Base64. Upload a product photo from your device. Used first if provided.

## `imageUrl` (type: `string`):

Required unless you upload a file or use Image Base64. Public URL of the product photo.

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

Required unless you upload a file or use Image URL. Base64 image (png/jpg/jpeg/webp, max 2MB).

## `query` (type: `string`):

Optional. Refines photo matches with text. Does nothing without an image.

## `region` (type: `string`):

Optional. TikTok Shop market to search. Does nothing without an image.

## Actor input object example

```json
{
  "imageUrl": "https://p16-oec-sg.ibyteimg.com/tos-alisg-i-aphluv4xwc-sg/b0f467a3f1074a279313365992f64ce0~tplv-aphluv4xwc-resize-webp:400:400.webp",
  "query": "mobile",
  "region": "VN"
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset of matching TikTok Shop products

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("rogertkart/tiktok-shop-search-by-photo").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("rogertkart/tiktok-shop-search-by-photo").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 '{}' |
apify call rogertkart/tiktok-shop-search-by-photo --silent --output-dataset

```

## MCP server setup

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

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/t3xOCH92CO9XRgQUC/builds/QCnsLzwl3La1ABE6m/openapi.json
