Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Yandex Search

เอกสาร 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.

ราคา
$0.01USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 10 ไม่บังคับ

Playground

อินพุต
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.
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

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.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
Yandex SearchAPI นี้
Yandex
$0.01 ต่อการเรียกJSON
Yandex$0.015 ต่อการเรียกJSON
Yandex$0.015 ต่อการเรียกJSON

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Yandex Search API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/yandex/search โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Yandex Search API ราคาเท่าไร?

$0.01 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Yandex Search API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: text (string). ตัวเลือก: yandex_domain (string), lang (string), lr (string), family_mode (string), fix_typo (string) และ groups_on_page (string) และอีก 4 รายการ ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Yandex Search API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส)

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Yandex ไหม?

ไม่จำเป็น Yandex Search ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Yandex API แยกต่างหาก