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

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
product
string
required

Target product TCIN or a product URL containing it

Minimum string length: 1
Examples:

"91466170"

"A-91466170"

"https://www.target.com/p/-/A-91466170"

count
integer
required

Max number of recommended products to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
type
enum<string>
default:alternatives

Which recommendation strategy to return for the product

Available options:
alternatives,
also_viewed,
complementary,
deals,
top_performing,
newness,
similar

Response

Successful Response

id
string
required
@type
string
default:@target_recommendation_product
url
string | null
alias
string | null
title
string | null
price
number | null
list_price
number | null
currency
string | null
save_percent
number | null
is_on_sale
boolean | null
image
string | null
badges
string[]
rating
number | null
rating_count
integer | null