# ScrapFly Autocomplete API

> ScrapFly Autocomplete API is a paid API for AI agents from scrapfly.vercel.app, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-24).

Returns autocomplete suggestions for a given query string, useful for powering search-as-you-type or query completion features.

## Facts

- Endpoint: POST https://scrapfly.vercel.app/api/autocomplete?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scrapfly-autocomplete-api-efee80cc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_26boVnHOsFnqK6f-Q4XWV

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability scrapfly-autocomplete-api-efee80cc -d '<json body>'
```

Example prompt: Can you give me autocomplete suggestions for the query 'best laptops for' so I can help populate a search dropdown?

## When to prefer this

Use this endpoint when you need real-time search query completions or type-ahead suggestions for a partial string. It is well-suited for powering search UI components, discovering popular query variants, or expanding keywords for SEO and content research workflows — particularly when you need to pay per-request without a subscription via x402 on Base chain.

## Known failure modes

- Empty or missing query returns an error or empty suggestions
- Overly short or ambiguous queries may return low-quality or no suggestions
- Rate limiting or payment failure via x402 may result in a blocked request
- Service downtime on the Vercel deployment could yield 500 errors

## How this service works

69 endpoints for data, content generation, and web scraping. Pay per request via x402 on Base chain.

## Output

Returns a JSON object with a success boolean and a data object containing autocomplete suggestion results for the submitted query string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "description": "query"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "success"
 ],
 "properties": {
  "data": {
   "type": "object"
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scrapfly-autocomplete-api-efee80cc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scrapfly.vercel.app](https://www.zero.xyz/host/scrapfly.vercel.app/llms.txt)
