GET
/
search
Ürün araması yap
curl --request GET \
  --url https://api.hemenmagaza.com/v1/search \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": 123,
      "sku": "<string>",
      "name": "<string>",
      "slug": "<string>",
      "price": 123,
      "currency": "<string>",
      "stock": 123,
      "description": "<string>",
      "regular_price": 123,
      "images": [
        "<string>"
      ],
      "categories": [
        {
          "id": 123,
          "name": "<string>",
          "slug": "<string>",
          "parent_id": 123,
          "image_url": "<string>",
          "children": "<array>",
          "seo": {
            "title": "<string>",
            "description": "<string>",
            "og_image": "<string>"
          }
        }
      ],
      "variants": [
        {
          "id": 123,
          "sku": "<string>",
          "price": 123,
          "stock": 123,
          "attributes": {}
        }
      ],
      "seo": {
        "title": "<string>",
        "description": "<string>",
        "og_image": "<string>"
      },
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "meta": {
    "page": 123,
    "limit": 123,
    "total": 123,
    "total_pages": 123
  }
}

Authorizations

Authorization
string
header
required

Authorization: Bearer YOUR_API_TOKEN

Query Parameters

q
string
required

Arama metni.

Example:

"elbise"

page
integer
default:1

Sayfa numarası.

Required range: x >= 1
limit
integer
default:20

Sayfa başına kayıt sayısı.

Required range: 1 <= x <= 100

Response

Arama sonucu.

data
object[]
required
meta
object
required