Get Results
curl --request GET \
--url https://api.lobstr.io/v1/results \
--header 'Authorization: <authorization>'import requests
url = "https://api.lobstr.io/v1/results"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.lobstr.io/v1/results', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lobstr.io/v1/results",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lobstr.io/v1/results"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lobstr.io/v1/results")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lobstr.io/v1/results")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"url": "<string>",
"internal_id": "<string>",
"name": "<string>",
"score": 123,
"ratings": 123,
"price": "<string>",
"features": "<string>",
"full_address": "<string>",
"lat": 123,
"lng": 123,
"phone": "<string>",
"website": "<string>",
"menu": "<string>",
"mail": "<string>",
"image_url": "<string>",
"is_claimed": true,
"is_michelin": true
}TripAdvisor Restaurants Search Export
Get Results
Retrieve scraped data from TripAdvisor Restaurants Search Export
GET
/
v1
/
results
Get Results
curl --request GET \
--url https://api.lobstr.io/v1/results \
--header 'Authorization: <authorization>'import requests
url = "https://api.lobstr.io/v1/results"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.lobstr.io/v1/results', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lobstr.io/v1/results",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lobstr.io/v1/results"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lobstr.io/v1/results")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lobstr.io/v1/results")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"url": "<string>",
"internal_id": "<string>",
"name": "<string>",
"score": 123,
"ratings": 123,
"price": "<string>",
"features": "<string>",
"full_address": "<string>",
"lat": 123,
"lng": 123,
"phone": "<string>",
"website": "<string>",
"menu": "<string>",
"mail": "<string>",
"image_url": "<string>",
"is_claimed": true,
"is_michelin": true
}Retrieve scraped data from your TripAdvisor Restaurants Search Export runs.
Headers
string
required
Your API authentication token. Value:
Token YOUR_API_KEYQuery Parameters
string
required
Hash of the squid to get results from
string
Hash of a specific run (optional)
integer
Page number (default: 1). Example:
1Result Fields
Each result object contains the following fields:string
Direct URL to the restaurant listing on TripAdvisor. Example:
https://www.tripadvisor.fr/Restaurant_Review-g187147-d12182791-Reviews-Restaurant_La_Pie_Noir-Paris_Ile_de_France.htmlstring
Unique internal identifier for the restaurant on TripAdvisor. Example:
d12182791string
Name of the restaurant as listed on TripAdvisor. Example:
Restaurant La Pie Noirfloat
Average TripAdvisor rating out of 5. Example:
4.7int
Total number of customer reviews on TripAdvisor. Example:
665string
Price range indicator (e.g. $, $$, $$$). Example:
€€-€€€string
Cuisine types and dining features listed on TripAdvisor. Example:
Française, Européennestring
Full formatted address of the restaurant. Example:
5 Rue de la Montagne Sainte Genevieve, Paris, Île-de-France, 75005, FRfloat
Latitude coordinate of the restaurant. Example:
48.849335float
Longitude coordinate of the restaurant. Example:
2.34875string
Contact phone number of the restaurant. Example:
+33 1 43 54 08 99string
Official website URL of the restaurant
text
URL to the restaurant’s menu on TripAdvisor or its website
string
Email address of the restaurant. Example:
restaurant.lapienoir.bzh@gmail.comstring
URL of the restaurant’s main cover image on TripAdvisor. Example:
https://dynamic-media-cdn.tripadvisor.com/media/photo-o/19/7a/08/cf/side-view-from-the-street.jpgboolean
Whether the restaurant has claimed its TripAdvisor listing. Example:
falseboolean
Whether the restaurant appears in the Michelin Guide. Example:
falseResponse
200
{
"total_results": 1,
"limit": 50,
"page": 1,
"total_pages": 1,
"result_from": 1,
"result_to": 1,
"data": [
{
"id": 30880,
"object": "result",
"squid": "ca2852c60196302c6e4c1e18001a204b",
"run": "93284ed660634fd6d188365ce304cf35",
"url": "https://www.tripadvisor.fr/Restaurant_Review-g187147-d12182791-Reviews-Restaurant_La_Pie_Noir-Paris_Ile_de_France.html",
"internal_id": "d12182791",
"name": "Restaurant La Pie Noir",
"score": 4.7,
"ratings": 665,
"price": "€€-€€€",
"features": "Française, Européenne",
"full_address": "5 Rue de la Montagne Sainte Genevieve, Paris, Île-de-France, 75005, FR",
"lat": 48.849335,
"lng": 2.34875,
"phone": "+33 1 43 54 08 99",
"website": null,
"menu": null,
"mail": "restaurant.lapienoir.bzh@gmail.com",
"image_url": "https://dynamic-media-cdn.tripadvisor.com/media/photo-o/19/7a/08/cf/side-view-from-the-street.jpg",
"is_claimed": false,
"is_michelin": false,
"functions": null,
"native_id": 30880
}
],
"next": null,
"previous": null
}