Generate web page markdown
curl --request GET \
--url https://api.aisa.one/apis/v1/web/markdown \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/web/markdown"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/web/markdown', 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/web/markdown",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/web/markdown"
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))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/web/markdown")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/web/markdown")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"links": {},
"media": {
"images": [
{
"score": 123
}
]
},
"metadata": {
"author": "<string>",
"description": "<string>",
"title": "<string>"
},
"status": 123,
"url": "<string>"
},
"meta": {
"version": "<string>"
}
}Web pages
Generate web page markdown
Fetches a web page by URL and returns its content as clean Markdown. Required input: url.
GET
https://api.aisa.one
/
apis
/
v1
/
web
/
markdown
Generate web page markdown
curl --request GET \
--url https://api.aisa.one/apis/v1/web/markdown \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/web/markdown"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/web/markdown', 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/web/markdown",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/web/markdown"
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))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/web/markdown")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/web/markdown")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"links": {},
"media": {
"images": [
{
"score": 123
}
]
},
"metadata": {
"author": "<string>",
"description": "<string>",
"title": "<string>"
},
"status": 123,
"url": "<string>"
},
"meta": {
"version": "<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: GET /apis/v1/web/markdown
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/web/markdown - cacheMode: query; optional
- filter: query; optional
- query: query; optional
- scanFullPage: query; optional
- url: query; required
- waitFor: query; optional
{
"operationId": "web.markdown",
"method": "GET",
"path": "/apis/v1/web/markdown",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"in": "query",
"name": "cacheMode",
"required": false,
"schema": {
"description": "Cache behavior. `enabled`: read from cache if present, else fetch and write to cache. `bypass`: always fetch fresh, ignoring and not updating the cache. `write_only`: always fetch fresh, but write the result to cache without reading from it first. Default: `enabled`.",
"enum": [
"bypass",
"enabled",
"write_only"
],
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "filter",
"required": false,
"schema": {
"description": "Markdown extraction filter. `fit`: strip boilerplate and extract the main readable content. `raw`: full unfiltered page markdown, no content pruning. `bm25`: rank and return only the content most relevant to `query`, using the BM25 keyword-relevance algorithm — requires `query` to be set.",
"enum": [
"bm25",
"fit",
"raw"
],
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "query",
"required": false,
"schema": {
"description": "Optional query string used by the bm25 filter to rank relevant content.",
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "scanFullPage",
"required": false,
"schema": {
"description": "When true, scroll the page to load dynamically appended content (infinite scroll). Default false.",
"type": "boolean"
}
},
{
"in": "query",
"name": "url",
"required": true,
"schema": {
"description": "Web page URL to fetch.",
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "waitFor",
"required": false,
"schema": {
"description": "Wait for a CSS selector before extraction. Must be prefixed with \"css:\" (e.g. css:main). JavaScript wait conditions are not supported.",
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"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-28
{
"additionalProperties": true,
"properties": {
"data": {
"additionalProperties": true,
"properties": {
"links": {
"additionalProperties": true,
"type": "object"
},
"media": {
"additionalProperties": true,
"properties": {
"images": {
"items": {
"additionalProperties": true,
"properties": {
"score": {
"type": "integer"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
},
"metadata": {
"additionalProperties": true,
"properties": {
"author": {
"type": [
"null",
"string"
]
},
"description": {
"type": "string"
},
"title": {
"type": "string"
}
},
"type": "object"
},
"status": {
"type": "integer"
},
"url": {
"type": "string"
}
},
"type": "object"
},
"meta": {
"additionalProperties": true,
"properties": {
"version": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.014 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Response time
- Typically returns within 10 seconds.
Authorizations
Query Parameters
Cache behavior. enabled: read from cache if present, else fetch and write to cache. bypass: always fetch fresh, ignoring and not updating the cache. write_only: always fetch fresh, but write the result to cache without reading from it first. Default: enabled.
Available options:
bypass, enabled, write_only Required string length:
1 - 4096Markdown extraction filter. fit: strip boilerplate and extract the main readable content. raw: full unfiltered page markdown, no content pruning. bm25: rank and return only the content most relevant to query, using the BM25 keyword-relevance algorithm — requires query to be set.
Available options:
bm25, fit, raw Required string length:
1 - 4096