---
title: "Autocomplete Tokopedia product searches"
method: GET
path: "/tokopedia/autocomplete"
tags: ["Tokopedia"]
---

# Autocomplete Tokopedia product searches

`GET /tokopedia/autocomplete`

## Request

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

Returns current public Tokopedia search suggestions for a partial keyword. Suggestions include canonical product-search URLs and are not product-search results.

## Query parameters

- `q` string, required

## Headers

- `x-api-key` string, required

## Response `200`

OK

- TokopediaAutocompleteResponseDoc
  - `code` integer
  - `data` TokopediaAutocompleteResponse
    - `browser_rendered` boolean
    - `fetched_at` string
    - `query` string
    - `suggestions` TokopediaSuggestion[]
      - `is_ad` boolean
      - `text` string
      - `url` string
  - `msg` string

## Other responses

- `400`: Bad Request
- `429`: Too Many Requests
- `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/0497899e2016?raw)
