Skip to main content
POST
/
api
/
target
/
products
/
search
/target/products/search
curl --request POST \
  --url https://api.anysite.io/api/target/products/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "keyword": "<string>",
  "count": 600,
  "timeout": 300,
  "sort": "relevance"
}
'
[
  {
    "id": "<string>",
    "@type": "@target_product_card",
    "url": "<string>",
    "alias": "<string>",
    "title": "<string>",
    "brand": "<string>",
    "price": 123,
    "list_price": 123,
    "currency": "<string>",
    "save_percent": 123,
    "is_on_sale": true,
    "image": "<string>",
    "rating": 123,
    "rating_count": 123
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
keyword
string
required

Search keyword

Minimum string length: 1
Examples:

"laptop"

"running shoes"

count
integer
required

Max number of products to return

Required range: 1 <= x <= 1200
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
sort
enum<string>
default:relevance

Result ordering

Available options:
relevance,
featured,
price_low,
price_high,
rating,
bestselling,
newest

Response

Successful Response

id
string
required
@type
string
default:@target_product_card
url
string | null
alias
string | null
title
string | null
brand
string | null
price
number | null
list_price
number | null
currency
string | null
save_percent
number | null
is_on_sale
boolean | null
image
string | null
rating
number | null
rating_count
integer | null