---
title: "How to use Litescrape with your AI agent"
url: https://zeroclick.ai/resources/how-to-use-litescrape-with-your-ai-agent
fetched_at: 2026-11-07T13:20:25.638Z
---

# How to use Litescrape with your AI agent

Get more done with your agent · How-to · Published 2026-11-05. Canonical page: https://zeroclick.ai/resources/how-to-use-litescrape-with-your-ai-agent

Litescrape gives your AI agent live search results as JSON from Google Search, Shopping and Maps, Google reviews, Bing, DuckDuckGo, Yelp, Tripadvisor and Apple Maps. Every engine costs the same $0.00015 per request. Litescrape sells through ZeroClick: your agent registers a free credential at the [Litescrape storefront](https://agents.litescrape.com), claims the free trial or buys prepaid Credits from $0.01 on a wallet rail (x402 or MPP) or $0.50 by card, and then calls any endpoint with its token.

## Key takeaways

- Register a free agent credential, then claim the Free trial (ten requests) or buy Credits with `POST /plans/{planId}/purchase` and pay the one 402 it returns.
- Every call draws $0.00015 from your balance, whichever engine it hits, so 1,000 searches cost $0.15.
- A bare call with no credential gets `401 bearer_required`, not a price, so buy the plan before your agent makes its first search.
- An agent without a wallet can buy Credits by card from $0.50 or hand the checkout to a person.

## What Litescrape is

Litescrape is a search results API. It turns Google, Bing, DuckDuckGo and the major map services into typed JSON at one flat rate at every volume. It runs the managed proxies and distributed browser infrastructure itself, so the people using it don't have to. You can see the product and its playground at [litescrape.com](https://litescrape.com).

That fits the work agents are given. Research, price checks, local lookups and tracking what Google's AI answers say all start with a search. An agent reads JSON, not rendered pages, and it can't run a browser farm mid-task. With a flat rate, the cost of any job is the number of calls times $0.00015, and an agent can work that out before it starts.

An agent storefront is the machine-readable version of a business. It is a URL where an agent reads what is for sale, the live prices and the payment steps, then buys without anyone filling in forms. Litescrape's storefront sits in front of its own API and handles identity, payment and forwarding. For how storefronts work, see [What is an agent storefront?](https://zeroclick.ai/resources/what-is-an-agent-storefront)

## What agents use Litescrape for

Each job below matches one of the storefront's nine services. Each call is one request.

| Job your agent is given | Service | What comes back |
|---|---|---|
| Research a topic or see what ranks for a query | Google Search, `GET /api/google/search` | Organic results, the Knowledge Graph panel, related searches |
| Track what Google's AI Overview says about a question or brand | Google Search, `GET /api/google/ai-overview` | The generated text blocks and the references they cite |
| Get Google's AI Mode answer | Google Search (AI Mode endpoint) | The generated answer with the sources it cited |
| Price-check a product across stores | Google Shopping, `GET /api/google/shopping` | Prices, merchants, ratings, sponsored listings; a product endpoint opens one listing with every merchant offer |
| Find local businesses with ratings and opening state | Google Maps | Place search and lookup with ratings, review counts and addresses, plus live foot traffic for one place |
| Read the reviews of one place | Google Reviews | Reviews for one place, which you can sort, filter by rating, topic or search text, and page through |
| Search Bing or DuckDuckGo | Bing, DuckDuckGo | Web results with localization and paging, plus each engine's maps search |
| Find restaurants and read their reviews | Yelp | Business search by location and category, and one business's reviews |
| Compare hotels and attractions | Tripadvisor | Search, place details with prices in a currency you choose, and reviews |
| Look up many places at once | Apple Maps | Details for up to 50 places by Apple place ID, plus one place's ratings and reviews |

Each service's page on the storefront links its full API reference with every parameter.

A Google search we ran through the storefront for cold brew coffee returned organic results, a Knowledge Graph panel, eight related searches and a token for the next page, and drew $0.000150 from our plan's credit. An AI Overview request asking what a passkey is returned nine text blocks and 13 cited references, and was charged $0.000150. A Google Shopping search for espresso machines returned three products, each with a price, its merchant, a rating, product and catalog ids and a `litescrape_product_link`, and was charged $0.000150.

## Prices

| Plan or service | Price |
|---|---|
| Every service: Google Search, Google Shopping, Google Maps, Google Reviews, Bing, DuckDuckGo, Yelp, Tripadvisor, Apple Maps | $0.00015 per request |
| Free trial | $0.0015 of credit (10 requests), once per person, verified email required |
| Credits | Prepaid: from $0.01 on a wallet rail, $0.50 by card, up to $1,500 per purchase |
| Anonymous one-cent credit | $0.01 on a wallet rail, no registration |

The flat rate makes budgets easy to work out. A penny covers 66 searches. A daily AI Overview check on 50 questions for 30 days is 1,500 requests, or $0.225. The $0.50 card minimum buys 3,333 requests.

Prices come from the live [price list](https://agents.litescrape.com/manifest.json), which your agent should read at call time rather than cache. Every purchase 402 states the exact amount before anything is paid.

## How to buy and call Litescrape from your agent

1. Point your agent at the storefront's [agent guide](https://agents.litescrape.com/llms.txt), which links the catalog, the API reference and the payment steps.
2. Match the task to a service, or ask the free task guide at `https://agents.litescrape.com/zeroclick/agent/guide?goal=URL_ENCODED_TASK`, which needs no wallet and never buys anything.
3. Reuse an existing ZeroClick agent credential if you hold one, because one registration works at every ZeroClick storefront.
4. If you hold none, register anonymously with one call, following the [identity guide](https://agents.litescrape.com/auth.md).
5. Exchange the registration's assertion at `/oauth2/token` for a short-lived access token.
6. To take the Free trial, or to keep what you buy from expiring with an unclaimed credential, have a person claim the credential with a verified email.
7. Claim the Free trial with an empty purchase body, or send a Credits purchase with an amount. Both plans' ids and purchase URLs are in the price list.
8. Pay the Credits purchase's 402 on x402, MPP or card.
9. Resend the purchase with the payment proof attached.
10. Call the endpoint with `Authorization: Bearer <access token>`.
11. Read the JSON result.
12. Check the `zc-billing` header for what the call drew from your balance.
13. Top up with `POST /extend` when a call returns `usage_exhausted`.

## Example requests

Register an anonymous credential. Save the full response, which carries `identity.assertion`:

```http
POST https://agents.litescrape.com/agent/identity
Content-Type: application/json

{"type": "anonymous"}
```

Exchange the assertion for an access token. Tokens last minutes, so repeat this step whenever one expires:

```http
POST https://agents.litescrape.com/oauth2/token
Content-Type: application/x-www-form-urlencoded

grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&assertion=<identity.assertion>
```

Buy Credits with your bearer and a whole-cent amount. For the Free trial, send the same request to its plan id with an empty body and no payment:

```http
POST https://agents.litescrape.com/plans/{planId}/purchase
Authorization: Bearer <access token>
Content-Type: application/json

{"amountUsd": "25.000000"}
```

The Credits purchase comes back as one priced 402. Its body carries `payment.amountUsd`, the `plan` and a `protocols` block with a challenge for each rail. The signable challenges also arrive as headers, so a standard x402 or MPP client can settle them without reading the body:

```http
HTTP/1.1 402 Payment Required
payment-required: <x402 challenge>
www-authenticate: <MPP challenge>
```

Sign the challenge and resend the purchase with the proof. On x402 the payload goes in `x-payment`. On MPP, the credential takes `Authorization: Payment <credential>`, so your token moves to `ZC-Agent-Authorization: Bearer <access token>`:

```http
POST https://agents.litescrape.com/plans/{planId}/purchase
Authorization: Bearer <access token>
Content-Type: application/json
x-payment: <signed x402 payload>

{"amountUsd": "25.000000"}
```

Then call against the balance:

```http
GET https://agents.litescrape.com/api/google/search?q=cold+brew+coffee&gl=us&hl=en&num=3
Authorization: Bearer <access token>
```

This is a trimmed sample of what our cold brew search returned, with its billing header:

```json
{
  "search_metadata": {"status": "Success", "total_time_taken": 1.456},
  "search_parameters": {"q": "cold brew coffee", "gl": "us", "hl": "en", "num": "3", "device": "desktop"},
  "organic_results": [
    {"position": 1, "title": "roy g biv cold brew filter packs", "source": "Stone Creek Coffee", "link": "https://www.stonecreekcoffee.com/[path]"}
  ],
  "related_searches": [{"query": "Cold brew coffee recipe", "block_position": 0}]
}
```

```http
zc-billing: {"status":"settled","fundingSource":"credit","chargedUsd":"0.000150","remainingCreditUsd":"<balance after the call>"}
```

## If your agent has no wallet

- **Create a wallet.** Your agent can set one up at no cost and with no signup, then follow the steps above.
- **Buy Credits by card.** Send the purchase with your bearer, `checkout: true` and at least $0.50. It returns an unpaid hosted checkout that needs no funds or card to create. Browser agents can pay it with Link Pay Tokens, and the page accepts Link directly; the [card checkout instructions](https://agents.litescrape.com/payment/card.md) cover the details. Poll the returned `statusUrl` before using the credit.
- **Use a shared payment token.** A card-eligible 402 carries a `method="stripe"` challenge, answered with the token in `Authorization` and your access token in `ZC-Agent-Authorization`.
- **Hand off to a person.** Send the checkout URL privately, or share any Litescrape page as `https://agents.litescrape.com/outclick?url={URL-encoded seller page}` so the visit is recorded as coming from an agent.

## What to know

**What the storefront covers.** It sells the nine services above, and its catalog is the list of what your agent can buy there.

**Plans, not per-call payment.** A call with no credential returns `401 bearer_required`, and an identified call with no covering plan returns `403 plan_required`. The only 402 your agent pays is the plan purchase.

**What is charged, and when.** Each call draws one request at $0.00015 from your balance, and `zc-billing` shows the debit. A delivered response with no `zc-billing` header billed nothing, and a failed delivery debits nothing. Paying a 402 completes the purchase under the platform's [buyer terms](https://agents.litescrape.com/terms.md).

**Keeping what you buy.** An anonymous credential that nobody claims lapses within a few days, taking any plans bought with it, so have a person claim it soon after buying. Claims refuse plus-aliased addresses. If you are unsure whether a purchase went through, check `GET /agent/entitlements` before buying again. The one-cent anonymous credit is tied to its `receiptId`, and losing the receipt loses the credit.

**Errors worth handling.** The [error reference](https://agents.litescrape.com/errors.md) lists every code. These are the ones your agent is most likely to meet:

| Error | What to do |
|---|---|
| `bearer_required` (401) | Register or reuse a credential, then send its access token. |
| `plan_required` (403) | Claim the Free trial or buy Credits. |
| `verified_email_required` (403) | A person must claim the credential with a verified email. Retrying won't help until the claim is done. |
| `usage_exhausted` | Top up with `POST /extend`. |
| `invalid_grant` | The assertion expired. Refresh a claimed credential, or register again. |
| `rate_limit_exceeded` | Wait for `retry_after` before retrying. |
| `service_unavailable` (503) | The scraper could not complete the request. It isn't billed, so retry with a backoff. |

## Frequently asked questions

### Does Litescrape need an API key for AI agents?

No. Through the storefront, your agent registers a free ZeroClick agent credential and calls with its access token, and no upstream Litescrape key is needed.

### How much does a Litescrape search cost?

Every request on every engine costs $0.00015, which works out to $0.15 per 1,000 requests, drawn from prepaid credit.

### Is there a free trial for agents?

Yes. The Free trial grants $0.0015 of credit, enough for ten requests, once per person, after the agent's credential is claimed with a verified email.

### Can my agent get Google AI Overview results?

Yes. `GET /api/google/ai-overview` returns Google's generated text blocks and the references they cite, at the same $0.00015 per request.

### Can my agent pay Litescrape without a crypto wallet?

Yes. It can buy Credits by card from $0.50 through a hosted checkout, pay with a shared payment token, or hand the checkout to a person.

### Do I have to use an AI agent to use Litescrape?

No. A person can get an API key at [litescrape.com](https://litescrape.com), with the first 5 calls free and no card, then buy prepaid top-ups from $10 at $0.15 per 1,000 requests. The credits last six months, and Litescrape also offers an MCP server and a Python SDK.
