Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

Yandex Search

API dokümanları
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.

Fiyat
$0.01USD / çağrı
Yöntem
POST
Yanıt
JSON
Parametreler
1 gerekli · 10 isteğe bağlı

Oynatma Alanı

Girdi
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.
ÇıktıHazır

Çıktınız burada görünecek

Girdileri tamamlayın, ardından Çalıştır'a tıklayın.

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.

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
Yandex$0.01 çağrı başınaJSON
Yandex$0.015 çağrı başınaJSON
Yandex$0.015 çağrı başınaJSON

Sorular

SSS

Yandex Search API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/yandex/search adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

Yandex Search API'sinin fiyatı nedir?

çağrı başına $0.01, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.

Yandex Search API'si hangi parametreleri kabul eder?

Gerekli: text (string). İsteğe bağlı: yandex_domain (string), lang (string), lr (string), family_mode (string), fix_typo (string) ve groups_on_page (string) ve 4 tane daha. Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.

Yandex Search API'si ne döndürür?

Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron).

Bir Yandex geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. Yandex Search, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Yandex API erişimi için ayrıca başvuru yapmanız gerekmez.