Skip to main content
POST
设置 Google 以图搜索 SERP 任务
设置 Google Search By Image SERP 任务。仅在设置任务时向您的账户收费。每次 POST 调用最多可发送 100 个任务,之后可通过任务 id 或 postback/pingback 获取已完成的结果。

示例

第一次用? 把任意 MCP 客户端指向 https://mcp.aisa.one/mcp —— Claude Code、 Codex、Cursor、VS Code 都可以。鉴权走 OAuth:客户端打开浏览器,你点一次 Allow,不需要粘贴任何 key。各客户端的具体命令和每次调用的价格见 aisa.one/zh-cn/mcp。
在你的 agent 里把这个端点跑起来 →

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
image_url
string

URL of the image

required field

the results will be based on the image you specified in this field

example:

https://upload.wikimedia.org/wikipedia/commons/e/ed/Elon_Musk_Royal_Society.jpg

location_code
integer

search engine location code

required field if you don't specify location_name or location_coordinate

if you use this field, you don't need to specify location_name or location_coordinate

you can receive the list of available locations of the search engines with their location_code by making a separate request to the https://api.dataforseo.com/v3/serp/{{low_se_name}}/locations

example:

2840

language_code
string

search engine language code

required field if you don't specify language_name

if you use this field, you don't need to specify language_name

you can receive the list of available languages of the search engine with their language_code by making a separate request to the https://api.dataforseo.com/v3/serp/{{low_se_name}}/languages

example:

en

pingback_url
string | null

notification URL of a completed task

optional field

when a task is completed we will notify you by GET request sent to the URL you have specified

you can use the ‘$id’ string as a $id variable and ‘$tag’ as urlencoded $tag variable. We will set the necessary values before sending the request.

example:

http://your-server.com/pingscript?id=$id

http://your-server.com/pingscript?id=$id&tag=$tag

Note: special characters in pingback_url will be urlencoded;

i.a., the # character will be encoded into %23


learn more on our Help Center

postback_url
string | null

URL for sending task results

optional field

once the task is completed, we will send a POST request with its results compressed in the gzip format to the postback_url you specified

you can use the ‘$id’ string as a $id variable and ‘$tag’ as urlencoded $tag variable. We will set the necessary values before sending the request.

example:

http://your-server.com/postbackscript?id=$id

http://your-server.com/postbackscript?id=$id&tag=$tag

Note: special characters in postback_url will be urlencoded;

i.a., the # character will be encoded into %23


learn more on our Help Center

postback_data
string

postback_url datatype

required field if you specify postback_url

corresponds to the datatype that will be sent to your server

possible values:

advanced, html

priority
integer | null

task priority

optional field

can take the following values:

1 – normal execution priority (set by default)

2 – high execution priority


You will be additionally charged for the tasks with high execution priority.

The cost can be calculated on the Pricing page.

location_name
string

full name of search engine location

required field if you don't specify location_code or location_coordinate

if you use this field, you don't need to specify location_code or location_coordinate

you can receive the list of available locations of the search engine with their location_name by making a separate request to the https://api.dataforseo.com/v3/serp/{{low_se_name}}/locations

example:

London,England,United Kingdom

language_name
string

full name of search engine language

required field if you don't specify language_code

if you use this field, you don't need to specify language_code

you can receive the list of available languages of the search engine with their language_name by making a separate request to the https://api.dataforseo.com/v3/serp/{{low_se_name}}/languages

example:

English

tag
string | null

user-defined task identifier

optional field

the character limit is 255

you can use this parameter to identify the task and match it with the result

you will find the specified tag value in the data object of the response

max_crawl_pages
integer | null

page crawl limit

optional field

number of search results pages to crawl

max value: 100

Note: the max_crawl_pages and depth parameters complement each other;

learn more at our help center

search_param
string | null

additional parameters of the search query

optional field

get the list of available parameters and additional details here

calculate_rectangles
boolean | null

calculate pixel rankings for SERP elements in advanced results

optional field

pixel ranking refers to the distance between the result snippet and top left corner of the screen;

Visit Help Center to learn more>>

by default, the parameter is set to false

Note: if set to true, the charge per task will be multiplied by 2

browser_screen_width
integer<int64> | null

browser screen width

optional field

you can set a custom browser screen width to calculate pixel rankings for a particular device;

by default, the parameter is set to 1920;

Note: to use this parameter, set calculate_rectangles to true

browser_screen_height
integer | null

browser screen height

optional field

you can set a custom browser screen height to calculate pixel rankings for a particular device;

by default, the parameter is set to 1080;

Note: to use this parameter, set calculate_rectangles to true

browser_screen_resolution_ratio
integer | null

browser screen resolution ratio

optional field

you can set a custom browser screen resolution ratio to calculate pixel rankings for a particular device;

by default, the parameter is set to 1;

Note: to use this parameter, set calculate_rectangles to true

location_coordinate
string

GPS coordinates of a location

required field if you don't specify location_name or location_code

if you use this field, you don't need to specify location_name or location_code

location_coordinate parameter should be specified in the "latitude,longitude,radius" format

the maximum number of decimal digits for "latitude" and "longitude": 7

the minimum value for "radius": 199.9 (mm)

the maximum value for "radius": 199999 (mm)

example:

53.476225,-2.243572,200

se_domain
string | null

search engine domain

optional field

we choose the relevant search engine domain automatically according to the location and language you specify

however, you can set a custom search engine domain in this field

example:

google.co.uk, google.com.au, google.de, etc.

示例:

响应

object | null

Successful operation

version
string | null

API 的当前版本

status_code
integer | null

general status code you can find the full list of the response codes here

status_message
string | null

general informational message you can find the full list of general informational messages here

time
string | null

total execution time, seconds

cost
number<double> | null

任务总成本(美元)

tasks_count
integer<int64> | null

tasks 数组中的任务数量

tasks_error
integer<int64> | null

返回错误的 tasks 数组中的任务数量

tasks
(object | null)[] | null

array of tasks