---
title: "Search Web"
method: POST
path: "/scrape/search"
---

# Search Web

`POST /scrape/search`

## Request

- Base URL: `https://api.phonely.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.phonely.ai/scrape/search`
- Auth: none declared. Required headers: `authorization`

Search the web and optionally scrape + save the results.

With `scrapeContent=true` the full markdown of each result is fetched.
With `saveToKnowledgeBase=true` (requires agentId + lastUpdatedBy) each
scraped result is also persisted to the agent's knowledge base.

## Headers

- `authorization` string, required

## Request body

- SearchWebRequest
  - `query` string, required
  - `limit` integer
  - `scrapeContent` boolean
  - `saveToKnowledgeBase` boolean
  - `agentId` string, nullable
  - `lastUpdatedBy` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/phonely/apis/phonely-api.md) - [All operations](https://skmtc.dev/phonely/apis/phonely-api/llms.txt) - [OpenAPI document](https://skmtc.dev/phonely/apis/phonely-api/revisions/9bfd5599d479?raw)
