Skip to content

Tesco Product Reviews API

Scrape Tesco product reviews instantly with a simple API call

🆕: December 10, 2024

A GET request to our /api/getter/?platform="tesco_reviews" endpoint allows you to scrape customer reviews for any product using the Tesco Product Number (TPN).

Example

Here's how you can scrape customer reviews for any product on Tesco:

1
curl 'https://data.unwrangle.com/api/getter/?platform=tesco_reviews&tpn=53441318&api_key=API_KEY'
1
2
3
4
5
import requests

url = 'https://data.unwrangle.com/api/getter/?platform=tesco_reviews&tpn=53441318&api_key=API_KEY'
response = requests.get(url)
print(response.json())
1
2
3
const response = await fetch('https://data.unwrangle.com/api/getter/?platform=tesco_reviews&tpn=53441318&api_key=API_KEY')
const data = await response.json()
console.log(data)
1
2
3
4
5
6
<?php
$url = 'https://data.unwrangle.com/api/getter/?platform=tesco_reviews&tpn=53441318&api_key=API_KEY';
$response = file_get_contents($url);
$data = json_decode($response, true);
print_r($data);
?>
1
2
3
4
5
6
require 'net/http'
require 'uri'

uri = URI.parse('https://data.unwrangle.com/api/getter/?platform=tesco_reviews&tpn=53441318&api_key=API_KEY')
response = Net::HTTP.get(uri)
puts response

Query Parameters

As you can see in the example below, our endpoint needs the following query parameters:

Review Query

tpn

Required

Tesco Product Number (TPN) for the product. To get the TPN, use the Tesco Product Data API.

Other Required Parameters

platform

Required

Specifies the scraping engine you wish to invoke. In this case, the value should be tesco_reviews.

api_key

Required

Your account's token—which can be obtained by signing up here.

Results

Each request returns up to 6 reviews. The response will include the following attributes for each review present in the response:

Attributes Returned Data Type Information Represented
review_id string Unique ID of the review
date string Date when review was published
rating int Rating by reviewer
review_title string Review title (if available)
review_text string Review's text content
author_name string Reviewer's name
meta_data dict Dict containing meta data like verified purchase status and syndication details

Response Example

Each request returns up to 6 results. Here's the response you can expect for the request showcased above:

{
    "success": true,
    "tpn": "53441318",
    "page": 1,
    "total_results": 6,
    "no_of_pages": 1,
    "result_count": 6,
    "reviews": [
        {
            "review_id": "df177fb7-c49b-4271-912c-fabba9592d7f",
            "date": "2023-12-01",
            "rating": 1,
            "author_name": "A Tesco Customer",
            "review_title": null,
            "review_text": "I just noticed this tea is so bad, I'm suspicion the new packaging will ruin Tetley, metallic flavour",
            "meta_data": {
                "verified_purchase": true,
                "is_syndicated": false,
                "syndication_source": null
            }
        },
        ...
    ],
    "meta_data": {},
    "remaining_credits": 1956311
}

Request Cost

10 credits are deducted for each successful request

Support

If you want to add a parameter to our response, or have any question or feedback, please write to us at support@unwrangle.com