Scrape a web page
curl --request POST \
--url https://api.aisa.one/apis/v1/olostep/web-scrape \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"formats": [
"markdown"
],
"url_to_scrape": "<string>"
}
'import requests
url = "https://api.aisa.one/apis/v1/olostep/web-scrape"
payload = {
"formats": ["markdown"],
"url_to_scrape": "<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({formats: ['markdown'], url_to_scrape: '<string>'})
};
fetch('https://api.aisa.one/apis/v1/olostep/web-scrape', 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/olostep/web-scrape",
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([
'formats' => [
'markdown'
],
'url_to_scrape' => '<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/olostep/web-scrape"
payload := strings.NewReader("{\n \"formats\": [\n \"markdown\"\n ],\n \"url_to_scrape\": \"<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/olostep/web-scrape")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"formats\": [\n \"markdown\"\n ],\n \"url_to_scrape\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/olostep/web-scrape")
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 \"formats\": [\n \"markdown\"\n ],\n \"url_to_scrape\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"cache": {
"cached": null,
"from_cache": true
},
"created": 123,
"from_cache": true,
"id": "<string>",
"metadata": {},
"object": "<string>",
"result": {
"file_hosted_url": null,
"html_content": null,
"html_hosted_url": null,
"image_queued": null,
"json_content": null,
"json_hosted_url": null,
"links_on_page": [
"<unknown>"
],
"markdown_content": "<string>",
"markdown_hosted_url": "<string>",
"network_calls": null,
"page_metadata": {
"status_code": 123
},
"screenshot_hosted_url": null,
"size_exceeded": true,
"text_content": null,
"text_hosted_url": null
},
"retrieve_id": "<string>",
"url": "<string>"
}Olostep
Scrape a web page
Olostep parsers and LLM extraction are not accepted by this catalog tool; a team can call them directly through its own raw Olostep tool.
POST
https://api.aisa.one
/
apis
/
v1
/
olostep
/
web-scrape
Scrape a web page
curl --request POST \
--url https://api.aisa.one/apis/v1/olostep/web-scrape \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"formats": [
"markdown"
],
"url_to_scrape": "<string>"
}
'import requests
url = "https://api.aisa.one/apis/v1/olostep/web-scrape"
payload = {
"formats": ["markdown"],
"url_to_scrape": "<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({formats: ['markdown'], url_to_scrape: '<string>'})
};
fetch('https://api.aisa.one/apis/v1/olostep/web-scrape', 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/olostep/web-scrape",
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([
'formats' => [
'markdown'
],
'url_to_scrape' => '<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/olostep/web-scrape"
payload := strings.NewReader("{\n \"formats\": [\n \"markdown\"\n ],\n \"url_to_scrape\": \"<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/olostep/web-scrape")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"formats\": [\n \"markdown\"\n ],\n \"url_to_scrape\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/olostep/web-scrape")
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 \"formats\": [\n \"markdown\"\n ],\n \"url_to_scrape\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"cache": {
"cached": null,
"from_cache": true
},
"created": 123,
"from_cache": true,
"id": "<string>",
"metadata": {},
"object": "<string>",
"result": {
"file_hosted_url": null,
"html_content": null,
"html_hosted_url": null,
"image_queued": null,
"json_content": null,
"json_hosted_url": null,
"links_on_page": [
"<unknown>"
],
"markdown_content": "<string>",
"markdown_hosted_url": "<string>",
"network_calls": null,
"page_metadata": {
"status_code": 123
},
"screenshot_hosted_url": null,
"size_exceeded": true,
"text_content": null,
"text_hosted_url": null
},
"retrieve_id": "<string>",
"url": "<string>"
}
请求示例待验证。 此接口的请求示例尚未在生产环境验证。静态示例用于说明请求格式,请替换为自己的参数。正式调用前,可用免费的报价模式(X-AISA-Cost-Mode: quote)查看预估费用。
请求规范
- 方法与路径: POST /apis/v1/olostep/web-scrape
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/olostep/web-scrape
{
"operationId": "olostep.web-scrape",
"method": "POST",
"path": "/apis/v1/olostep/web-scrape",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"additionalProperties": false,
"properties": {
"formats": {
"description": "Structured parsers, JSON extraction and llm_extract are deliberately excluded.",
"items": {
"enum": [
"markdown"
],
"type": "string"
},
"maxItems": 1,
"minItems": 1,
"type": "array"
},
"links_on_page": {
"properties": {
"exclude_links": {
"items": {
"type": "string"
},
"type": "array"
},
"include_links": {
"items": {
"type": "string"
},
"type": "array"
},
"query_to_order_links_by": {
"type": "string"
}
},
"type": "object"
},
"max_age": {
"default": 0,
"description": "Reuse an Olostep scrape no older than this many seconds; 0 requests a fresh scrape.",
"maximum": 604800,
"minimum": 0,
"type": "integer"
},
"remove_images": {
"default": false,
"type": "boolean"
},
"transformer": {
"enum": [
"postlight",
"none"
],
"type": "string"
},
"url_to_scrape": {
"minLength": 1,
"type": "string"
}
},
"required": [
"formats",
"url_to_scrape"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
已观察到的响应结构
以下结构来自探针或抽样请求的成功结果,只反映已观察到的部分:字段和类型可能变化,不保证每次都有。已有正式响应定义优先;这里不发布真实响应值。- HTTP 状态 / 最近观察日期: 200 / 2026-11-14
{
"additionalProperties": true,
"properties": {
"cache": {
"additionalProperties": true,
"properties": {
"cached": {
"type": "null"
},
"from_cache": {
"type": "boolean"
}
},
"type": "object"
},
"created": {
"type": "integer"
},
"from_cache": {
"type": "boolean"
},
"id": {
"type": "string"
},
"metadata": {
"additionalProperties": true,
"type": "object"
},
"object": {
"type": "string"
},
"result": {
"additionalProperties": true,
"properties": {
"file_hosted_url": {
"type": "null"
},
"html_content": {
"type": "null"
},
"html_hosted_url": {
"type": "null"
},
"image_queued": {
"type": "null"
},
"json_content": {
"type": "null"
},
"json_hosted_url": {
"type": "null"
},
"links_on_page": {
"items": {},
"type": "array"
},
"markdown_content": {
"type": "string"
},
"markdown_hosted_url": {
"type": "string"
},
"network_calls": {
"type": "null"
},
"page_metadata": {
"additionalProperties": true,
"properties": {
"status_code": {
"type": "integer"
}
},
"type": "object"
},
"screenshot_hosted_url": {
"type": "null"
},
"size_exceeded": {
"type": "boolean"
},
"text_content": {
"type": "null"
},
"text_hosted_url": {
"type": "null"
}
},
"type": "object"
},
"retrieve_id": {
"type": "string"
},
"url": {
"type": "string"
}
},
"type": "object"
}
费用与请求规则
按实际用量收费。 当前暂无预估金额。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。响应时间
- 通常 10 秒内返回。
授权
请求体
application/json
响应
Observed successful JSON response. This partial structure comes from successful probe or sampled requests; fields and types may vary. No field is guaranteed to be present. Last observed: 2026-11-14.