qstring
Product search query.
https://api.sandbase.ai/v1/api/aliexpress/search/productsSearch AliExpress products by keyword with sort, category, brand, price, locale, region and currency filters.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
Search AliExpress products by keyword with sort, category, brand, price, locale, region and currency filters.
The response is the platform's original data structure.
curl -X POST "https://api.sandbase.ai/v1/api/aliexpress/search/products" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"q": "phone case"}'
| Name | Type | Required | Description |
|---|---|---|---|
q | string | No | Product search query. |
page | string | No | One-based page number for pagination. |
sort | string | No | Sort order for product search results. |
catId | string | No | Category ID used to filter product search results. |
brandId | string | No | Brand ID used to filter product search results. |
loc | string | No | Location filter for product search results. |
switches | string | No | Search switches used to select optional result features. |
attr | string | No | Product attribute filter for search results. |
startPrice | number | No | Minimum product price filter, inclusive. |
endPrice | number | No | Maximum product price filter, inclusive. |
locale | string | No | Locale used for the AliExpress response. |
region | string | No | AliExpress marketplace region. |
currency | string | No | Currency code used for product prices. |
Flat price per call. Failed calls and empty results are not charged.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
curl -X POST "https://api.sandbase.ai/v1/api/aliexpress/search/products" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"q": "phone case",
"sort": "default"
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
qstringProduct search query.
pagestringOne-based page number for pagination.
sortstringSort order for product search results.
Domyślnie: "default"
Możliwe wartości: default, salesDesc, priceAsc, priceDesc
catIdstringCategory ID used to filter product search results.
brandIdstringBrand ID used to filter product search results.
locstringLocation filter for product search results.
switchesstringSearch switches used to select optional result features.
attrstringProduct attribute filter for search results.
startPricenumberMinimum product price filter, inclusive.
endPricenumberMaximum product price filter, inclusive.
localestringLocale used for the AliExpress response.
regionstringAliExpress marketplace region.
currencystringCurrency code used for product prices.
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
AliExpress | $0.014286 za wywołanie | JSON |
AliExpress | Od $0.00085 za wywołanie | JSON |
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/aliexpress/search/products z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
$0.014286 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Nie są wymagane żadne parametry. Opcjonalne: q (string), page (string), sort (jedna z opcji: default, salesDesc, priceAsc, priceDesc), catId (string), brandId (string) i loc (string) i jeszcze 7. Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie).
Nie. AliExpress Product Search działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API AliExpress.