/ozon/products/search
curl --request POST \
--url https://api.anysite.io/api/ozon/products/search \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"text": "<string>",
"count": 2,
"timeout": 300,
"sorting": "popular",
"price_min": 1,
"price_max": 1,
"brand": [
"<string>"
],
"seller": [
"<string>"
],
"color": [
"<string>"
],
"is_promo": false,
"is_installment": false,
"original_only": false,
"discounted_only": false,
"with_review_points": false,
"filters": {}
}
'import requests
url = "https://api.anysite.io/api/ozon/products/search"
payload = {
"text": "<string>",
"count": 2,
"timeout": 300,
"sorting": "popular",
"price_min": 1,
"price_max": 1,
"brand": ["<string>"],
"seller": ["<string>"],
"color": ["<string>"],
"is_promo": False,
"is_installment": False,
"original_only": False,
"discounted_only": False,
"with_review_points": False,
"filters": {}
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
text: '<string>',
count: 2,
timeout: 300,
sorting: 'popular',
price_min: 1,
price_max: 1,
brand: ['<string>'],
seller: ['<string>'],
color: ['<string>'],
is_promo: false,
is_installment: false,
original_only: false,
discounted_only: false,
with_review_points: false,
filters: {}
})
};
fetch('https://api.anysite.io/api/ozon/products/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://api.anysite.io/api/ozon/products/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'text' => '<string>',
'count' => 2,
'timeout' => 300,
'sorting' => 'popular',
'price_min' => 1,
'price_max' => 1,
'brand' => [
'<string>'
],
'seller' => [
'<string>'
],
'color' => [
'<string>'
],
'is_promo' => false,
'is_installment' => false,
'original_only' => false,
'discounted_only' => false,
'with_review_points' => false,
'filters' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anysite.io/api/ozon/products/search"
payload := strings.NewReader("{\n \"text\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"sorting\": \"popular\",\n \"price_min\": 1,\n \"price_max\": 1,\n \"brand\": [\n \"<string>\"\n ],\n \"seller\": [\n \"<string>\"\n ],\n \"color\": [\n \"<string>\"\n ],\n \"is_promo\": false,\n \"is_installment\": false,\n \"original_only\": false,\n \"discounted_only\": false,\n \"with_review_points\": false,\n \"filters\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/ozon/products/search")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"text\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"sorting\": \"popular\",\n \"price_min\": 1,\n \"price_max\": 1,\n \"brand\": [\n \"<string>\"\n ],\n \"seller\": [\n \"<string>\"\n ],\n \"color\": [\n \"<string>\"\n ],\n \"is_promo\": false,\n \"is_installment\": false,\n \"original_only\": false,\n \"discounted_only\": false,\n \"with_review_points\": false,\n \"filters\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/ozon/products/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"text\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"sorting\": \"popular\",\n \"price_min\": 1,\n \"price_max\": 1,\n \"brand\": [\n \"<string>\"\n ],\n \"seller\": [\n \"<string>\"\n ],\n \"color\": [\n \"<string>\"\n ],\n \"is_promo\": false,\n \"is_installment\": false,\n \"original_only\": false,\n \"discounted_only\": false,\n \"with_review_points\": false,\n \"filters\": {}\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"@type": "OzonProductSnippet",
"sku": 123,
"product_title": "<string>",
"url": "<string>",
"alias": "<string>",
"image": "<string>",
"images": [],
"price": 123,
"original_price": 123,
"discount_percent": 123,
"currency": "RUB",
"rating": 123,
"review_count": 123,
"stock_text": "<string>",
"badge_text": "<string>",
"brand_logo": "<string>",
"is_adult": false
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}/ozon
/ozon/products/search
Search Ozon products by keyword: product cards with id, sku, title, image, url, price, original price, discount, rating, review count and stock, with price range, brand, seller, color, delivery, sale, installment, original-only and discount filters plus ordering.
Price: 20 credits per 8 results
⚠️ Common errors: 412: No products found for the given keyword and filters.
POST
/
api
/
ozon
/
products
/
search
/ozon/products/search
curl --request POST \
--url https://api.anysite.io/api/ozon/products/search \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"text": "<string>",
"count": 2,
"timeout": 300,
"sorting": "popular",
"price_min": 1,
"price_max": 1,
"brand": [
"<string>"
],
"seller": [
"<string>"
],
"color": [
"<string>"
],
"is_promo": false,
"is_installment": false,
"original_only": false,
"discounted_only": false,
"with_review_points": false,
"filters": {}
}
'import requests
url = "https://api.anysite.io/api/ozon/products/search"
payload = {
"text": "<string>",
"count": 2,
"timeout": 300,
"sorting": "popular",
"price_min": 1,
"price_max": 1,
"brand": ["<string>"],
"seller": ["<string>"],
"color": ["<string>"],
"is_promo": False,
"is_installment": False,
"original_only": False,
"discounted_only": False,
"with_review_points": False,
"filters": {}
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
text: '<string>',
count: 2,
timeout: 300,
sorting: 'popular',
price_min: 1,
price_max: 1,
brand: ['<string>'],
seller: ['<string>'],
color: ['<string>'],
is_promo: false,
is_installment: false,
original_only: false,
discounted_only: false,
with_review_points: false,
filters: {}
})
};
fetch('https://api.anysite.io/api/ozon/products/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://api.anysite.io/api/ozon/products/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'text' => '<string>',
'count' => 2,
'timeout' => 300,
'sorting' => 'popular',
'price_min' => 1,
'price_max' => 1,
'brand' => [
'<string>'
],
'seller' => [
'<string>'
],
'color' => [
'<string>'
],
'is_promo' => false,
'is_installment' => false,
'original_only' => false,
'discounted_only' => false,
'with_review_points' => false,
'filters' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anysite.io/api/ozon/products/search"
payload := strings.NewReader("{\n \"text\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"sorting\": \"popular\",\n \"price_min\": 1,\n \"price_max\": 1,\n \"brand\": [\n \"<string>\"\n ],\n \"seller\": [\n \"<string>\"\n ],\n \"color\": [\n \"<string>\"\n ],\n \"is_promo\": false,\n \"is_installment\": false,\n \"original_only\": false,\n \"discounted_only\": false,\n \"with_review_points\": false,\n \"filters\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/ozon/products/search")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"text\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"sorting\": \"popular\",\n \"price_min\": 1,\n \"price_max\": 1,\n \"brand\": [\n \"<string>\"\n ],\n \"seller\": [\n \"<string>\"\n ],\n \"color\": [\n \"<string>\"\n ],\n \"is_promo\": false,\n \"is_installment\": false,\n \"original_only\": false,\n \"discounted_only\": false,\n \"with_review_points\": false,\n \"filters\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/ozon/products/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"text\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"sorting\": \"popular\",\n \"price_min\": 1,\n \"price_max\": 1,\n \"brand\": [\n \"<string>\"\n ],\n \"seller\": [\n \"<string>\"\n ],\n \"color\": [\n \"<string>\"\n ],\n \"is_promo\": false,\n \"is_installment\": false,\n \"original_only\": false,\n \"discounted_only\": false,\n \"with_review_points\": false,\n \"filters\": {}\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"@type": "OzonProductSnippet",
"sku": 123,
"product_title": "<string>",
"url": "<string>",
"alias": "<string>",
"image": "<string>",
"images": [],
"price": 123,
"original_price": 123,
"discount_percent": 123,
"currency": "RUB",
"rating": 123,
"review_count": 123,
"stock_text": "<string>",
"badge_text": "<string>",
"brand_logo": "<string>",
"is_adult": false
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
API token from the dashboard
Headers
Body
application/json
Minimum string length:
1Required range:
x >= 1Required range:
20 <= x <= 1500Available options:
popular, newest, price_asc, price_desc, high_rating, big_discount Required range:
x >= 0Required range:
x >= 0Available options:
tomorrow, within_3_days, within_7_days Show child attributes
Show child attributes
Response
Successful Response
⌘I