# How do I add web search to my AI app?

URL: https://bridge.wekoya.tech/guides/add-web-search-to-ai-app
Updated: 2026-11-28

**In short:** Call a search API and give the results to your model, or let the model call it as a tool. On Bridge by Wekoya, POST https://wekoya-api.wekoya.tech/v1/search returns the pages found and, with "answer": true, a short answer citing them. On 28 November 2026 it cost ₦7.44 a search, ₦11.15 with the answer.

## One call

```python
import requests

found = requests.post(
    "https://wekoya-api.wekoya.tech/v1/search",
    headers={"Authorization": "Bearer wk_live_..."},
    json={"query": "naira to dollar rate today", "recency": "day", "country": "NG", "answer": True},
).json()

print(found["answer"])            # a short answer citing [1], [2]
for page in found["results"]:     # title, url, snippet, published_at
    print(page["title"], page["url"])
```

- `query`: what to search for, up to 400 characters.
- `max_results`: 1 to 10 (default 5).
- `recency`: `day`, `week`, `month` or `year` for recent pages only.
- `site`: one website only, such as `punchng.com`.
- `country`: a two-letter code such as `NG` to favour that country's results.
- `answer`: `true` for a short answer with `citations`; it is `null` when the pages do not answer the question, rather than a guess.

## Let the model search when it needs to

Give your chat model a `web_search` function tool. When it calls the tool, send its query to `/v1/search` and return the results as the tool's reply; the model then answers from them. Any Bridge model that supports tool calling can do this, GPT, Claude and Gemini included.

Full details are in [web search](https://bridge.wekoya.tech/docs/search).

[Create a free account](https://bridge.wekoya.tech/sign-up)

## Common questions

**How much does web search cost?**

On 28 November 2026, ₦7.44 per search, or ₦11.15 with the written answer. The current price is on the models page.

**Do I need a separate search API account?**

No. Search uses the same Bridge key and naira balance as your AI models.

## Read next

- [Add AI to your app in Nigeria](https://bridge.wekoya.tech/guides/add-ai-to-your-app-nigeria)
- [Build an AI chatbot for your website](https://bridge.wekoya.tech/guides/ai-chatbot-for-your-website)
