---
title: "Autocomplete a GOAT search"
method: GET
path: "/goat/suggest"
tags: ["GOAT"]
---

# Autocomplete a GOAT search

`GET /goat/suggest`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/goat/suggest`
- Auth: API key in header `x-api-key`

Returns GOAT's own search-box autocomplete for a partial query: matching curated collections and matching products. The collections carry the slug values accepted by GET /goat/collection and by GET /goat/search's collection_slug parameter, making this the way to discover collection slugs.

## Query parameters

- `query` string, required
- `limit` integer

## Headers

- `x-api-key` string, required

## Response `200`

OK

- GoatSuggestResponseDoc
  - `code` integer
  - `data` GoatSuggestResponse
    - `collections` GoatSuggestCollection[]
      - `id` string
      - `slug` string
      - `title` string
      - `type` string
    - `products` GoatSuggestProduct[]
      - `category` string
      - `id` string
      - `image_url` string
      - `slug` string
      - `source_url` string
      - `title` string
    - `query` string
  - `msg` string

## Other responses

- `400`: Bad Request
- `500`: Internal Server Error
- `503`: Service Unavailable

---

[API](https://skmtc.dev/crawlora/apis/crawlora-api.md) · [All operations](https://skmtc.dev/crawlora/apis/crawlora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlora/apis/crawlora-api/revisions/afac9b012a27?raw)
