Chewy

Search Chewy by keyword

Returns one page of a Chewy keyword search's product listing (price, autoship price/discount, stock, rating, images), plus embedded facets. q is free-text search keywords, e.g. "salmon dog food". A generic query that strongly matches one of Chewy's own categories (e.g. "dog food", "cat litter", "leash") is transparently redirected to that category's listing, the same real results a chewy.com visitor would see -- source_url reflects the actual listing fetched. sort and filter narrow/reorder the listing; every facets[].value paired with one of that facet's options[].value from any prior response is a valid filter key:value pair.

get/chewy/search

Request

  • Base URL: https://api.crawlora.net/api/v1
  • URL: https://api.crawlora.net/api/v1/chewy/search
  • Auth: API key in header x-api-key

Query parameters

qstring required

Free-text search keywords

pageinteger

Page number, 36 products per page (default 1)

sort'byRelevance' | 'byNewest' | 'byPopularity' | 'byLowestPrice' | 'byHighestPrice' | 'byRating' | 'byRatingCount'

Sort order. One of byRelevance, byNewest, byPopularity, byLowestPrice, byHighestPrice, byRating, byRatingCount. Defaults to Chewy's own relevance ordering when omitted.

filterstring[]

Repeatable, up to 10. Each value is \

Headers

x-api-keystring required

API key required

Response

OK

codeinteger
msgstring

Example response

{
  "code": 200,
  "data": {
    "breadcrumbs": [
      {
        "group_id": "332",
        "text": "Dog Food",
        "url_slug": "food"
      }
    ],
    "facets": [
      {
        "name": "Category",
        "options": [
          {
            "display_label": "Adult Dry Dog Food",
            "name": "Adult",
            "product_count": 64,
            "url_slug": "adult-dry-dog-food",
            "value": "11098"
          }
        ],
        "value": "categoryId"
      }
    ],
    "products": [
      {
        "autoship_discount_pct": "5%",
        "autoship_price": 8.54,
        "currency_code": "USD",
        "in_stock": true,
        "is_autoship_allowed": true,
        "manufacturer": "Nutri-Choice Advantage",
        "parent_part_number": "4238390",
        "part_number": "4238414",
        "price": 8.99,
        "rating": 4.6
      }
    ],
    "query": "salmon dog food",
    "total": 1451
  },
  "msg": "OK"
}

Changes

No recorded changes to this operation across all 3 revisions of this API.