querystringwajib
Search keywords, e.g. "bookshelf" or "desk".
https://api.sandbase.ai/v1/api/ikea/searchSearch IKEA's US store by keyword and get title, price, rating, and image for each product in one normalized response.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
Search IKEA's US store by keyword and get title, price, rating, and image for each product 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": "ikea/search", "query": "bookshelf"}'
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. "bookshelf" or "desk". |
page | integer | No | 1-based results page of 24 products. Each page is billed as one request. Default 1. |
requireFields | array | No | Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example memberOffer, and it is served only by a source that returns every on |
Billed at the actual cost of each call, about $0.00085 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.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
curl -X POST "https://api.sandbase.ai/v1/api/ikea/search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"query": "bookshelf"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
querystringwajibSearch keywords, e.g. "bookshelf" or "desk".
pageinteger1-based results page of 24 products. Each page is billed as one request.
Default: 1
requireFieldsarrayOptional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `memberOffer`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. Naming a combination that no single source returns together is refused as invalid input, with no charge.
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
IKEA SearchAPI ini IKEA | Dari $0.00085 per panggilan | JSON |
IKEA | $0.00015 per panggilan | JSON Asinkron |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/ikea/search dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
Mulai dari $0.00085 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: query (string). Opsional: page (integer) dan requireFields (array). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron).
Tidak. IKEA Search berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API IKEA secara terpisah.