Target Product Reviews API
Scrape Target.com product reviews instantly with a simple API call
With a GET request to the /api/getter/?platform="target_reviews"
endpoint, you can scrape customer reviews for any product on Target's online store in real-time.
Example
Here's an example showcasing how you can scrape customer reviews for any product on Target.com using its product URL
and the page number we're interested in scraping reviews from.
The results are sorted by recency, so the most recent reviews are on page 1
.
1 |
|
1 2 3 4 5 |
|
1 2 3 |
|
1 2 3 4 5 6 |
|
1 2 3 4 5 6 |
|
Query Parameters
As you can see in the example below, our endpoint needs the following query parameters:
Review Query
url
Required
Parameter defines the URL of the product listing for which you want to query reviews. Value of this parameter must be encoded.
with_photos
Optional
Parameter defines whether you want to query reviews with photos. The default value is false. If you set this parameter to true, the API will return reviews with photos only.
page
Optional
Parameter defines the page number from which you want to query reviews. The default value is 1. Max value 51.
Note
Even when the response mentions the no_of_pages
as greater than 51, the maximum page
number for which you can query reviews with the API is 51.
Other Required Parameters
platform
Required
Parameter specifies the scraping engine you want to invoke. For the Target Reviews API, the value should be target_reviews.
api_key
Required
Parameter defines your account's token. Get your API key for free here.
Note
The value of the query parameter url
must be URL or percent encoded. If you're using Python, this can be done with the function urlencode
.
Results
Each request returns up to 20 reviews. The response will include the following attirbutes for each review present in the response:
Attributes Returned | Data Type | Information Represented |
---|---|---|
id | string | Retailer ID of the review |
date | string | Date when review was published |
author_name | string | Reviewer's name |
rating | int | Rating by reviewer |
review_title | string | Review title |
review_text | string | Review's text content |
review_imgs | array | Array of image URLs for review |
meta_data | dict | Dict containing meta data. For e.g. verified purchase status |
lang_code | string | Language code of the review |
Response Example
Each request returns up to 20 results. Here's the response you can expect for the request showcased above:
{
"success": true,
"url": "https://www.target.com/p/evenflo-classic-clear-bpa-free-plastic-baby-bottle-8oz-3pk/-/A-75568391",
"page": 1,
"total_results": 3,
"no_of_pages": 1,
"result_count": 3,
"reviews": [
{
"id": "d473173b-c2a4-5369-920b-d29605cfe9ae",
"date": "2023-01-14",
"rating": 5,
"review_title": "Get them and add nipples dr brown!",
"review_text": "I wish i knrw this earlier… but this was aw whole game change , so dr brown can be a little pricey, ive bought 2-3 times already the same bottles just because they get yellowsih- old so i bought this and put the size 4 ( for my 9+ baby) nipple… this is a more affordable cheaper way to save money! I saw this from another review and tested it myself and boom! Vuaalaa",
"review_imgs": [
"https://target.scene7.com/is/image/Target/GUEST_7062022d-1273-4fc0-8094-0af979dde448"
],
"author_name": "Amedibar",
"meta_data": {
"verified_purchase": true,
"is_recommended": true,
"helpful_vote_count": 12,
"is_syndicated": false,
"secondary_ratings": {
"design": "5 out of 5",
"safety": "5 out of 5",
"easy to clean": "5 out of 5"
}
},
"lang_code": "en-US"
},
{
"id": "64e139df-33d8-5af6-af49-61caaf54ccea",
"date": "2023-01-12",
"rating": 5,
"review_title": "Great",
"review_text": "Great. Received it ❤️💯💯💯💯💯💯💯",
"review_imgs": [
"https://target.scene7.com/is/image/Target/GUEST_e0e51a59-a78a-4cf5-8a88-4b048be65d35"
],
"author_name": "Classsic",
"meta_data": {
"verified_purchase": false,
"is_recommended": true,
"helpful_vote_count": 0,
"is_syndicated": false,
"secondary_ratings": {
"easy to clean": "5 out of 5",
"design": "5 out of 5",
"safety": "5 out of 5"
}
},
"lang_code": "en-US"
},
{
"id": "29f059f3-b113-5cbc-834f-585cc4714338",
"date": "2022-08-01",
"rating": 1,
"review_title": "Thought I liked these",
"review_text": "Bought 2 packs of the 3 pack from price chopper the inside of these bottles the plastic is peeling had to run out tonight to get new bottles. That needs to be looked into!! God knows how much plastic has peeled off in my sons bottles. Very upset and disappointed.",
"review_imgs": [
"https://target.scene7.com/is/image/Target/GUEST_e0a857e3-0555-4edb-aed9-716348d41b35",
"https://target.scene7.com/is/image/Target/GUEST_aae5b6d2-d2f0-4571-9cf1-3ac1c792d125"
],
"author_name": "Brittanyayer",
"meta_data": {
"verified_purchase": false,
"is_recommended": "",
"helpful_vote_count": 8,
"is_syndicated": true,
"secondary_ratings": {}
},
"lang_code": "en-US"
}
],
"meta_data": {},
"remaining_credits": 5957845.0
}
Request Cost
10 credits are deducted for each successful request
Support
If the response doesn't include the data you need, or if you have any question or feedback, please write to us at support@unwrangle.com