All URIs are relative to https://scrapebadger.com, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| yandexImageSearch() | GET /v1/yandex/images/search | Image search |
| yandexListSupportedMarkets() | GET /v1/yandex/markets | List supported markets |
| yandexReverseImageSearch() | GET /v1/yandex/images/reverse | Reverse image search |
| yandexWebSearch() | GET /v1/yandex/search | Web search |
| yandexYandexScraperHealthCheck() | GET /v1/yandex/health | Yandex scraper health check |
| yandexYandexScraperHealthCheckHead() | HEAD /v1/yandex/health | Yandex scraper health check |
yandexImageSearch($query, $domain, $page): mixedImage search
Search Yandex Images by text — thumbnail, full-res URL, dimensions, source page.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\YandexApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$query = 'query_example'; // string | Image search query, e.g. 'coffee machine'
$domain = 'tr'; // string | Yandex market: 'tr' (yandex.com.tr, DEFAULT — the domain that reliably clears anti-bot), 'com', 'ru', 'by', 'kz', 'uz'. 'com'/'ru' have a lower success rate.
$page = 1; // int
try {
$result = $apiInstance->yandexImageSearch($query, $domain, $page);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling YandexApi->yandexImageSearch: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| query | string | Image search query, e.g. 'coffee machine' | |
| domain | string | Yandex market: 'tr' (yandex.com.tr, DEFAULT — the domain that reliably clears anti-bot), 'com', 'ru', 'by', 'kz', 'uz'. 'com'/'ru' have a lower success rate. | [optional] [default to 'tr'] |
| page | int | [optional] [default to 1] |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
yandexListSupportedMarkets(): mixedList supported markets
Supported Yandex markets (domains, default region and language).
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\YandexApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->yandexListSupportedMarkets();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling YandexApi->yandexListSupportedMarkets: ', $e->getMessage(), PHP_EOL;
}This endpoint does not need any parameter.
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
yandexReverseImageSearch($image_url, $domain): mixedReverse image search
Reverse image search by URL — hosting pages, similar images, tags, other sizes.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\YandexApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$image_url = 'image_url_example'; // string | Public URL of the image to reverse-search
$domain = 'tr'; // string | Yandex market: 'tr' (yandex.com.tr, DEFAULT — the domain that reliably clears anti-bot), 'com', 'ru', 'by', 'kz', 'uz'. 'com'/'ru' have a lower success rate.
try {
$result = $apiInstance->yandexReverseImageSearch($image_url, $domain);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling YandexApi->yandexReverseImageSearch: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| image_url | string | Public URL of the image to reverse-search | |
| domain | string | Yandex market: 'tr' (yandex.com.tr, DEFAULT — the domain that reliably clears anti-bot), 'com', 'ru', 'by', 'kz', 'uz'. 'com'/'ru' have a lower success rate. | [optional] [default to 'tr'] |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
yandexWebSearch($query, $domain, $page, $lr, $lang): mixedWeb search
Search Yandex web results — organic results, ads, displayed URLs, snippets.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\YandexApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$query = 'query_example'; // string | Search query, e.g. 'coffee machine'
$domain = 'tr'; // string | Yandex market: 'tr' (yandex.com.tr, DEFAULT — the domain that reliably clears anti-bot), 'com', 'ru', 'by', 'kz', 'uz'. 'com'/'ru' have a lower success rate.
$page = 1; // int
$lr = 56; // int | Yandex region id, e.g. 213=Moscow, 84=USA
$lang = 'lang_example'; // string | UI language: ru, en, tr, be, kk, uk
try {
$result = $apiInstance->yandexWebSearch($query, $domain, $page, $lr, $lang);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling YandexApi->yandexWebSearch: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| query | string | Search query, e.g. 'coffee machine' | |
| domain | string | Yandex market: 'tr' (yandex.com.tr, DEFAULT — the domain that reliably clears anti-bot), 'com', 'ru', 'by', 'kz', 'uz'. 'com'/'ru' have a lower success rate. | [optional] [default to 'tr'] |
| page | int | [optional] [default to 1] | |
| lr | int | Yandex region id, e.g. 213=Moscow, 84=USA | [optional] |
| lang | string | UI language: ru, en, tr, be, kk, uk | [optional] |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
yandexYandexScraperHealthCheck(): mixedYandex scraper health check
Check health of the Yandex scraper service (accepts HEAD for UptimeRobot).
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\YandexApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->yandexYandexScraperHealthCheck();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling YandexApi->yandexYandexScraperHealthCheck: ', $e->getMessage(), PHP_EOL;
}This endpoint does not need any parameter.
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
yandexYandexScraperHealthCheckHead(): mixedYandex scraper health check
Check health of the Yandex scraper service (accepts HEAD for UptimeRobot).
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\YandexApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->yandexYandexScraperHealthCheckHead();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling YandexApi->yandexYandexScraperHealthCheckHead: ', $e->getMessage(), PHP_EOL;
}This endpoint does not need any parameter.
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]