Download the EAN registry
curl --request GET \
--url https://app.buylo.ai/api/external/ean-registry \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.buylo.ai/api/external/ean-registry"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.buylo.ai/api/external/ean-registry', 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://app.buylo.ai/api/external/ean-registry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://app.buylo.ai/api/external/ean-registry"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.buylo.ai/api/external/ean-registry")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.buylo.ai/api/external/ean-registry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": 42,
"ean": "8591234567890",
"name": {
"en": "Brazil Santos Coffee",
"cs": "Brazilská káva Santos"
},
"description": {
"en": "Roasted Arabica coffee beans from Brazil",
"cs": "Pražená arabica z Brazílie"
},
"prices": [
{
"currency": "CZK",
"price": 249.9
}
],
"status": "active",
"category": "Coffee",
"brand": "Santos",
"vat_rate": 21,
"unit": "kg"
}
],
"total": 137,
"truncated": false
}{
"message": "<string>"
}EAN Registry
Download the EAN registry
Returns the full EAN registry available to the company behind the bearer token.
Privacy is controlled by the tenant-level private_ean_registry feature flag:
- When the flag is enabled, only the tenant’s own EAN records are returned.
- When the flag is disabled, the shared/global EAN pool is returned.
The endpoint returns the full registry in a single response (no pagination).
A hard cap of 5000 records per response protects the server. If the registry
exceeds 5000 entries, only the first 5000 are returned and truncated is
set to true.
GET
/
api
/
external
/
ean-registry
Download the EAN registry
curl --request GET \
--url https://app.buylo.ai/api/external/ean-registry \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.buylo.ai/api/external/ean-registry"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.buylo.ai/api/external/ean-registry', 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://app.buylo.ai/api/external/ean-registry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://app.buylo.ai/api/external/ean-registry"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.buylo.ai/api/external/ean-registry")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.buylo.ai/api/external/ean-registry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": 42,
"ean": "8591234567890",
"name": {
"en": "Brazil Santos Coffee",
"cs": "Brazilská káva Santos"
},
"description": {
"en": "Roasted Arabica coffee beans from Brazil",
"cs": "Pražená arabica z Brazílie"
},
"prices": [
{
"currency": "CZK",
"price": 249.9
}
],
"status": "active",
"category": "Coffee",
"brand": "Santos",
"vat_rate": 21,
"unit": "kg"
}
],
"total": 137,
"truncated": false
}{
"message": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.