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

[APIs](https://perceptlayer.com/apis) / [ConsumerAffairs](https://perceptlayer.com/apis/consumeraffairs) / Search

# ConsumerAffairs: Search

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

GET `/v1/consumeraffairs/search`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | Required | Up to 100 characters |
| `page` | integer | Optional | Any |

## Example request

ConsumerAffairs

GET /v1/consumeraffairs/search?query=toyota 

```
{
  "success": true,
  "data": {
    "items": [
      {
        "slug": "automotive/toyota_tundra.html",
        "name": "Toyota Tundra",
        "category": "automotive",
        "url": "https://www.consumeraffairs.com/automotive/toyota_tundra.html"
      },
      {
        "slug": "automotive/toyota_tacoma.html",
        "name": "Toyota Tacoma",
        "category": "automotive",
        "url": "https://www.consumeraffairs.com/automotive/toyota_tacoma.html"
      },
      {
        "slug": "automotive/toyota_prius.html",
        "name": "Toyota Prius",
        "category": "automotive",
        "url": "https://www.consumeraffairs.com/automotive/toyota_prius.html"
      }
    ],
    "pagination": {
      "current_page": 1,
      "per_page": 10,
      "total_items": 42,
      "has_more": true
    },
    "filters": {
      "query": "toyota",
      "page": 1
    }
  },
  "meta": {
    "endpoint_family": "search",
    "request_id": "req_c30bb85afcaa43e88fb4abda1eec1f04",
    "credits_charged": 1,
    "credits_remaining": 999
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

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

## Response fields

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

| Field | Type |
| --- | --- |
| `slug` | string |
| `name` | string |
| `category` | string |
| `url` | url |
