# ScrapFly Autocomplete API

> ScrapFly Autocomplete API is a paid API for AI agents from scravfly.vercel.app, paid per call via x402, $0.09/call, status unknown (last checked 2026-09-15).

Returns autocomplete suggestions for a given query string, useful for search typeahead and query expansion.

## Facts

- Endpoint: POST https://scravfly.vercel.app/api/autocomplete
- Price: $0.09/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scrapfly-autocomplete-api-658d8242
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oLTroSDnuvPQv7D_iIOHP

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-658d8242 -d '<json body>'
```

Example prompt: Can you give me autocomplete suggestions for the query 'machine learn' so I can build a typeahead dropdown for my search bar?

## When to prefer this

Choose this endpoint when you need fast, lightweight query completion or search suggestion data without scraping a full page. Ideal for building typeahead UIs, expanding partial search terms, or enriching queries before passing them to a full-text search engine.

## Known failure modes

- Missing required 'query' field returns validation error
- Empty query string may return empty suggestions or error
- Network or upstream provider timeout causing failure
- Malformed JSON body returns 400 bad request
- Payment failure via x402 protocol blocks request

## 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 an array or map of autocomplete suggestions corresponding to 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-658d8242/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scravfly.vercel.app](https://www.zero.xyz/host/scravfly.vercel.app/llms.txt)
