---
title: "PriceSpy API: product search, product details as JSON"
description: "PriceSpy API for product search, product details, price history, autocomplete and categories as JSON. 5 endpoints, 1 credit per successful call."
url: https://perceptlayer.com/apis/pricespy
---

[APIs](https://perceptlayer.com/apis) / [Marketplaces](https://perceptlayer.com/verticals/marketplaces) / PriceSpy

1 credit per call 5 endpoints 7 datapoints 

# PriceSpy API

PriceSpy API for product search, product details, price history, autocomplete and categories as JSON. 5 endpoints, 1 credit per successful call.

[Get a free API key](https://perceptlayer.com/signup) Run it below

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.

Sample data

## What one call returns

A recorded run of `search`: the fields and shapes you will get, shortened to 3 items.

| # | id string | name string | price object | category string | category\_id integer | image url | url url |
| --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | 13854649 | Apple iPhone 16 128GB | {2 fields} | Mobile Phones | 103 | https://cdn.pji.nu/product/standard/800/13854649.jpg?height=280&width=280 | https://pricespy.co.uk/product.php?p=13854649 |
| 2 | 14468246 | Apple iPhone 16e 128GB | {2 fields} | Mobile Phones | 103 | https://media.pji.nu/e25438fb-8d15-40ad-b348-1a1f94e6c70c.webp?height=280&width=280 | https://pricespy.co.uk/product.php?p=14468246 |
| 3 | 13854637 | Apple iPhone 16 Plus 128GB | {2 fields} | Mobile Phones | 103 | https://cdn.pji.nu/product/standard/800/13854637.jpg?height=280&width=280 | https://pricespy.co.uk/product.php?p=13854637 |

Recorded from our API · 3 items shown · 7 datapoints per item GET /v1/pricespy/search?q=iphone+16

7 datapoints

### Identity

-   id string
-   name string
-   category string
-   category\_id integer

### Contact

-   url url

### Reputation

-   image url

### Price

-   price object

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/pricespy/search?q=iphone+16" \
  -H "X-API-Key: $API_KEY"
```

PriceSpy · 5 endpoints

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/pricespy/autocomplete`](https://perceptlayer.com/apis/pricespy/autocomplete) | `q` | JSON | 1 credit |
| [GET `/v1/pricespy/categories`](https://perceptlayer.com/apis/pricespy/categories) | none | JSON | 1 credit |
| [GET `/v1/pricespy/price-history`](https://perceptlayer.com/apis/pricespy/price-history) | `id` | JSON | 1 credit |
| [GET `/v1/pricespy/product`](https://perceptlayer.com/apis/pricespy/product) | `id` | JSON | 1 credit |
| [GET `/v1/pricespy/search`](https://perceptlayer.com/apis/pricespy/search) | `q` +1 optional | `id` `name` `price` `category` `category_id` `image` +1 more | 1 credit |

Overview

## About the PriceSpy API

## What you can get

The PriceSpy API returns PriceSpy price-comparison data as JSON through 5 endpoints.

-   **Search:** `search` takes a `q`, with an optional `category` id from `categories`. `autocomplete` takes a `q` to complete.
-   **Products:** `product` and `price-history` take a product `id`, from search or autocomplete.
-   **Categories:** `categories` takes no parameters.

The recorded `search` for "iphone 16" returns `products`, each with `id`, `name`, `price` (a `value` and `currency`, GBP in the recording), `category`, `category_id`, `image` and `url`. It also returns a `total` of 1,000 and `pagination`, which notes that the response is the first result page only.

## How a call works

Search, then look up: `GET /v1/pricespy/search?q=iphone%2016`, with your key in the `X-API-Key` header, returns each product's `id`. Pass it to `product` for the product's details and to `price-history` for how its price has moved. Narrow a search with a `category` id from `categories`. Every successful call costs 1 credit; failed calls cost nothing.

Marketplaces JSON REST MCP

### More marketplaces APIs

[About You](https://perceptlayer.com/apis/about-you) [adidas](https://perceptlayer.com/apis/adidas) [Albert Heijn](https://perceptlayer.com/apis/albert-heijn) [ALDI SÜD](https://perceptlayer.com/apis/aldi-sued) [Alibaba](https://perceptlayer.com/apis/alibaba) [AliExpress](https://perceptlayer.com/apis/aliexpress) [Allegro](https://perceptlayer.com/apis/allegro) [ALTERNATE](https://perceptlayer.com/apis/alternate) [Alza](https://perceptlayer.com/apis/alza) [Amazon](https://perceptlayer.com/apis/amazon) [Americanas](https://perceptlayer.com/apis/americanas) [Aponeo](https://perceptlayer.com/apis/aponeo)

Use cases

### Track prices for a list of products

`Use the PriceSpy API to track prices for a list of products` 

### Chart a product's price over time with \`price-history\`

`` Use the PriceSpy API to chart a product's price over time with `price-history` `` 

### Build product lookup with \`autocomplete\`

`` Use the PriceSpy API to build product lookup with `autocomplete` `` 

### Search within one category using ids from \`categories\`

`` Use the PriceSpy API to search within one category using ids from `categories` `` 

FAQ

## Questions

**How much does the PriceSpy API cost?**

Each successful call costs one credit. New accounts get free credits to start, and credit packs bring the price down as you scale.

**Can I search within a category?**

Yes. Get a category id from \`categories\` and pass it to \`search\` as \`category\`.

**What format are responses in?**

Every endpoint returns JSON, with no HTML parsing on your side.

**Is this the official PriceSpy API?**

No. Perceptlayer is an independent service and is not affiliated with PriceSpy. It returns PriceSpy data as JSON with a Perceptlayer key, so there is no PriceSpy developer account, app review or partner approval to get first. It only reads data: if PriceSpy has an official API and you need to act on your own PriceSpy account, such as posting, managing orders or reading private data, use that one.

**Should I build a PriceSpy scraper instead?**

You can, but a PriceSpy scraper is code you maintain: page changes break it, requests get blocked, and PriceSpy's terms govern how you collect data. The PriceSpy API gives you 5 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

## Try the PriceSpy API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
