Perform Full Text Search
curl --request GET \
--url https://api.aisa.one/apis/v1/search/full \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/search/full"
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/search/full', 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/search/full",
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/search/full"
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/search/full")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/search/full")
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{
"queryContext": {
"originalQuery": "<string>"
},
"webPages": {
"value": [
{
"content": "<string>",
"datePublished": "2023-11-07T05:31:56Z",
"displayUrl": "<string>",
"logo": "<string>",
"name": "<string>",
"siteName": "<string>",
"snippet": "<string>",
"url": "<string>"
}
]
}
}多源搜索
Perform Full Text Search
Searchfor web content and retrieve full text content with advanced filtering optionsincluding freshness, market, and safety filters
GET
https://api.aisa.one
/
apis
/
v1
/
search
/
full
Perform Full Text Search
curl --request GET \
--url https://api.aisa.one/apis/v1/search/full \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/search/full"
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/search/full', 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/search/full",
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/search/full"
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/search/full")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/search/full")
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{
"queryContext": {
"originalQuery": "<string>"
},
"webPages": {
"value": [
{
"content": "<string>",
"datePublished": "2023-11-07T05:31:56Z",
"displayUrl": "<string>",
"logo": "<string>",
"name": "<string>",
"siteName": "<string>",
"snippet": "<string>",
"url": "<string>"
}
]
}
}请求规范
- 方法与路径: GET /apis/v1/search/full
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/search/full - cc: query; 可选
- contentType: query; 可选
- count: query; 可选
- freshness: query; 可选
- mkt: query; 可选
- offset: query; 可选
- q: query; 必填
- safeSearch: query; 可选
- setLang: query; 可选
- textDecorations: query; 可选
{
"operationId": "any_search_apis_v1_search_full",
"method": "GET",
"path": "/apis/v1/search/full",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"description": "Atwo-character country code indicating the country from which the resultoriginated.",
"in": "query",
"name": "cc",
"required": false,
"schema": {
"maxLength": 2,
"type": "string"
}
},
{
"description": "Enumeration value that affects the format of the full text contentreturned",
"in": "query",
"name": "contentType",
"required": false,
"schema": {
"enum": [
"HTML",
"MARKDOWN"
],
"type": "string"
}
},
{
"description": "Number of search results included in the return results",
"in": "query",
"name": "count",
"required": false,
"schema": {
"type": "integer"
}
},
{
"description": "Filter search results by time values: Day, Week, Month. To get articleswithin a specific time range, specify a date range in the formatYYYY-MM-DD..YYYY-MM-DD. For example, 2019-02-01..2019-05-30.",
"in": "query",
"name": "freshness",
"required": false,
"schema": {
"type": "string"
}
},
{
"description": "Themarket from which the results come. Usually, mkt is the country where the usermade the request. The market must be in the language-country format. Forexample, en-US. The string is case-insensitive.",
"in": "query",
"name": "mkt",
"required": false,
"schema": {
"type": "string"
}
},
{
"description": "Theoffset from zero, indicating the number of search results to skip beforereturning results. The default value is 0. Use this parameter with the countparameter to paginate the results.",
"in": "query",
"name": "offset",
"required": false,
"schema": {
"default": 0,
"format": "int16",
"type": "integer"
}
},
{
"description": "Theuser's search query. This string cannot be empty. The query can containadvanced operators.",
"in": "query",
"name": "q",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "Usedto filter adult content in web pages, images, and videos.",
"in": "query",
"name": "safeSearch",
"required": false,
"schema": {
"enum": [
"Off",
"Moderate",
"Strict"
],
"type": "string"
}
},
{
"description": "Thelanguage for User Interface strings. You can use a 2-letter or 4-letter code tospecify the language. A 4-letter code is recommended in the form language-country,where language is an ISO 639-1 language code and country is an ISO 3166country/region code. For example, use en-US for US English.",
"in": "query",
"name": "setLang",
"required": false,
"schema": {
"type": "string"
}
},
{
"description": "Aboolean value that determines whether the display string in the result shouldcontain decoration markers (such as hit highlighting characters). If true, thestring may contain markers. The default value is false.",
"in": "query",
"name": "textDecorations",
"required": false,
"schema": {
"default": false,
"type": "boolean"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
费用与请求规则
请求费用。 默认请求预估费用:$0.001 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。授权
查询参数
Thelanguage for User Interface strings. You can use a 2-letter or 4-letter code tospecify the language. A 4-letter code is recommended in the form language-country,where language is an ISO 639-1 language code and country is an ISO 3166country/region code. For example, use en-US for US English.