Produkty
Katalog kart produktów po EAN (kategoria i parametry w kształcie Allegro); oferta z productSet[0].product.id dziedziczy kartę. Od 26.11.2026.
Wyszukiwanie produktów w katalogu
GET /sale/products
zgodna z Allegroallegro:api:sale:offers:readlimit: read
Katalog kart produktów allee (po EAN, z kategorią i parametrami w kształcie Allegro; zasilany importami, integratorami i samouczeniem z ofert). Szukaj po EAN (ean=…, do 100 po przecinku, albo phrase=…&mode=GTIN) lub po nazwie (phrase=…, opcjonalnie category.id / category.alleeId). Oferta z productSet[0].product.id = id karty dziedziczy jej nazwę, kategorię i parametry (dane podane w ofercie wygrywają). Następna strona: page.id = nextPage.id z poprzedniej odpowiedzi (jak Allegro); offset/limit też działają.
Zgodność: zgodna z Allegro REST API (ten sam kształt) — GET /sale/products.
Uprawnienie: zakres allegro:api:sale:offers:read.
Grupa limitu: read.
Parametry zapytania
phrase stringNazwa produktu albo kod EAN (z mode=GTIN).
mode stringGTIN = phrase to kod EAN.
GTINean stringRozszerzenie allee: EAN, do 100 po przecinku.
category.id stringId kategorii Allegro (zawęża wyszukiwanie po nazwie).
category.alleeId stringId kategorii allee.
page.id stringToken następnej strony (nextPage.id).
offset integerPrzesunięcie (alternatywa dla page.id).
limit integer1–100.
Odpowiedzi
200 Karty produktów. · ProductList
products array<Product> zawszePola obiektu
id string zawszeUUID karty.
name string zawszecategory object zawszePola obiektu
id string · null zawszeId kategorii Allegro.
alleeId integer · null zawszeId kategorii allee.
parameters array<object> zawszeParametry w kształcie Allegro (id, name, valuesIds, values, rangeValue); zawsze też 225693 EAN (GTIN).
images array<object> zawszePola obiektu
url string zawszeallee object zawszePola obiektu
ean string zawszesource string zawszeŹródło karty: api | selleetools | import.
offersCount integer zawszeupdatedAt string zawszenextPage object · null zawszePola obiektu
id string zawszeToken — podaj jako page.id.
offset integerlimit integerBłędy
| HTTP | Kod | Znaczenie |
|---|---|---|
| 400 | VALIDATION_ERROR | Zła wartość parametru zapytania (400) albo pola treści (422); path wskazuje miejsce. |
| 401 | invalid_token | Brak, zły, wygasły albo odwołany token lub klucz (format OAuth, nagłówek WWW-Authenticate). |
| 403 | ACCOUNT_INACTIVE | Konto sprzedawcy jest nieaktywne. |
| 403 | AccessDenied | Brak zakresu albo zasób innego sprzedawcy. |
| 403 | KEY_QUARANTINED | Kwarantanna: działa tylko odczyt (wykryto nietypowe użycie). |
| 403 | KEY_SUSPENDED | Klucz albo dostęp aplikacji wstrzymany (przez sprzedawcę albo ochronę). |
| 429 | TOO_MANY_REQUESTS | Przekroczony limit (minutowy, grupy operacji albo IP). |
| 500 | INTERNAL_ERROR | Błąd serwera allee. |
curl -sS -X GET "${ALLEE_API_URL:-https://api.allee.pl}/sale/products?phrase=film%20dvd" \
-H "Authorization: Bearer $ALLEE_API_KEY" \
-H "Accept: application/vnd.allegro.public.v1+json" \
-w '\nHTTP %{http_code}\n'<?php
// allee API: GET /sale/products (PHP 8, rozszerzenie curl)
$base = getenv('ALLEE_API_URL') ?: 'https://api.allee.pl';
$ch = curl_init($base . '/sale/products?phrase=film%20dvd');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('ALLEE_API_KEY'),
'Accept: application/vnd.allegro.public.v1+json',
],
CURLOPT_RETURNTRANSFER => true,
]);
$odp = curl_exec($ch);
echo 'HTTP ', curl_getinfo($ch, CURLINFO_RESPONSE_CODE), "\n", $odp, "\n";# allee API: GET /sale/products (Python 3, biblioteka requests)
import os
import requests
BASE = os.environ.get("ALLEE_API_URL", "https://api.allee.pl")
headers = {
"Authorization": "Bearer " + os.environ["ALLEE_API_KEY"],
"Accept": "application/vnd.allegro.public.v1+json",
}
r = requests.request("GET", BASE + "/sale/products?phrase=film%20dvd", headers=headers, timeout=60, allow_redirects=False)
print("HTTP", r.status_code)
print(r.text)// allee API: GET /sale/products (Node.js 18+, wbudowany fetch; plik .mjs)
const BASE = process.env.ALLEE_API_URL ?? "https://api.allee.pl";
const res = await fetch(`${BASE}/sale/products?phrase=film%20dvd`, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.ALLEE_API_KEY}`,
"Accept": "application/vnd.allegro.public.v1+json",
},
redirect: "manual",
});
console.log("HTTP", res.status);
console.log(await res.text());// allee API: GET /sale/products (C#, .NET 8+, HttpClient)
using System.Net.Http.Headers;
using System.Text;
var baseUrl = Environment.GetEnvironmentVariable("ALLEE_API_URL") ?? "https://api.allee.pl";
using var http = new HttpClient(new HttpClientHandler { AllowAutoRedirect = false });
using var req = new HttpRequestMessage(new HttpMethod("GET"), baseUrl + "/sale/products?phrase=film%20dvd");
req.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("ALLEE_API_KEY"));
req.Headers.Accept.ParseAdd("application/vnd.allegro.public.v1+json");
using var res = await http.SendAsync(req);
Console.WriteLine($"HTTP {(int)res.StatusCode}");
Console.WriteLine(await res.Content.ReadAsStringAsync());// allee API: GET /sale/products (Java 11+, java.net.http; uruchom: java Main.java)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String base = System.getenv().getOrDefault("ALLEE_API_URL", "https://api.allee.pl");
HttpRequest req = HttpRequest.newBuilder(URI.create(base + "/sale/products?phrase=film%20dvd"))
.header("Authorization", "Bearer " + System.getenv("ALLEE_API_KEY"))
.header("Accept", "application/vnd.allegro.public.v1+json")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpClient http = HttpClient.newBuilder().version(HttpClient.Version.HTTP_1_1).build();
HttpResponse<String> res = http.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println("HTTP " + res.statusCode());
System.out.println(res.body());
}
}// allee API: GET /sale/products (Go 1.20+, net/http; uruchom: go run main.go)
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
base := os.Getenv("ALLEE_API_URL")
if base == "" {
base = "https://api.allee.pl"
}
req, err := http.NewRequest("GET", base+"/sale/products?phrase=film%20dvd", nil)
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("ALLEE_API_KEY"))
req.Header.Set("Accept", "application/vnd.allegro.public.v1+json")
klient := &http.Client{CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}
res, err := klient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
dane, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println("HTTP", res.StatusCode)
fmt.Println(string(dane))
}application/vnd.allegro.public.v1+json{
"products": [
{
"id": "00024f21-e60d-4631-89ec-71f1fc3b94f4",
"name": "Reflektor sufitowy prostokątny ArtLight biały",
"category": {
"id": "259814",
"alleeId": 9747
},
"parameters": [
{
"id": "248811",
"name": "Marka",
"valuesIds": [
"248811_958954"
],
"values": [
"bez marki"
],
"rangeValue": null
},
{
"id": "24232",
"name": "Rodzaj gwintu",
"valuesIds": [
"24232_16"
],
"values": [
"GU10"
],
"rangeValue": null
},
{
"id": "248299",
"name": "Rodzaj",
"valuesIds": [
"248299_894584"
],
"values": [
"reflektor sufitowy"
],
"rangeValue": null
},
{
"id": "11484",
"name": "Kolor",
"valuesIds": [
"11484_2"
],
"values": [
"biały"
],
"rangeValue": null
},
{
"id": "220793",
"name": "Kształt",
"valuesIds": [
"220793_563269"
],
"values": [
"prostokątny"
],
"rangeValue": null
},
{
"id": "24231",
"name": "Długość/wysokość",
"valuesIds": [],
"values": [
"14.70"
],
"rangeValue": null
},
{
"id": "223333",
"name": "Szerokość produktu",
"valuesIds": [],
"values": [
"18.00"
],
"rangeValue": null
},
{
"id": "201321",
"name": "Głębokość produktu",
"valuesIds": [],
"values": [
"10.00"
],
"rangeValue": null
},
{
"id": "129259",
"name": "Liczba punktów światła",
"valuesIds": [
"129259_2"
],
"values": [
"2"
],
"rangeValue": null
},
{
"id": "201573",
"name": "Materiał dominujący",
"valuesIds": [
"201573_208693"
],
"values": [
"metal"
],
"rangeValue": null
},
{
"id": "209566",
"name": "Zasilanie",
"valuesIds": [
"209566_1"
],
"values": [
"sieciowe"
],
"rangeValue": null
},
{
"id": "213382",
"name": "Maksymalna moc pojedynczego źródła światła",
"valuesIds": [],
"values": [
"25.00"
],
"rangeValue": null
},
{
"id": "247945",
"name": "Klasa efektywności energetycznej",
"valuesIds": [
"247945_838303"
],
"values": [
"G"
],
"rangeValue": null
},
{
"id": "224017",
"name": "Kod producenta",
"valuesIds": [],
"values": [
"5902846011651"
],
"rangeValue": null
},
{
"id": "250792",
"name": "Kod taryfy celnej",
"valuesIds": [],
"values": [
"94051140"
],
"rangeValue": null
},
{
"id": "250685",
"name": "Zawiera baterie",
"valuesIds": [
"250685_2006717"
],
"values": [
"nie"
],
"rangeValue": null
},
{
"id": "220853",
"name": "Kolekcja",
"valuesIds": [],
"values": [
"Puro"
],
"rangeValue": null
},
{
"id": "218669",
"name": "Certyfikaty zgodności",
"valuesIds": [
"218669_1"
],
"values": [
"CE"
],
"rangeValue": null
},
{
"id": "250508",
"name": "Źródło światła",
"valuesIds": [
"250508_1925770"
],
"values": [
"bez źródła światła"
],
"rangeValue": null
},
{
"id": "215949",
"name": "Liczba sztuk",
"valuesIds": [],
"values": [
"1"
],
"rangeValue": null
},
{
"id": "225693",
"name": "EAN (GTIN)",
"valuesIds": [],
"values": [
"5902846011651"
],
"rangeValue": null
}
],
"images": [],
"allee": {
"ean": "5902846011651",
"source": "selleetools",
"offersCount": 0,
"updatedAt": "2026-11-26T22:20:39.000Z"
}
}
],
"nextPage": null
}Karta produktu
GET /sale/products/{productId}
zgodna z Allegroallegro:api:sale:offers:readlimit: read
Karta produktu allee (id z GET /sale/products): nazwa, kategoria (Allegro i allee), parametry, zdjęcia, EAN.
Zgodność: zgodna z Allegro REST API (ten sam kształt) — GET /sale/products/{productId}.
Uprawnienie: zakres allegro:api:sale:offers:read.
Grupa limitu: read.
Parametry ścieżki
productId string wymaganyIdentyfikator karty (UUID).
Odpowiedzi
200 Karta produktu. · Product
id string zawszeUUID karty.
name string zawszecategory object zawszePola obiektu
id string · null zawszeId kategorii Allegro.
alleeId integer · null zawszeId kategorii allee.
parameters array<object> zawszeParametry w kształcie Allegro (id, name, valuesIds, values, rangeValue); zawsze też 225693 EAN (GTIN).
images array<object> zawszePola obiektu
url string zawszeallee object zawszePola obiektu
ean string zawszesource string zawszeŹródło karty: api | selleetools | import.
offersCount integer zawszeupdatedAt string zawszeBłędy
| HTTP | Kod | Znaczenie |
|---|---|---|
| 401 | invalid_token | Brak, zły, wygasły albo odwołany token lub klucz (format OAuth, nagłówek WWW-Authenticate). |
| 403 | ACCOUNT_INACTIVE | Konto sprzedawcy jest nieaktywne. |
| 403 | AccessDenied | Brak zakresu albo zasób innego sprzedawcy. |
| 403 | KEY_QUARANTINED | Kwarantanna: działa tylko odczyt (wykryto nietypowe użycie). |
| 403 | KEY_SUSPENDED | Klucz albo dostęp aplikacji wstrzymany (przez sprzedawcę albo ochronę). |
| 404 | PRODUCT_NOT_FOUND | Nie ma karty produktu o tym id (GET /sale/products/{id} → 404; productSet[0].product.id w ofercie → 422). |
| 429 | TOO_MANY_REQUESTS | Przekroczony limit (minutowy, grupy operacji albo IP). |
| 500 | INTERNAL_ERROR | Błąd serwera allee. |
curl -sS -X GET "${ALLEE_API_URL:-https://api.allee.pl}/sale/products/c9a40d2e-2b57-4f7b-a2b4-3b2c4d5e6f70" \
-H "Authorization: Bearer $ALLEE_API_KEY" \
-H "Accept: application/vnd.allegro.public.v1+json" \
-w '\nHTTP %{http_code}\n'<?php
// allee API: GET /sale/products/c9a40d2e-2b57-4f7b-a2b4-3b2c4d5e6f70 (PHP 8, rozszerzenie curl)
$base = getenv('ALLEE_API_URL') ?: 'https://api.allee.pl';
$ch = curl_init($base . '/sale/products/c9a40d2e-2b57-4f7b-a2b4-3b2c4d5e6f70');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('ALLEE_API_KEY'),
'Accept: application/vnd.allegro.public.v1+json',
],
CURLOPT_RETURNTRANSFER => true,
]);
$odp = curl_exec($ch);
echo 'HTTP ', curl_getinfo($ch, CURLINFO_RESPONSE_CODE), "\n", $odp, "\n";# allee API: GET /sale/products/c9a40d2e-2b57-4f7b-a2b4-3b2c4d5e6f70 (Python 3, biblioteka requests)
import os
import requests
BASE = os.environ.get("ALLEE_API_URL", "https://api.allee.pl")
headers = {
"Authorization": "Bearer " + os.environ["ALLEE_API_KEY"],
"Accept": "application/vnd.allegro.public.v1+json",
}
r = requests.request("GET", BASE + "/sale/products/c9a40d2e-2b57-4f7b-a2b4-3b2c4d5e6f70", headers=headers, timeout=60, allow_redirects=False)
print("HTTP", r.status_code)
print(r.text)// allee API: GET /sale/products/c9a40d2e-2b57-4f7b-a2b4-3b2c4d5e6f70 (Node.js 18+, wbudowany fetch; plik .mjs)
const BASE = process.env.ALLEE_API_URL ?? "https://api.allee.pl";
const res = await fetch(`${BASE}/sale/products/c9a40d2e-2b57-4f7b-a2b4-3b2c4d5e6f70`, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.ALLEE_API_KEY}`,
"Accept": "application/vnd.allegro.public.v1+json",
},
redirect: "manual",
});
console.log("HTTP", res.status);
console.log(await res.text());// allee API: GET /sale/products/c9a40d2e-2b57-4f7b-a2b4-3b2c4d5e6f70 (C#, .NET 8+, HttpClient)
using System.Net.Http.Headers;
using System.Text;
var baseUrl = Environment.GetEnvironmentVariable("ALLEE_API_URL") ?? "https://api.allee.pl";
using var http = new HttpClient(new HttpClientHandler { AllowAutoRedirect = false });
using var req = new HttpRequestMessage(new HttpMethod("GET"), baseUrl + "/sale/products/c9a40d2e-2b57-4f7b-a2b4-3b2c4d5e6f70");
req.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("ALLEE_API_KEY"));
req.Headers.Accept.ParseAdd("application/vnd.allegro.public.v1+json");
using var res = await http.SendAsync(req);
Console.WriteLine($"HTTP {(int)res.StatusCode}");
Console.WriteLine(await res.Content.ReadAsStringAsync());// allee API: GET /sale/products/c9a40d2e-2b57-4f7b-a2b4-3b2c4d5e6f70 (Java 11+, java.net.http; uruchom: java Main.java)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String base = System.getenv().getOrDefault("ALLEE_API_URL", "https://api.allee.pl");
HttpRequest req = HttpRequest.newBuilder(URI.create(base + "/sale/products/c9a40d2e-2b57-4f7b-a2b4-3b2c4d5e6f70"))
.header("Authorization", "Bearer " + System.getenv("ALLEE_API_KEY"))
.header("Accept", "application/vnd.allegro.public.v1+json")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpClient http = HttpClient.newBuilder().version(HttpClient.Version.HTTP_1_1).build();
HttpResponse<String> res = http.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println("HTTP " + res.statusCode());
System.out.println(res.body());
}
}// allee API: GET /sale/products/c9a40d2e-2b57-4f7b-a2b4-3b2c4d5e6f70 (Go 1.20+, net/http; uruchom: go run main.go)
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
base := os.Getenv("ALLEE_API_URL")
if base == "" {
base = "https://api.allee.pl"
}
req, err := http.NewRequest("GET", base+"/sale/products/c9a40d2e-2b57-4f7b-a2b4-3b2c4d5e6f70", nil)
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("ALLEE_API_KEY"))
req.Header.Set("Accept", "application/vnd.allegro.public.v1+json")
klient := &http.Client{CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}
res, err := klient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
dane, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println("HTTP", res.StatusCode)
fmt.Println(string(dane))
}application/vnd.allegro.public.v1+json{
"errors": [
{
"code": "PRODUCT_NOT_FOUND",
"message": "Nie ma karty produktu o id c9a40d2e-2b57-4f7b-a2b4-3b2c4d5e6f70. Szukaj kart po EAN: GET /sale/products?ean=…",
"details": null,
"path": "id",
"userMessage": "Nie ma karty produktu o id c9a40d2e-2b57-4f7b-a2b4-3b2c4d5e6f70. Szukaj kart po EAN: GET /sale/products?ean=…",
"retryable": false,
"scope": "REQUEST"
}
]
}