textstringआवश्यक
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.
https://api.sandbase.ai/v1/api/yandex/searchGet Yandex web results for a query with organic results and pagination, localized by Yandex domain, region and language.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Get Yandex web results for a query with organic results and pagination, localized by Yandex domain, region and language.
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.
| Name | Type | Required | Description |
|---|---|---|---|
text | string | Yes | 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. |
yandex_domain | string | No | 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 |
lang | string | No | 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. |
lr | string | No | 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 |
family_mode | string | No | Parameter enables or disables Family Mode (safe search). It can be set to: - Off(0) - Moderate(1) - Strict(2). It defaults to Moderate(1). |
fix_typo | string | No | Parameter enables or disables automatic spelling correction. It can be set to: true - false. It defaults to true. |
groups_on_page | string | No | Parameter defines the maximum number of groups displayed on a single results page. It defaults to 20. |
sort_mode | string | No | Parameter defines the sorting mode of search results. It can be set to: relevance - by relevance (default) date - by date. |
period | string | No | 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 |
p | string | No | Parameter defines page number. Pagination starts from 0. |
json_restrictor | string | No | 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. |
$0.010 per successful call. Failed calls are not charged.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
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"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
textstringआवश्यक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.
yandex_domainstringParameter 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`
langstringParameter 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`.
lrstringParameter 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`.
family_modestringParameter enables or disables Family Mode (safe search). It can be set to: - Off(`0`) - Moderate(`1`) - Strict(`2`). It defaults to Moderate(`1`).
fix_typostringParameter enables or disables automatic spelling correction. It can be set to: `true` - `false`. It defaults to `true`.
groups_on_pagestringParameter defines the maximum number of groups displayed on a single results page. It defaults to `20`.
sort_modestringParameter defines the sorting mode of search results. It can be set to: `relevance` - by relevance (default) `date` - by date.
periodstringParameter 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
pstringParameter defines page number. Pagination starts from 0.
json_restrictorstringParameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Yandex Searchयह API Yandex | $0.01 प्रति कॉल | JSON |
Yandex | $0.015 प्रति कॉल | JSON |
Yandex | $0.015 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/yandex/search पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.01 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: text (string)। वैकल्पिक: yandex_domain (string), lang (string), lr (string), family_mode (string), fix_typo (string) और groups_on_page (string) और 4 और। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)।
नहीं। Yandex Search SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Yandex API access के लिए आवेदन करने की आवश्यकता नहीं है।