# Fixed reference example. Playground inputs do not update this sample.
curl --request POST \
--url https://api.aisa.one/apis/v1/dataforseo/on_page/resources \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[
{
"id": "07281559-0695-0216-0000-c269be8b7592",
"filters": [
[
"resource_type",
"=",
"image"
],
"and",
[
"size",
">",
100000
]
],
"order_by": [
"size,desc"
],
"limit": 10
}
]'curl --request POST \
--url https://api.aisa.one/apis/v1/dataforseo/on_page/resources \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"filters": [
[
"resource_type",
"=",
"image"
],
"and",
[
"size",
">",
100000
]
],
"id": "07281559-0695-0216-0000-c269be8b7592",
"limit": 10,
"order_by": [
"size,desc"
]
}
]
'import requests
url = "https://api.aisa.one/apis/v1/dataforseo/on_page/resources"
payload = [
{
"filters": [["resource_type", "=", "image"], "and", ["size", ">", 100000]],
"id": "07281559-0695-0216-0000-c269be8b7592",
"limit": 10,
"order_by": ["size,desc"]
}
]
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([
{
filters: [['resource_type', '=', 'image'], 'and', ['size', '>', 100000]],
id: '07281559-0695-0216-0000-c269be8b7592',
limit: 10,
order_by: ['size,desc']
}
])
};
fetch('https://api.aisa.one/apis/v1/dataforseo/on_page/resources', 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/dataforseo/on_page/resources",
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([
[
'filters' => [
[
'resource_type',
'=',
'image'
],
'and',
[
'size',
'>',
100000
]
],
'id' => '07281559-0695-0216-0000-c269be8b7592',
'limit' => 10,
'order_by' => [
'size,desc'
]
]
]),
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/dataforseo/on_page/resources"
payload := strings.NewReader("[\n {\n \"filters\": [\n [\n \"resource_type\",\n \"=\",\n \"image\"\n ],\n \"and\",\n [\n \"size\",\n \">\",\n 100000\n ]\n ],\n \"id\": \"07281559-0695-0216-0000-c269be8b7592\",\n \"limit\": 10,\n \"order_by\": [\n \"size,desc\"\n ]\n }\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/dataforseo/on_page/resources")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"filters\": [\n [\n \"resource_type\",\n \"=\",\n \"image\"\n ],\n \"and\",\n [\n \"size\",\n \">\",\n 100000\n ]\n ],\n \"id\": \"07281559-0695-0216-0000-c269be8b7592\",\n \"limit\": 10,\n \"order_by\": [\n \"size,desc\"\n ]\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/dataforseo/on_page/resources")
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 {\n \"filters\": [\n [\n \"resource_type\",\n \"=\",\n \"image\"\n ],\n \"and\",\n [\n \"size\",\n \">\",\n 100000\n ]\n ],\n \"id\": \"07281559-0695-0216-0000-c269be8b7592\",\n \"limit\": 10,\n \"order_by\": [\n \"size,desc\"\n ]\n }\n]"
response = http.request(request)
puts response.read_body{
"cost": 123,
"status_code": 123,
"status_message": "<string>",
"tasks_count": 123,
"tasks_error": 123,
"time": "<string>",
"version": "<string>",
"tasks": [
{
"cost": 123,
"data": {},
"id": "<string>",
"path": [
"<string>"
],
"result_count": 123,
"status_code": 123,
"status_message": "<string>",
"time": "<string>",
"result": [
{
"crawl_progress": "<string>",
"crawl_status": {
"max_crawl_pages": 123,
"pages_crawled": 123,
"pages_in_queue": 123
},
"current_offset": 123,
"items": [
{
"accept_type": "<string>",
"fetch_timing": {
"duration_time": 123,
"fetch_end": 123,
"fetch_start": 123
},
"is_resource": true,
"meta": {
"broken_html": {
"errors": [
{
"column": 123,
"line": 123,
"message": "<string>",
"status_code": 123
}
],
"warnings": [
{
"column": 123,
"line": 123,
"message": "<string>",
"status_code": 123
}
]
},
"canonical": "<string>",
"charset": 123,
"content": {
"automated_readability_index": 123,
"coleman_liau_readability_index": 123,
"dale_chall_readability_index": 123,
"description_to_content_consistency": 123,
"flesch_kincaid_readability_index": 123,
"meta_keywords_to_content_consistency": 123,
"plain_text_rate": 123,
"plain_text_size": 123,
"plain_text_word_count": 123,
"smog_readability_index": 123,
"title_to_content_consistency": 123
},
"cumulative_layout_shift": 123,
"deprecated_tags": [
"<string>"
],
"description": "<string>",
"description_length": 123,
"duplicate_meta_tags": [
"<string>"
],
"external_links_count": 123,
"favicon": "<string>",
"follow": true,
"generator": "<string>",
"htags": {},
"images_count": 123,
"images_size": 123,
"inbound_links_count": 123,
"internal_links_count": 123,
"meta_keywords": "<string>",
"meta_title": "<string>",
"render_blocking_scripts_count": 123,
"render_blocking_stylesheets_count": 123,
"scripts_count": 123,
"scripts_size": 123,
"social_media_tags": {},
"spell": {
"hunspell_language_code": "<string>",
"misspelled": [
{
"word": "<string>"
}
]
},
"stylesheets_count": 123,
"stylesheets_size": 123,
"title": "<string>",
"title_length": 123
},
"cache_control": {
"cachable": true,
"ttl": 123
},
"checks": {},
"content_encoding": "<string>",
"encoded_size": 123,
"fetch_time": "<string>",
"last_modified": {
"header": "<string>",
"meta_tag": "<string>",
"sitemap": "<string>"
},
"location": "<string>",
"media_type": "<string>",
"resource_errors": {
"errors": [
{
"column": 123,
"line": 123,
"message": "<string>",
"status_code": 123
}
],
"warnings": [
{
"column": 123,
"line": 123,
"message": "<string>",
"status_code": 123
}
]
},
"resource_type": "<string>",
"server": "<string>",
"size": 123,
"status_code": 123,
"total_transfer_size": 123,
"url": "<string>"
}
],
"items_count": 123,
"search_after_token": "<string>",
"total_items_count": 123
}
]
}
]
}OnPage API 资源
一次爬取里的非页面资源——图片、脚本、样式表,附状态码和大小。
# Fixed reference example. Playground inputs do not update this sample.
curl --request POST \
--url https://api.aisa.one/apis/v1/dataforseo/on_page/resources \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[
{
"id": "07281559-0695-0216-0000-c269be8b7592",
"filters": [
[
"resource_type",
"=",
"image"
],
"and",
[
"size",
">",
100000
]
],
"order_by": [
"size,desc"
],
"limit": 10
}
]'curl --request POST \
--url https://api.aisa.one/apis/v1/dataforseo/on_page/resources \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"filters": [
[
"resource_type",
"=",
"image"
],
"and",
[
"size",
">",
100000
]
],
"id": "07281559-0695-0216-0000-c269be8b7592",
"limit": 10,
"order_by": [
"size,desc"
]
}
]
'import requests
url = "https://api.aisa.one/apis/v1/dataforseo/on_page/resources"
payload = [
{
"filters": [["resource_type", "=", "image"], "and", ["size", ">", 100000]],
"id": "07281559-0695-0216-0000-c269be8b7592",
"limit": 10,
"order_by": ["size,desc"]
}
]
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([
{
filters: [['resource_type', '=', 'image'], 'and', ['size', '>', 100000]],
id: '07281559-0695-0216-0000-c269be8b7592',
limit: 10,
order_by: ['size,desc']
}
])
};
fetch('https://api.aisa.one/apis/v1/dataforseo/on_page/resources', 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/dataforseo/on_page/resources",
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([
[
'filters' => [
[
'resource_type',
'=',
'image'
],
'and',
[
'size',
'>',
100000
]
],
'id' => '07281559-0695-0216-0000-c269be8b7592',
'limit' => 10,
'order_by' => [
'size,desc'
]
]
]),
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/dataforseo/on_page/resources"
payload := strings.NewReader("[\n {\n \"filters\": [\n [\n \"resource_type\",\n \"=\",\n \"image\"\n ],\n \"and\",\n [\n \"size\",\n \">\",\n 100000\n ]\n ],\n \"id\": \"07281559-0695-0216-0000-c269be8b7592\",\n \"limit\": 10,\n \"order_by\": [\n \"size,desc\"\n ]\n }\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/dataforseo/on_page/resources")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"filters\": [\n [\n \"resource_type\",\n \"=\",\n \"image\"\n ],\n \"and\",\n [\n \"size\",\n \">\",\n 100000\n ]\n ],\n \"id\": \"07281559-0695-0216-0000-c269be8b7592\",\n \"limit\": 10,\n \"order_by\": [\n \"size,desc\"\n ]\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/dataforseo/on_page/resources")
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 {\n \"filters\": [\n [\n \"resource_type\",\n \"=\",\n \"image\"\n ],\n \"and\",\n [\n \"size\",\n \">\",\n 100000\n ]\n ],\n \"id\": \"07281559-0695-0216-0000-c269be8b7592\",\n \"limit\": 10,\n \"order_by\": [\n \"size,desc\"\n ]\n }\n]"
response = http.request(request)
puts response.read_body{
"cost": 123,
"status_code": 123,
"status_message": "<string>",
"tasks_count": 123,
"tasks_error": 123,
"time": "<string>",
"version": "<string>",
"tasks": [
{
"cost": 123,
"data": {},
"id": "<string>",
"path": [
"<string>"
],
"result_count": 123,
"status_code": 123,
"status_message": "<string>",
"time": "<string>",
"result": [
{
"crawl_progress": "<string>",
"crawl_status": {
"max_crawl_pages": 123,
"pages_crawled": 123,
"pages_in_queue": 123
},
"current_offset": 123,
"items": [
{
"accept_type": "<string>",
"fetch_timing": {
"duration_time": 123,
"fetch_end": 123,
"fetch_start": 123
},
"is_resource": true,
"meta": {
"broken_html": {
"errors": [
{
"column": 123,
"line": 123,
"message": "<string>",
"status_code": 123
}
],
"warnings": [
{
"column": 123,
"line": 123,
"message": "<string>",
"status_code": 123
}
]
},
"canonical": "<string>",
"charset": 123,
"content": {
"automated_readability_index": 123,
"coleman_liau_readability_index": 123,
"dale_chall_readability_index": 123,
"description_to_content_consistency": 123,
"flesch_kincaid_readability_index": 123,
"meta_keywords_to_content_consistency": 123,
"plain_text_rate": 123,
"plain_text_size": 123,
"plain_text_word_count": 123,
"smog_readability_index": 123,
"title_to_content_consistency": 123
},
"cumulative_layout_shift": 123,
"deprecated_tags": [
"<string>"
],
"description": "<string>",
"description_length": 123,
"duplicate_meta_tags": [
"<string>"
],
"external_links_count": 123,
"favicon": "<string>",
"follow": true,
"generator": "<string>",
"htags": {},
"images_count": 123,
"images_size": 123,
"inbound_links_count": 123,
"internal_links_count": 123,
"meta_keywords": "<string>",
"meta_title": "<string>",
"render_blocking_scripts_count": 123,
"render_blocking_stylesheets_count": 123,
"scripts_count": 123,
"scripts_size": 123,
"social_media_tags": {},
"spell": {
"hunspell_language_code": "<string>",
"misspelled": [
{
"word": "<string>"
}
]
},
"stylesheets_count": 123,
"stylesheets_size": 123,
"title": "<string>",
"title_length": 123
},
"cache_control": {
"cachable": true,
"ttl": 123
},
"checks": {},
"content_encoding": "<string>",
"encoded_size": 123,
"fetch_time": "<string>",
"last_modified": {
"header": "<string>",
"meta_tag": "<string>",
"sitemap": "<string>"
},
"location": "<string>",
"media_type": "<string>",
"resource_errors": {
"errors": [
{
"column": 123,
"line": 123,
"message": "<string>",
"status_code": 123
}
],
"warnings": [
{
"column": 123,
"line": 123,
"message": "<string>",
"status_code": 123
}
]
},
"resource_type": "<string>",
"server": "<string>",
"size": 123,
"status_code": 123,
"total_transfer_size": 123,
"url": "<string>"
}
],
"items_count": 123,
"search_after_token": "<string>",
"total_items_count": 123
}
]
}
]
}search_after_token 翻页。单条实测 625 字节。读的是一次已完成的爬取,因此需要 post_dataforseo_on_page_submit 返回的 id,并会带回 crawl_progress 和 crawl_status(max_crawl_pages、pages_in_queue、pages_crawled)——结果偏少时先看这几个字段,爬取还在跑就是本来没那么多。 完全抓不到的资源在 post_dataforseo_on_page_uncrawlable_resources。## 示例
curl -X POST "https://api.aisa.one/apis/v1/dataforseo/on_page/resources" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '[{"id": "...", "url": "...", "limit": "..."}]'
// 把整段复制给 Claude Code、Codex、Cursor 或任意 coding agent。
// 连接、授权、跑通这个例子需要的东西都在里面 ——
// 不用粘贴任何 key,浏览器里点一次 Allow 就好。
{
"calls": [
{
"call_id": "1",
"tool": "post_dataforseo_on_page_resources",
"arguments": {}
}
]
}
// ── for the agent ─────────────────────────────────────────────────────────
// Register the AIsa MCP server, then call its `batch_quote` tool with the JSON above.
// name aisa
// endpoint https://mcp.aisa.one/mcp
// transport streamable-http
// auth OAuth. The server publishes RFC 9728 metadata, so open a
// browser and the user clicks Allow once — nothing to paste.
// If AISA_API_KEY is set, send it as a bearer header instead.
// Use your own MCP mechanism, not a hand-edited config file:
// Codex codex mcp add aisa --url https://mcp.aisa.one/mcp
// Claude Code claude mcp add --transport http -s user aisa https://mcp.aisa.one/mcp
// Cursor / VS Code a "url" entry for https://mcp.aisa.one/mcp in the MCP config
// The server reaches https://mcp.aisa.one/servers worth of APIs through a few meta
// tools: search, list_categories, get_details, batch_quote, batch_use.
// search, get_details and batch_quote are free; batch_use is billed per
// call. This operation's full contract — every argument, the response
// shape, the price and the pitfalls — is at
// https://aisa.one/docs/zh/api-reference/dataforseo/post_dataforseo-on-page-resources.md
// Show me the quoted cost. Once I approve, run the same calls with
// batch_use and show me the result.
https://mcp.aisa.one/mcp —— Claude Code、
Codex、Cursor、VS Code 都可以。鉴权走 OAuth:客户端打开浏览器,你点一次
Allow,不需要粘贴任何 key。之后智能体通过几个元工具调用所有端点:
search、list_categories、get_details 和 batch_quote 免费,batch_use
按次计费。各客户端的接入步骤见通过 MCP 连接;实时工具列表和
每次调用的价格见 aisa.one/zh-cn/mcp。请求规范
- 方法与路径: POST /apis/v1/dataforseo/on_page/resources
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/dataforseo/on_page/resources
{
"operationId": "post_dataforseo_on_page_resources",
"method": "POST",
"path": "/apis/v1/dataforseo/on_page/resources",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"example": [
{
"filters": [
[
"resource_type",
"=",
"image"
],
"and",
[
"size",
">",
100000
]
],
"id": "07281559-0695-0216-0000-c269be8b7592",
"limit": 10,
"order_by": [
"size,desc"
]
}
],
"items": {
"oneOf": [
{
"properties": {
"filters": {
"description": "<em>array of results filtering parameters</em><br>optional field<br><strong>you can add several filters at once (8 filters maximum)</strong><br>you should set a logical operator <code>and</code>, <code>or</code> between the conditions<br>the following operators are supported:<br><code>regex</code>, <code>not_regex</code>, <code><</code>, <code><=</code>, <code>></code>, <code>>=</code>, <code>=</code>, <code><></code>, <code>in</code>, <code>not_in</code>, <code>like</code>, <code>not_like</code><br>you can use the <code>%</code> operator with <code>like</code> and <code>not_like</code> to match any string of zero or more characters<br>example:<br><code>[\"resource_type\",\"=\",\"stylesheet\"]</code><p><code>[[\"resource_type\",\"=\",\"image\"],<br>\"and\",[\"checks.is_https\",\"=\",false]]</code><p><code>[[\"fetch_timing.duration_time\",\">\",1],\"and\",[[\"total_transfer_size\",\">\",100],\"or\",[\"checks.high_loading_time\",\"=\",true]]]</code><p>The full list of possible filters is available <a href=\"/v3/on_page/filters_and_thresholds/?bash\" rel=\"noopener noreferrer\" target=\"_blank\">by this link.</a>",
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"additionalProperties": {
"$ref": "#/components/schemas/ProviderF3207D84Cc07_AisaDataforseoFilterJsonValue"
},
"type": [
"object",
"null"
]
},
{
"items": {
"$ref": "#/components/schemas/ProviderF3207D84Cc07_AisaDataforseoFilterJsonValue"
},
"type": "array"
}
],
"description": "JSON representation of filter values and nested expressions. Field names, operators, condition counts and operand compatibility remain provider-validated as documented for each endpoint; this is not a complete filter-language validator."
},
"type": [
"array",
"null"
]
},
"id": {
"description": "<em>ID of the task</em><br><strong>required field</strong><br>you can get this ID in the response of the <a href=\"/v3/on_page/task_post/\">Task POST</a> endpoint<br>example:<br>\"07131248-1535-0216-1000-17384017ad04\"",
"type": "string"
},
"limit": {
"description": "<em>the maximum number of returned resources</em><br>optional field<br>default value: <code>100</code><br>maximum value: <code>1000</code>",
"type": [
"integer",
"null"
]
},
"offset": {
"description": "<em>offset in the results array of returned resources</em><br>optional field<br>default value: <code>0</code><br>maximum value: <code>2000000</code><br>if you specify the <code>10</code> value, the first ten resources in the results array will be omitted and the data will be provided for the successive resources",
"type": [
"integer",
"null"
]
},
"order_by": {
"description": "<em>results sorting rules</em><br>optional field<br>you can use the same values as in the <code>filters</code> array to sort the results<br>possible sorting types:<br><code>asc</code> - results will be sorted in the ascending order<br><code>desc</code> - results will be sorted in the descending order<br>you should use a comma to set up a sorting type<br>example:<br><code>[\"size,desc\"]</code><br><strong>note that you can set no more than three sorting rules in a single request</strong><br>you should use a comma to separate several sorting rules<br>example:<br><code>[\"size,desc\",\"fetch_timing.fetch_end,desc\"]</code>",
"items": {
"type": "string"
},
"type": [
"array",
"null"
]
},
"relevant_pages_filters": {
"description": "<em>filter the resources by relevant pages</em><br>optional field<br>you can use this field to obtain resources from pages matching to the defined parameters<br>you can apply the same filters here as available for the <a href=\"/v3/on_page/pages/\" rel=\"noopener noreferrer\" target=\"_blank\">pages endpoint</a><br><strong>you can add several filters at once (8 filters maximum)</strong><br>you should set a logical operator <code>and</code>, <code>or</code> between the conditions<br>the following operators are supported:<br><code>regex</code>, <code>not_regex</code>, <code><</code>, <code><=</code>, <code>></code>, <code>>=</code>, <code>=</code>, <code><></code>, <code>in</code>, <code>not_in</code>, <code>like</code>, <code>not_like</code><br>you can use the <code>%</code> operator with <code>like</code> and <code>not_like</code> to match any string of zero or more characters<br>example:<br><code>[\"checks.no_image_title\",\"=\",true]</code>",
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"additionalProperties": {
"$ref": "#/components/schemas/ProviderF3207D84Cc07_AisaDataforseoFilterJsonValue"
},
"type": [
"object",
"null"
]
},
{
"items": {
"$ref": "#/components/schemas/ProviderF3207D84Cc07_AisaDataforseoFilterJsonValue"
},
"type": "array"
}
],
"description": "JSON representation of filter values and nested expressions. Field names, operators, condition counts and operand compatibility remain provider-validated as documented for each endpoint; this is not a complete filter-language validator."
},
"type": [
"array",
"null"
]
},
"search_after_token": {
"description": "<em>token for subsequent requests</em><br>optional field<br>provided in the identical filed of the response to each request;<br>use this parameter to avoid timeouts while trying to obtain over <code>20,000</code> results in a single request;<br>by specifying the unique <code>search_after_token</code> value from the response array, you will get the subsequent results of the initial task;<br><code>search_after_token</code> values are unique for each subsequent task ;<br><strong>Note:</strong> if the <code>search_after_token</code> is specified in the request, all other parameters should be identical to the previous request",
"type": [
"string",
"null"
]
},
"tag": {
"description": "<em>user-defined task identifier</em><br>optional field<br><em>the character limit is 255</em><br>you can use this parameter to identify the task and match it with the result<br>you will find the specified <code>tag</code> value in the <code>data</code> object of the response",
"type": [
"string",
"null"
]
},
"url": {
"description": "<em>page URL</em><br>optional field<br>specify this field if you want to get the resources for a specific page<br>note that to obtain resource's <code>meta</code> from a particular URL, you should specify the URL in this field;<br>if you do not indicate a <code>url</code> when setting a task, resource's <code>meta</code> in the results will be returned based on the data from the page where our crawler first saw the resource",
"type": [
"string",
"null"
]
}
},
"type": "object"
}
],
"type": [
"object",
"null"
]
},
"type": "array"
}
}
}
},
"x-aisa-status": "enabled",
"components": {
"schemas": {
"ProviderF3207D84Cc07_AisaDataforseoFilterJsonValue": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"additionalProperties": {
"$ref": "#/components/schemas/ProviderF3207D84Cc07_AisaDataforseoFilterJsonValue"
},
"type": [
"object",
"null"
]
},
{
"items": {
"$ref": "#/components/schemas/ProviderF3207D84Cc07_AisaDataforseoFilterJsonValue"
},
"type": "array"
}
],
"description": "JSON representation of filter values and nested expressions. Field names, operators, condition counts and operand compatibility remain provider-validated as documented for each endpoint; this is not a complete filter-language validator."
}
},
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
费用与请求规则
按实际用量收费。 默认请求预估费用:$0.012 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。授权
请求体
array of results filtering parameters
optional field
you can add several filters at once (8 filters maximum)
you should set a logical operator and, or between the conditions
the following operators are supported:regex, not_regex, <, <=, >, >=, =, <>, in, not_in, like, not_like
you can use the % operator with like and not_like to match any string of zero or more characters
example:["resource_type","=","stylesheet"]
[["resource_type","=","image"],"and",["checks.is_https","=",false]]
[["fetch_timing.duration_time",">",1],"and",[["total_transfer_size",">",100],"or",["checks.high_loading_time","=",true]]]
The full list of possible filters is available by this link.
- string
- number
- boolean
- object
- any[]
JSON representation of filter values and nested expressions. Field names, operators, condition counts and operand compatibility remain provider-validated as documented for each endpoint; this is not a complete filter-language validator.
ID of the task
required field
you can get this ID in the response of the Task POST endpoint
example:
"07131248-1535-0216-1000-17384017ad04"
results sorting rules
optional field
you can use the same values as in the filters array to sort the results
possible sorting types:asc - results will be sorted in the ascending orderdesc - results will be sorted in the descending order
you should use a comma to set up a sorting type
example:["size,desc"]
note that you can set no more than three sorting rules in a single request
you should use a comma to separate several sorting rules
example:["size,desc","fetch_timing.fetch_end,desc"]
filter the resources by relevant pages
optional field
you can use this field to obtain resources from pages matching to the defined parameters
you can apply the same filters here as available for the pages endpoint
you can add several filters at once (8 filters maximum)
you should set a logical operator and, or between the conditions
the following operators are supported:regex, not_regex, <, <=, >, >=, =, <>, in, not_in, like, not_like
you can use the % operator with like and not_like to match any string of zero or more characters
example:["checks.no_image_title","=",true]
- string
- number
- boolean
- object
- any[]
JSON representation of filter values and nested expressions. Field names, operators, condition counts and operand compatibility remain provider-validated as documented for each endpoint; this is not a complete filter-language validator.
token for subsequent requests
optional field
provided in the identical filed of the response to each request;
use this parameter to avoid timeouts while trying to obtain over 20,000 results in a single request;
by specifying the unique search_after_token value from the response array, you will get the subsequent results of the initial task;search_after_token values are unique for each subsequent task ;
Note: if the search_after_token is specified in the request, all other parameters should be identical to the previous request
page URL
optional field
specify this field if you want to get the resources for a specific page
note that to obtain resource's meta from a particular URL, you should specify the URL in this field;
if you do not indicate a url when setting a task, resource's meta in the results will be returned based on the data from the page where our crawler first saw the resource
[
{
"filters": [
["resource_type", "=", "image"],
"and",
["size", ">", 100000]
],
"id": "07281559-0695-0216-0000-c269be8b7592",
"limit": 10,
"order_by": ["size,desc"]
}
]
响应
Successful operation