---
title: "SNIPES API: Search | Perceptlayer"
description: "Search from SNIPES as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/snipes/search
---

[APIs](https://perceptlayer.com/apis) / [SNIPES](https://perceptlayer.com/apis/snipes) / Search

# SNIPES: Search

Search from SNIPES as JSON. 1 credit per successful call.

GET `/v1/snipes/search`

## Parameters

Send parameters in the query string.

Required Send `query` or `category`.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | Optional | Up to 100 characters |
| `category` | string | Optional | Any |
| `locale` | string | Optional | de |
| `page` | integer | Optional | Any |
| `perPage` | integer | Optional | 12, 24, 48 |
| `sort` | string | Optional | default, newest, price\_asc, price\_desc, reduction |
| `size` | string | Optional | Up to 200 characters |
| `color` | string | Optional | Up to 200 characters |
| `brand` | string | Optional | Up to 200 characters |
| `sale` | string | Optional | true, false, 1, 0 |

## Example request

SNIPES

GET /v1/snipes/search?query=nike&locale=de&perPage=12&sort=price\_asc&sale=true 

```
{
  "success": true,
  "data": {
    "locale": "de",
    "currency": "EUR",
    "products": [
      {
        "id": "164",
        "master_key": "m02006139",
        "reference_key": "01689600",
        "name": "Swoosh Skills (Size 3)",
        "brand": {
          "id": "392",
          "name": "Nike"
        },
        "color": "Pink",
        "url": "/p/nike-swoosh-skills-size-3-pink-164",
        "image": "https://asset.snipes.com/images/f_auto,q_100,d_fallback-sni.png/c_pad,w_680,h_680/dpr_1.0/01689600_1/image",
        "images": [
          "https://asset.snipes.com/images/f_auto,q_100,d_fallback-sni.png/c_pad,w_680,h_680/dpr_1.0/01689600_1/image",
          "https://asset.snipes.com/images/f_auto,q_100,d_fallback-sni.png/c_pad,w_680,h_680/dpr_1.0/01689600_2/image"
        ],
        "price": {
          "current": 5,
          "original": 16.99,
          "currency": "EUR",
          "on_sale": true,
          "discount_percent": 70.6,
          "discount_amount": 11.99
        },
        "formatted_price": "5,00 €",
        "sizes": [
          {
            "size": "ONE SIZE",
            "variant_id": "807",
            "stock": 104,
            "in_stock": true,
            "supplier_id": "1",
            "warehouse_id": "1",
            "sellable_without_stock": false,
            "price": "5,00 €"
          }
        ],
        "stock": 104,
        "first_live_at": "2024-07-12T02:52:10Z"
      },
      {
        "id": "101677",
        "master_key": "m02308541",
        "reference_key": "02633390",
        "name": "6 PACK - Swoosh Infant Ankle Sock",
        "brand": {
          "id": "392",
          "name": "Nike"
        },
        "color": "Blau",
        "url": "/p/nike-6-pack-swoosh-infant-ankle-sock-blau-101677",
        "image": "https://asset.snipes.com/images/f_auto,q_100,d_fallback-sni.png/c_pad,w_680,h_680/dpr_1.0/02633390_1/image",
        "images": [
          "https://asset.snipes.com/images/f_auto,q_100,d_fallback-sni.png/c_pad,w_680,h_680/dpr_1.0/02633390_1/image",
          "https://asset.snipes.com/images/f_auto,q_100,d_fallback-sni.png/c_pad,w_680,h_680/dpr_1.0/02633390_2/image"
        ],
        "price": {
          "current": 7.5,
          "original": 14.99,
          "currency": "EUR",
          "on_sale": true,
          "discount_percent": 50,
          "discount_amount": 7.49
        },
        "formatted_price": "7,50 €",
        "sizes": [
          {
            "size": "6M-12M",
            "variant_id": "488106",
            "stock": 2,
            "in_stock": true,
            "supplier_id": "1",
            "warehouse_id": "1",
            "sellable_without_stock": false,
            "price": "7,50 €"
          }
        ],
        "stock": 2,
        "first_live_at": "2026-07-16T01:14:53Z"
      },
      {
        "id": "1135",
        "master_key": "m02006139",
        "reference_key": "02006139",
        "name": "Swoosh Skills (Size 3)",
        "brand": {
          "id": "392",
          "name": "Nike"
        },
        "color": "Orange",
        "url": "/p/nike-swoosh-skills-size-3-orange-1135",
        "image": "https://asset.snipes.com/images/f_auto,q_100,d_fallback-sni.png/c_pad,w_680,h_680/dpr_1.0/02006139_1/image",
        "images": [
          "https://asset.snipes.com/images/f_auto,q_100,d_fallback-sni.png/c_pad,w_680,h_680/dpr_1.0/02006139_1/image",
          "https://asset.snipes.com/images/f_auto,q_100,d_fallback-sni.png/c_pad,w_680,h_680/dpr_1.0/02006139_2/image"
        ],
        "price": {
          "current": 8.5,
          "original": 16.99,
          "currency": "EUR",
          "on_sale": true,
          "discount_percent": 50,
          "discount_amount": 8.49
        },
        "formatted_price": "8,50 €",
        "sizes": [
          {
            "size": "ONE SIZE",
            "variant_id": "6007",
            "stock": 1,
            "in_stock": true,
            "supplier_id": "1",
            "warehouse_id": "1",
            "sellable_without_stock": false,
            "price": "8,50 €"
          }
        ],
        "stock": 1,
        "first_live_at": "2024-07-12T02:29:29Z"
      }
    ],
    "pagination": {
      "page": 1,
      "per_page": 12,
      "total_pages": 70,
      "total_results": 840,
      "has_next_page": true
    },
    "sort": "asc",
    "facets": [
      {
        "code": "targetGroup",
        "name": "Geschlecht",
        "min_value": 0,
        "max_value": 0,
        "values": [
          {
            "id": "318717",
            "code": "men-318717",
            "name": "Herren",
            "count": 595
          },
          {
            "id": "318718",
            "code": "women-318718",
            "name": "Damen",
            "count": 413
          },
          {
            "id": "318716",
            "code": "children-318716",
            "name": "Kinder",
            "count": 247
          }
        ]
      },
      {
        "code": "brand",
        "name": "Marke",
        "min_value": 0,
        "max_value": 0,
        "values": [
          {
            "id": "392",
            "code": "nike_1-392",
            "name": "Nike",
            "count": 1034
          },
          {
            "id": "1106",
            "code": "nike_nocta-1106",
            "name": "Nike Nocta",
            "count": 18
          },
          {
            "id": "1108",
            "code": "nike_sb-1108",
            "name": "Nike SB",
            "count": 3
          }
        ]
      },
      {
        "code": "size",
        "name": "Größe",
        "min_value": 0,
        "max_value": 0,
        "values": [
          {
            "id": "459",
            "code": "xs_1-459",
            "name": "XS",
            "count": 166
          },
          {
            "id": "460",
            "code": "s-460",
            "name": "S",
            "count": 370
          },
          {
            "id": "1225168",
            "code": "s_m-1225168",
            "name": "S/ M",
            "count": 3
          }
        ]
      }
    ],
    "sorts": [
      {
        "code": "default"
      },
      {
        "code": "new-desc"
      },
      {
        "code": "price-asc"
      }
    ]
  },
  "meta": {
    "endpoint_family": "search",
    "request_id": "req_2e27909833024e9dbbd0ec3b2b631fb7",
    "credits_charged": 1,
    "credits_remaining": 4865
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

[Run this endpoint in the playground](https://perceptlayer.com/apis/snipes?try=search#playground) with your own parameters. 1 credit per successful call; failed calls are free.

## Response fields

`data` has these 5 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `locale` | string |
| `currency` | string |
| `products` | object\[\] |
| `pagination` | object |
| `sorts` | object\[\] |
