/dhgate/stores
curl --request POST \
--url https://api.anysite.io/api/dhgate/stores \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"store": "<string>",
"timeout": 300,
"currency": "USD",
"ship_to_country": "US"
}
'import requests
url = "https://api.anysite.io/api/dhgate/stores"
payload = {
"store": "<string>",
"timeout": 300,
"currency": "USD",
"ship_to_country": "US"
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({store: '<string>', timeout: 300, currency: 'USD', ship_to_country: 'US'})
};
fetch('https://api.anysite.io/api/dhgate/stores', 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.anysite.io/api/dhgate/stores",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'store' => '<string>',
'timeout' => 300,
'currency' => 'USD',
'ship_to_country' => 'US'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anysite.io/api/dhgate/stores"
payload := strings.NewReader("{\n \"store\": \"<string>\",\n \"timeout\": 300,\n \"currency\": \"USD\",\n \"ship_to_country\": \"US\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/dhgate/stores")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"store\": \"<string>\",\n \"timeout\": 300,\n \"currency\": \"USD\",\n \"ship_to_country\": \"US\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/dhgate/stores")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"store\": \"<string>\",\n \"timeout\": 300,\n \"currency\": \"USD\",\n \"ship_to_country\": \"US\"\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"@type": "DhgateStore",
"seller_id": "<string>",
"name": "<string>",
"url": "<string>",
"country": "<string>",
"opened_at": "<string>",
"positive_feedback_percent": 123,
"transaction_count": 123,
"positive_review_count": 123,
"review_score": 123,
"service_scores": [],
"feedback_last_2_months": {
"@type": "DhgateStoreFeedbackWindow",
"positive": 123,
"neutral": 123,
"negative": 123
},
"feedback_last_6_months": {
"@type": "DhgateStoreFeedbackWindow",
"positive": 123,
"neutral": 123,
"negative": 123
},
"feedback_last_12_months": {
"@type": "DhgateStoreFeedbackWindow",
"positive": 123,
"neutral": 123,
"negative": 123
},
"feedback_total": {
"@type": "DhgateStoreFeedbackWindow",
"positive": 123,
"neutral": 123,
"negative": 123
},
"service_detail_scores": []
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}/dhgate
/dhgate/stores
Get a single DHgate store (seller) by id or store URL. Returns the store name, location, opening date, description, positive feedback percentage, transaction count, positive review count, overall review score, DHgate service scores (on-time delivery, repurchase rate), the positive/neutral/negative feedback breakdown over the last 2, 6 and 12 months and in total, and the service-detail scores (items as described, communication, delivery time, shipping charges).
Price: 10 credits
⚠️ Common errors: 412: Store not found on DHgate
POST
/
api
/
dhgate
/
stores
/dhgate/stores
curl --request POST \
--url https://api.anysite.io/api/dhgate/stores \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"store": "<string>",
"timeout": 300,
"currency": "USD",
"ship_to_country": "US"
}
'import requests
url = "https://api.anysite.io/api/dhgate/stores"
payload = {
"store": "<string>",
"timeout": 300,
"currency": "USD",
"ship_to_country": "US"
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({store: '<string>', timeout: 300, currency: 'USD', ship_to_country: 'US'})
};
fetch('https://api.anysite.io/api/dhgate/stores', 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.anysite.io/api/dhgate/stores",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'store' => '<string>',
'timeout' => 300,
'currency' => 'USD',
'ship_to_country' => 'US'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anysite.io/api/dhgate/stores"
payload := strings.NewReader("{\n \"store\": \"<string>\",\n \"timeout\": 300,\n \"currency\": \"USD\",\n \"ship_to_country\": \"US\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/dhgate/stores")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"store\": \"<string>\",\n \"timeout\": 300,\n \"currency\": \"USD\",\n \"ship_to_country\": \"US\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/dhgate/stores")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"store\": \"<string>\",\n \"timeout\": 300,\n \"currency\": \"USD\",\n \"ship_to_country\": \"US\"\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"@type": "DhgateStore",
"seller_id": "<string>",
"name": "<string>",
"url": "<string>",
"country": "<string>",
"opened_at": "<string>",
"positive_feedback_percent": 123,
"transaction_count": 123,
"positive_review_count": 123,
"review_score": 123,
"service_scores": [],
"feedback_last_2_months": {
"@type": "DhgateStoreFeedbackWindow",
"positive": 123,
"neutral": 123,
"negative": 123
},
"feedback_last_6_months": {
"@type": "DhgateStoreFeedbackWindow",
"positive": 123,
"neutral": 123,
"negative": 123
},
"feedback_last_12_months": {
"@type": "DhgateStoreFeedbackWindow",
"positive": 123,
"neutral": 123,
"negative": 123
},
"feedback_total": {
"@type": "DhgateStoreFeedbackWindow",
"positive": 123,
"neutral": 123,
"negative": 123
},
"service_detail_scores": []
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
API token from the dashboard
Headers
Body
application/json
Minimum string length:
1Required range:
20 <= x <= 1500Available options:
USD, EUR, GBP, CAD, AUD, JPY, RUB, BRL, INR, MXN, KRW, TRY, SEK, NOK, DKK, PLN, CHF, NZD, SGD, HKD, THB, ILS, AED, SAR, ZAR, CZK Available options:
US, GB, CA, AU, DE, FR, IT, ES, NL, BE, SE, NO, DK, FI, IE, PT, PL, CH, AT, CZ, GR, RU, BR, MX, CL, AR, JP, KR, CN, HK, TW, SG, MY, TH, ID, PH, VN, IN, AE, SA, IL, TR, ZA, NZ Response
Successful Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes