Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Yandex Search

Tài liệu API
https://api.sandbase.ai/v1/api/yandex/search

Get Yandex web results for a query with organic results and pagination, localized by Yandex domain, region and language.

Giá
$0.01USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 10 tùy chọn

Phòng thử nghiệm

Đầu vào
Parameter defines the search query. You can use anything that you would use in a regular Yandex search. It can be 400 characters at maximum. Yandex usually accepts first 40 words of the query.
Parameter defines the Yandex domain to use. It defaults to `yandex.com`. Head to the Yandex domains for a full list of supported Yandex domains. A default `lr` is used for each `yandex_domain`. Example: `84`(US) for `yandex.com` A default `lang` parameter `en`(English) is used for `yandex.com`
Parameter defines the language to use for the Yandex search. Head to the Yandex languages for a full list of supported Yandex languages. It defaults to `en` when `yandex_domain` is `yandex.com`.
Parameter defines country or region ID to limit the search results to. Head to the Yandex locations for a full list of supported Yandex locations. If parameter is not set - the matching location of selected `yandex_domain` is used, e.g. `84` for `yandex.com`.
Parameter enables or disables Family Mode (safe search). It can be set to: - Off(`0`) - Moderate(`1`) - Strict(`2`). It defaults to Moderate(`1`).
Parameter enables or disables automatic spelling correction. It can be set to: `true` - `false`. It defaults to `true`.
Parameter defines the maximum number of groups displayed on a single results page. It defaults to `20`.
Parameter defines the sorting mode of search results. It can be set to: `relevance` - by relevance (default) `date` - by date.
Parameter defines the time period for search results. It can be set to: `all` - all time (Default) `day` - last day `last_two_weeks` - last two weeks `month` - last month
Parameter defines page number. Pagination starts from 0.
Parameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

Yandex Search

Get Yandex web results for a query with organic results and pagination, localized by Yandex domain, region and language.

Request

curl -X POST "https://api.sandbase.ai/v1/api/yandex/search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text": "best coffee grinder"}'

The result is returned in outputs[0].data as structured JSON.

Parameters

NameTypeRequiredDescription
textstringYesParameter defines the search query. You can use anything that you would use in a regular Yandex search. It can be 400 characters at maximum. Yandex usually accepts first 40 words of the query.
yandex_domainstringNoParameter defines the Yandex domain to use. It defaults to yandex.com. Head to the Yandex domains for a full list of supported Yandex domains. A default lr is used for each yandex_domain. Example: 84(US) for yandex.com A
langstringNoParameter defines the language to use for the Yandex search. Head to the Yandex languages for a full list of supported Yandex languages. It defaults to en when yandex_domain is yandex.com.
lrstringNoParameter defines country or region ID to limit the search results to. Head to the Yandex locations for a full list of supported Yandex locations. If parameter is not set - the matching location of selected yandex_domain is used, e.g. `84
family_modestringNoParameter enables or disables Family Mode (safe search). It can be set to: - Off(0) - Moderate(1) - Strict(2). It defaults to Moderate(1).
fix_typostringNoParameter enables or disables automatic spelling correction. It can be set to: true - false. It defaults to true.
groups_on_pagestringNoParameter defines the maximum number of groups displayed on a single results page. It defaults to 20.
sort_modestringNoParameter defines the sorting mode of search results. It can be set to: relevance - by relevance (default) date - by date.
periodstringNoParameter defines the time period for search results. It can be set to: all - all time (Default) day - last day last_two_weeks - last two weeks month - last month
pstringNoParameter defines page number. Pagination starts from 0.
json_restrictorstringNoParameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.

Pricing

$0.010 per successful call. Failed calls are not charged.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Yandex$0.01 mỗi lần gọiJSON
Yandex$0.015 mỗi lần gọiJSON
Yandex$0.015 mỗi lần gọiJSON

Câu hỏi

FAQ

Làm thế nào để dùng API Yandex Search?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/yandex/search với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Yandex Search có giá bao nhiêu?

$0.01 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Yandex Search chấp nhận những tham số nào?

Bắt buộc: text (string). Tùy chọn: yandex_domain (string), lang (string), lr (string), family_mode (string), fix_typo (string) và groups_on_page (string) và 4 mục khác. Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Yandex Search trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ).

Tôi có cần tài khoản nhà phát triển hoặc API key của Yandex không?

Không. Yandex Search chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Yandex.