Read a page
curl --request GET \
--url https://api.pipellm.ai/v1/websearch/reader \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.pipellm.ai/v1/websearch/reader"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pipellm.ai/v1/websearch/reader', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pipellm.ai/v1/websearch/reader"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Read a page
Fetch a URL and return clean text.
GET
/
v1
/
websearch
/
reader
Read a page
curl --request GET \
--url https://api.pipellm.ai/v1/websearch/reader \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.pipellm.ai/v1/websearch/reader"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pipellm.ai/v1/websearch/reader', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pipellm.ai/v1/websearch/reader"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Use this route when you already know the page URL and want PipeLLM WebSearch to
fetch and convert it into clean text.
Endpoint
| Method | Endpoint |
|---|---|
GET | https://api.pipellm.ai/v1/websearch/reader |
Authentication
Authorization: Bearer $PIPELLM_API_KEY
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | The page URL to read |
Example Request
curl -X GET "https://api.pipellm.ai/v1/websearch/reader?url=https://go.dev" \
-H "Authorization: Bearer $PIPELLM_API_KEY"
Response Shape
{
"code": 200,
"message": "ok",
"content": "# The Go Programming Language\n\nGo is an open source programming language..."
}
Error Shape
{
"code": 400,
"message": "url parameter is required"
}
Notes
- This route proxies to the internal
/api/readerhandler. - The response shape uses
contentinstead ofdata. - The reader path is also the most direct HTTP equivalent of
pipellm_web_reader. - Successful requests cost $0.01 each and are recorded with internal model name
websearch-reader. - PipeLLM derives the model name from the route; clients do not send it.
Related Docs
pipellm-websearch (npm)
Enable page-reading as an OpenClaw tool
Deep Search
Use search first when you do not already know the target page
WebSearch Overview
Product overview and route matrix
Was this page helpful?