Search the web with fetched page content
curl --request POST \
--url https://api.aisa.one/apis/v1/scrapegraphai/web-search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"allowedTypes": [
"text/html"
],
"format": "markdown",
"numResults": 10,
"query": "<string>"
}
'import requests
url = "https://api.aisa.one/apis/v1/scrapegraphai/web-search"
payload = {
"allowedTypes": ["text/html"],
"format": "markdown",
"numResults": 10,
"query": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
allowedTypes: ['text/html'],
format: 'markdown',
numResults: 10,
query: '<string>'
})
};
fetch('https://api.aisa.one/apis/v1/scrapegraphai/web-search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/scrapegraphai/web-search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'allowedTypes' => [
'text/html'
],
'format' => 'markdown',
'numResults' => 10,
'query' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/scrapegraphai/web-search"
payload := strings.NewReader("{\n \"allowedTypes\": [\n \"text/html\"\n ],\n \"format\": \"markdown\",\n \"numResults\": 10,\n \"query\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/scrapegraphai/web-search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"allowedTypes\": [\n \"text/html\"\n ],\n \"format\": \"markdown\",\n \"numResults\": 10,\n \"query\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/scrapegraphai/web-search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"allowedTypes\": [\n \"text/html\"\n ],\n \"format\": \"markdown\",\n \"numResults\": 10,\n \"query\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"metadata": {
"pages": {
"requested": 123,
"scraped": 123
},
"search": {}
},
"results": [
{
"content": "<string>",
"metadata": {
"contentType": "<string>"
},
"title": "<string>",
"url": "<string>"
}
]
}ScrapeGraphAI
Search the web with fetched page content
Search the web with fetched page content
POST
https://api.aisa.one
/
apis
/
v1
/
scrapegraphai
/
web-search
Search the web with fetched page content
curl --request POST \
--url https://api.aisa.one/apis/v1/scrapegraphai/web-search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"allowedTypes": [
"text/html"
],
"format": "markdown",
"numResults": 10,
"query": "<string>"
}
'import requests
url = "https://api.aisa.one/apis/v1/scrapegraphai/web-search"
payload = {
"allowedTypes": ["text/html"],
"format": "markdown",
"numResults": 10,
"query": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
allowedTypes: ['text/html'],
format: 'markdown',
numResults: 10,
query: '<string>'
})
};
fetch('https://api.aisa.one/apis/v1/scrapegraphai/web-search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/scrapegraphai/web-search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'allowedTypes' => [
'text/html'
],
'format' => 'markdown',
'numResults' => 10,
'query' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/scrapegraphai/web-search"
payload := strings.NewReader("{\n \"allowedTypes\": [\n \"text/html\"\n ],\n \"format\": \"markdown\",\n \"numResults\": 10,\n \"query\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/scrapegraphai/web-search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"allowedTypes\": [\n \"text/html\"\n ],\n \"format\": \"markdown\",\n \"numResults\": 10,\n \"query\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/scrapegraphai/web-search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"allowedTypes\": [\n \"text/html\"\n ],\n \"format\": \"markdown\",\n \"numResults\": 10,\n \"query\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"metadata": {
"pages": {
"requested": 123,
"scraped": 123
},
"search": {}
},
"results": [
{
"content": "<string>",
"metadata": {
"contentType": "<string>"
},
"title": "<string>",
"url": "<string>"
}
]
}
Request example pending verification. The request example for this endpoint has not yet been verified in production. Static examples describe the request format; replace sample values with your own. Check the estimated price with a free quote request (X-AISA-Cost-Mode: quote) before running it.
Request contract
- Method and path: POST /apis/v1/scrapegraphai/web-search
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/scrapegraphai/web-search
{
"operationId": "scrapegraphai.web-search",
"method": "POST",
"path": "/apis/v1/scrapegraphai/web-search",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"properties": {
"allowedTypes": {
"items": {
"enum": [
"text/html"
],
"type": "string"
},
"maxItems": 1,
"minItems": 1,
"type": "array"
},
"format": {
"enum": [
"markdown"
],
"minLength": 1,
"type": "string"
},
"numResults": {
"maximum": 20,
"minimum": 1,
"type": "integer"
},
"query": {
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
"required": [
"allowedTypes",
"format",
"numResults",
"query"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Observed response structure
The response observations below come from successful probes or sampled requests. They are partial: fields and types may vary, and no field is guaranteed to be present. Reviewed response definitions take precedence. No real response values are published.- HTTP status / last observed: 200 / 2026-11-16
{
"additionalProperties": true,
"properties": {
"id": {
"type": "string"
},
"metadata": {
"additionalProperties": true,
"properties": {
"pages": {
"additionalProperties": true,
"properties": {
"requested": {
"type": "integer"
},
"scraped": {
"type": "integer"
}
},
"type": "object"
},
"search": {
"additionalProperties": true,
"type": "object"
}
},
"type": "object"
},
"results": {
"items": {
"additionalProperties": true,
"properties": {
"content": {
"type": "string"
},
"metadata": {
"additionalProperties": true,
"properties": {
"contentType": {
"type": "string"
}
},
"type": "object"
},
"title": {
"type": "string"
},
"url": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
}
Cost and request rules
Usage-based pricing. A price estimate is not currently available. Your account price may differ; use a request quote where supported.Response time
- Typically returns within 10 seconds.
Authorizations
Body
application/json