---
title: "Autocomplete"
method: POST
path: "/search/autocomplete"
tags: ["Search"]
---

# Autocomplete

`POST /search/autocomplete`

## Request

- Base URL: `https://api.weblens.dev`
- URL: `https://api.weblens.dev/search/autocomplete`
- Auth: API key in header `Payment-Signature`

Google Autocomplete suggestions for a partial query. Useful for keyword research and intent discovery. Price: $0.015.

## Request body

- object
  - `query` string, required: Search query
  - `limit` number: Maximum results to return

## Response `200`

Query suggestions — keyword and intent research.

- object
  - `query` string
  - `suggestions` string[]: Suggestion strings ranked by relevance
  - `searchedAt` string
  - `requestId` string

## Other responses

- `400`: The body failed validation
- `402`: Payment required — x402 v2 protocol. Parse the PAYMENT-REQUIRED response header (base64-encoded JSON), sign the payment with your wallet, then retry the request with the Payment-Signature request header.

---

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