querystringwymagane
Search keywords, e.g. "airpods" or "laptop".
https://api.sandbase.ai/v1/api/slickdeals/searchSearch Slickdeals deals by keyword with optional sort, price, discount, and page filters and get title, price, list price, store, score, and comment count for each deal in one normalized response.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
Search Slickdeals deals by keyword with optional sort, price, discount, and page filters and get title, price, list price, store, score, and comment count for each deal in one normalized response.
curl -X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "slickdeals/search", "query": "airpods"}'
The result is returned in outputs[0].data. Lookups that find nothing fail with a not-found error.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search keywords, e.g. "airpods" or "laptop". |
hideExpired | boolean | No | Optional; true leaves out deals the community marked expired. |
maxPrice | number | No | Optional maximum deal price in USD; deals without a numeric price are left out. |
minDiscount | integer | No | Optional; keep only deals at least this many percent off the list price, e.g. 50. |
minPrice | number | No | Optional minimum deal price in USD; deals without a numeric price are left out. |
page | integer | No | 1-based page of 40 deals; Slickdeals stops at page 25. Each page is billed as one request. Default 1. |
sort | string | No | Result order; omit for Slickdeals' relevance order (e.g. new for the most recently posted deals first). One of: best_match, new, popular, price_low, price_high. |
Billed at the actual cost of each call, about $0.00213 per request. A call can cost more when the first data source fails and another one answers. Failed calls and lookups that find nothing 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/slickdeals/search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"query": "airpods"
}'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.
querystringwymaganeSearch keywords, e.g. "airpods" or "laptop".
pageinteger1-based page of 40 deals; Slickdeals stops at page 25. Each page is billed as one request.
Domyślnie: 1
sortstringResult order; omit for Slickdeals' relevance order (e.g. new for the most recently posted deals first).
Możliwe wartości: best_match, new, popular, price_low, price_high
maxPricenumberOptional maximum deal price in USD; deals without a numeric price are left out.
minPricenumberOptional minimum deal price in USD; deals without a numeric price are left out.
hideExpiredbooleanOptional; true leaves out deals the community marked expired.
minDiscountintegerOptional; keep only deals at least this many percent off the list price, e.g. 50.
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ź |
|---|---|---|
Slickdeals SearchTo API Slickdeals | Od $0.00213 za wywołanie | JSON |
Slickdeals | Od $0.00213 za wywołanie | JSON |
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/slickdeals/search 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.
Od $0.00213 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Wymagane: query (string). Opcjonalne: page (integer), sort (jedna z opcji: best_match, new, popular, price_low, price_high), maxPrice (number), minPrice (number), hideExpired (boolean) i minDiscount (integer). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie).
Nie. Slickdeals 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 Slickdeals.