# Get real-time answers from Dappier's Real Time Search API

Dappier's Real Time Search API takes one natural-language question about what is happening now, such as headlines, share prices, weather, travel or events, and returns the answer as text in a single `message` field. Real Time Search is listed at $0, but a call still needs credit: a Prepaid credits balance held by your credential. Send `POST https://agents.dappier.com/zcj/mb2dxm1ro8zn/zeroclick/aimodel/am_01j06ytn18ejftedz6dyhz2b15` with a `query` and that credential as `Authorization: Bearer <access token>`.

## At a glance

- **Endpoint:** `POST https://agents.dappier.com/zcj/mb2dxm1ro8zn/zeroclick/aimodel/am_01j06ytn18ejftedz6dyhz2b15`, one question per request
- **Body:** `{"query": "<natural-language question>"}`. `query` is the only field the spec defines.
- **Price:** listed at $0, drawn from a Prepaid credits balance
- **Credential:** `Authorization: Bearer <access token>` on every call, for a credential that holds Prepaid credits. Registering one at [auth.md](https://agents.dappier.com/zcj/mb2dxm1ro8zn/auth.md) is free and can be anonymous. No upstream Dappier API key is needed.
- **Funding:** Prepaid credits start at $0.01 from a wallet, or $0.50 by card.
- **Response:** JSON `{"message": "<answer text>"}` and a `zc-billing` header
- **Full purchase flow:** [the buyer skill](https://agents.dappier.com/zcj/mb2dxm1ro8zn/SKILL.md)

## Get Prepaid credits

Register a credential at [auth.md](https://agents.dappier.com/zcj/mb2dxm1ro8zn/auth.md), anonymously if you like, and exchange it for an access token. One registration works at every ZeroClick storefront, so reuse one you already hold. Then buy Prepaid credits with that bearer: one plan covers every Dappier service.

[The buyer skill](https://agents.dappier.com/zcj/mb2dxm1ro8zn/SKILL.md) covers the purchase end to end.

## Send a real-time search query

1. Send the question with your credential:

   ```bash
   curl -s -X POST https://agents.dappier.com/zcj/mb2dxm1ro8zn/zeroclick/aimodel/am_01j06ytn18ejftedz6dyhz2b15 \
     -H "Content-Type: application/json" \
     -H "Authorization: Bearer $ACCESS_TOKEN" \
     -d '{"query": "What are the main weather alerts in the United States today?"}'
   ```

2. Read the answer from `message`. The response is a JSON object with one field, `message`, a string that holds the answer text.

   ```json
   {"message": "<answer text>"}
   ```

3. Check the balance in the `zc-billing` response header. A credit-funded response reports `fundingSource`, `chargedUsd` and `remainingCreditUsd` in that header. Use `remainingCreditUsd` to decide when to buy more credit.

## Limits

- One question per request, as a single `query` string. The response is answer text. It is not a list of search results to read through.
- Queries are sold on credit, not one by one. A query with no credential gets `401 bearer_required`, not a price quote, and each query draws on the credit.

## Errors

| Response | Meaning | Action |
| --- | --- | --- |
| `401 bearer_required` | The query carried no credential | Register at [auth.md](https://agents.dappier.com/zcj/mb2dxm1ro8zn/auth.md) and retry with the bearer |
| `401 invalid_token` (`token_expired`) | The access token expired | Exchange the stored assertion again at `https://agents.dappier.com/zcj/mb2dxm1ro8zn/oauth2/token` |
| `403 plan_required` | The bearer holds no plan covering the call | Buy Prepaid credits at `/plans/{planId}/purchase`, then retry |
| `usage_exhausted` | The Prepaid credits balance is used up | Top up with `POST https://agents.dappier.com/zcj/mb2dxm1ro8zn/extend` and `{"amountUsd": "..."}` |

## Frequently asked questions

### Does Dappier's real-time search API return links or a list of results?

No. This route returns one answer as text in the `message` field of a JSON object, so there is no result list to parse.

### Do I need an account or an API key to call Real Time Search?

No Dappier account or API key, but every call carries a free credential from [auth.md](https://agents.dappier.com/zcj/mb2dxm1ro8zn/auth.md), registered once and anonymously if you like, and the credential needs Prepaid credits behind it.

### What does a Real Time Search query cost?

Real Time Search is listed at $0. Each call still needs a Prepaid credits balance, and the `zc-billing` header on each response reports `chargedUsd` and `remainingCreditUsd`.

### What questions can I send to Real Time Search?

Send natural-language questions about what is happening now: the latest headlines, share prices and market moves, the weather, travel, and events. Ask one question per request, in `query`.

## Keep reading

- [Buyer skill](https://agents.dappier.com/zcj/mb2dxm1ro8zn/SKILL.md): the full purchase flow
- [Identity](https://agents.dappier.com/zcj/mb2dxm1ro8zn/auth.md): register and exchange an agent credential
- [How to pay](https://agents.dappier.com/zcj/mb2dxm1ro8zn/payment.md): rails, Prepaid credits and top-ups
- [Error reference](https://agents.dappier.com/zcj/mb2dxm1ro8zn/errors.md): every error code and the action for each

---

Updated 2026-11-12. All Dappier guides: https://agents.dappier.com/guides.md. Storefront: https://agents.dappier.com/zcj/mb2dxm1ro8zn/llms.txt.
