Farfetch Product
curl --request GET \
--url https://app.retailed.io/api/v1/scraper/farfetch/product \
--header 'x-api-key: <x-api-key>'import requests
url = "https://app.retailed.io/api/v1/scraper/farfetch/product"
headers = {"x-api-key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
fetch('https://app.retailed.io/api/v1/scraper/farfetch/product', 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://app.retailed.io/api/v1/scraper/farfetch/product",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <x-api-key>"
],
]);
$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://app.retailed.io/api/v1/scraper/farfetch/product"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.retailed.io/api/v1/scraper/farfetch/product")
.header("x-api-key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.retailed.io/api/v1/scraper/farfetch/product")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"id": "22100594",
"name": "Odissea slip-on sneakers",
"brand": "Versace",
"price": 1277,
"gender": "men",
"images": [
"https://cdn-images.farfetch-contents.com/22/10/05/94/22100594_52388921_1000.jpg",
"https://cdn-images.farfetch-contents.com/22/10/05/94/22100594_52379185_1000.jpg",
"https://cdn-images.farfetch-contents.com/22/10/05/94/22100594_52379154_1000.jpg",
"https://cdn-images.farfetch-contents.com/22/10/05/94/22100594_52379161_1000.jpg"
],
"description": "Versace merges a futuristic aesthetic with its house hallmarks in the design of these slip-on Odissea sneakers. Rendered in black, they’re defined by sharp contoured lines and a three-dimensional Medusa plaque at the front.",
"price_currency": "USD"
}
Farfetch
Farfetch Product
Get product information from Farfetch
GET
/
api
/
v1
/
scraper
/
farfetch
/
product
Farfetch Product
curl --request GET \
--url https://app.retailed.io/api/v1/scraper/farfetch/product \
--header 'x-api-key: <x-api-key>'import requests
url = "https://app.retailed.io/api/v1/scraper/farfetch/product"
headers = {"x-api-key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
fetch('https://app.retailed.io/api/v1/scraper/farfetch/product', 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://app.retailed.io/api/v1/scraper/farfetch/product",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <x-api-key>"
],
]);
$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://app.retailed.io/api/v1/scraper/farfetch/product"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.retailed.io/api/v1/scraper/farfetch/product")
.header("x-api-key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.retailed.io/api/v1/scraper/farfetch/product")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"id": "22100594",
"name": "Odissea slip-on sneakers",
"brand": "Versace",
"price": 1277,
"gender": "men",
"images": [
"https://cdn-images.farfetch-contents.com/22/10/05/94/22100594_52388921_1000.jpg",
"https://cdn-images.farfetch-contents.com/22/10/05/94/22100594_52379185_1000.jpg",
"https://cdn-images.farfetch-contents.com/22/10/05/94/22100594_52379154_1000.jpg",
"https://cdn-images.farfetch-contents.com/22/10/05/94/22100594_52379161_1000.jpg"
],
"description": "Versace merges a futuristic aesthetic with its house hallmarks in the design of these slip-on Odissea sneakers. Rendered in black, they’re defined by sharp contoured lines and a three-dimensional Medusa plaque at the front.",
"price_currency": "USD"
}
Header
Parameter defines the Retailed private key to use.
Parameters
Product URL (
simple or extended mode) or product Id (only for extended mode)The mode field allows you to choose between two extraction modes for the product information:
simple mode : This mode quickly extracts the main information from the product page. It includes basic details such as the product name, price, and description.extended mode : Using this argument, all available information about the product and its variants will be extracted. This includes not only the basic details but also additional information such as available sizes and colors, materials, customer reviews, and other specific details related to the product variants.Country code :
UK, FR, etc.Language code :
en-GB, fr-FR, etc.{
"id": "22100594",
"name": "Odissea slip-on sneakers",
"brand": "Versace",
"price": 1277,
"gender": "men",
"images": [
"https://cdn-images.farfetch-contents.com/22/10/05/94/22100594_52388921_1000.jpg",
"https://cdn-images.farfetch-contents.com/22/10/05/94/22100594_52379185_1000.jpg",
"https://cdn-images.farfetch-contents.com/22/10/05/94/22100594_52379154_1000.jpg",
"https://cdn-images.farfetch-contents.com/22/10/05/94/22100594_52379161_1000.jpg"
],
"description": "Versace merges a futuristic aesthetic with its house hallmarks in the design of these slip-on Odissea sneakers. Rendered in black, they’re defined by sharp contoured lines and a three-dimensional Medusa plaque at the front.",
"price_currency": "USD"
}
Was this page helpful?
⌘I

