ShopeeApi

FREEMIUM
By kangazib | Updated 2 months ago | Commerce
Popularity

9.1 / 10

Latency

492ms

Service Level

96%

Health Check

N/A

Back to All Discussions

not working example

Rapid account: Felipersl 05
felipersl05
9 months ago

<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => “https://shopeeapi2.p.rapidapi.com/br/search?q=vestido”,
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-RapidAPI-Host: shopeeapi2.p.rapidapi.com”,
“X-RapidAPI-Key: xxxxx”
],
]);

response=curlexec(response = curl_exec(curl);
err=curlerror(err = curl_error(curl);

curl_close($curl);

if ($err) {
echo “cURL Error #:” . $err;
} else {
echo $response;
}

Join in the discussion - add comment below:

Login / Signup to post new comments