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

[APIs](https://perceptlayer.com/apis) / [PriceSpy](https://perceptlayer.com/apis/pricespy) / Search

# PriceSpy: Search

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

GET `/v1/pricespy/search`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `q` | string | Required | Up to 200 characters Search text. |
| `category` | string | Optional | Up to 120 characters Category id, from categories. |

## Example request

PriceSpy

GET /v1/pricespy/search?q=iphone+16 

```
{
  "products": [
    {
      "id": "13854649",
      "name": "Apple iPhone 16 128GB",
      "price": {
        "value": 509.99,
        "currency": "GBP"
      },
      "category": "Mobile Phones",
      "category_id": 103,
      "image": "https://cdn.pji.nu/product/standard/800/13854649.jpg?height=280&width=280",
      "url": "https://pricespy.co.uk/product.php?p=13854649"
    },
    {
      "id": "14468246",
      "name": "Apple iPhone 16e 128GB",
      "price": {
        "value": 429.99,
        "currency": "GBP"
      },
      "category": "Mobile Phones",
      "category_id": 103,
      "image": "https://media.pji.nu/e25438fb-8d15-40ad-b348-1a1f94e6c70c.webp?height=280&width=280",
      "url": "https://pricespy.co.uk/product.php?p=14468246"
    },
    {
      "id": "13854637",
      "name": "Apple iPhone 16 Plus 128GB",
      "price": {
        "value": 599.99,
        "currency": "GBP"
      },
      "category": "Mobile Phones",
      "category_id": 103,
      "image": "https://cdn.pji.nu/product/standard/800/13854637.jpg?height=280&width=280",
      "url": "https://pricespy.co.uk/product.php?p=13854637"
    }
  ],
  "total": 1000,
  "page": 1,
  "pagination": {
    "page": 1,
    "has_more": false,
    "note": "First result page only."
  },
  "success": true,
  "meta": {
    "attempts": 1,
    "request_id": "req_97e40bd39575462b811157a9919f8c9b",
    "credits_charged": 1,
    "credits_remaining": 1738
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

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

## Response fields

Each item in `products` has these 7 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `id` | string |
| `name` | string |
| `price` | object |
| `category` | string |
| `category_id` | integer |
| `image` | url |
| `url` | url |
