Image Search
curl --request GET \
--url https://scrapebadger.com/v1/yandex/images/search \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://scrapebadger.com/v1/yandex/images/search"
headers = {"X-API-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<x-api-key>'}};
fetch('https://scrapebadger.com/v1/yandex/images/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://scrapebadger.com/v1/yandex/images/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://scrapebadger.com/v1/yandex/images/search"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://scrapebadger.com/v1/yandex/images/search")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scrapebadger.com/v1/yandex/images/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"query": "<string>",
"domain": "<string>",
"page": 123,
"search_url": "<string>",
"result_count": 123,
"results": [
{
"position": 123,
"title": "<string>",
"source": "<string>",
"source_url": "<string>",
"thumbnail": "<string>",
"image": {},
"snippet": "<string>"
}
],
"suggested_searches": [
"<string>"
]
}Search
Image Search
Search Yandex Images by text query — full-resolution image URL, dimensions, thumbnail and source page.
GET
/
v1
/
yandex
/
images
/
search
Image Search
curl --request GET \
--url https://scrapebadger.com/v1/yandex/images/search \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://scrapebadger.com/v1/yandex/images/search"
headers = {"X-API-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<x-api-key>'}};
fetch('https://scrapebadger.com/v1/yandex/images/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://scrapebadger.com/v1/yandex/images/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://scrapebadger.com/v1/yandex/images/search"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://scrapebadger.com/v1/yandex/images/search")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scrapebadger.com/v1/yandex/images/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"query": "<string>",
"domain": "<string>",
"page": 123,
"search_url": "<string>",
"result_count": 123,
"results": [
{
"position": 123,
"title": "<string>",
"source": "<string>",
"source_url": "<string>",
"thumbnail": "<string>",
"image": {},
"snippet": "<string>"
}
],
"suggested_searches": [
"<string>"
]
}Search Yandex Images by text. Each result carries the full-resolution image
(
url, width, height), a thumbnail and the page the image lives on.
Credits: 7
Authorization
Query Parameters
Yandex domain:
tr (default), com, ru, by, kz, uz. com/ru have
a lower success rate. See /markets.Response
Example
curl "https://scrapebadger.com/v1/yandex/images/search?query=coffee+machine&domain=tr" \
-H "X-API-Key: YOUR_API_KEY"
const res = await fetch(
"https://scrapebadger.com/v1/yandex/images/search?" +
new URLSearchParams({ query: "coffee machine", domain: "tr" }),
{ headers: { "X-API-Key": process.env.SCRAPEBADGER_API_KEY } },
);
const data = await res.json();
import requests
res = requests.get(
"https://scrapebadger.com/v1/yandex/images/search",
headers={"X-API-Key": "YOUR_API_KEY"},
params={"query": "coffee machine", "domain": "tr"},
)
data = res.json()
Response
{
"query": "coffee machine",
"domain": "tr",
"page": 1,
"search_url": "https://yandex.com.tr/images/search?text=coffee+machine",
"result_count": 30,
"results": [
{
"position": 1,
"title": "Espresso Machine",
"source": "example.com",
"source_url": "https://www.example.com/product/espresso",
"thumbnail": "https://avatars.mds.yandex.net/i?id=abc123",
"image": { "url": "https://www.example.com/img/espresso.jpg", "width": 2000, "height": 1333 },
"snippet": "Stainless steel espresso machine"
}
],
"suggested_searches": ["espresso machine", "bean to cup"]
}

