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.

ParameterTypeRequiredAllowed values
querystringRequiredUp to 100 characters
pageintegerOptionalAny

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 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Run this endpoint in the 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.

FieldType
slugstring
namestring
categorystring
urlurl