API REST
Ogni birrificio, in JSON.
Colleghi il suo CRM, i suoi strumenti interni o le pagine del suo prodotto a 27.849 birrifici in attività, ai loro annunci legali e ai loro punti di interesse. Risposte paginate, filtri nella query string.
- URL di base
- https://api.hopctopus.com/api/v1
- Formato
- JSON · UTF-8
- Riferimento interattivo
- Swagger /docs
Autenticazione
Una chiave in un header
Passi la sua chiave nell'header X-API-Key. Le chiavi arrivano con l'abbonamento a una delle offerte.
curl -H "X-API-Key: $HOPCTOPUS_API_KEY" \
"https://api.hopctopus.com/api/v1/breweries/?limit=10"
| Accesso | Autenticazione | Limite di frequenza |
|---|---|---|
Statistiche pubbliche (/stats) | Nessuna | 100 req/min |
| Clienti | Chiave API (X-API-Key) | 1.000 req/min |
| Grandi volumi | OAuth2 | Su misura |
Oltre il limite, l'API risponde 429. Gli errori restituiscono {"detail": "…"} con lo stato 404, 422 o 500.
Birrifici
Il dataset unificato e deduplicato. Risposta paginata: {data, total, limit, offset}.
| Endpoint | Descrizione | Parametri |
|---|---|---|
| GET/api/v1/breweries/ | Elenco dei birrifici | city, region, active, brewery_type, activity, postal_code, search, has_website, has_coords, limit (≤ 10000), offset |
| GET/api/v1/breweries/{hopctopus_id} | Scheda completa, con legal_events e osm_data | — |
| GET/api/v1/breweries/geo/bounds | Birrifici dentro un rettangolo di coordinate | min_lat, max_lat, min_lon, max_lon (obbligatori), limit |
curl -H "X-API-Key: $HOPCTOPUS_API_KEY" \
"https://api.hopctopus.com/api/v1/breweries/?region=Bretagne&active=true&limit=10"
import httpx
client = httpx.Client(
base_url="https://api.hopctopus.com/api/v1",
headers={"X-API-Key": HOPCTOPUS_API_KEY},
)
resp = client.get("/breweries/", params={"region": "Bretagne", "active": True, "limit": 10})
breweries = resp.json()["data"]
const resp = await fetch(
"https://api.hopctopus.com/api/v1/breweries/?region=Bretagne&active=true&limit=10",
{ headers: { "X-API-Key": HOPCTOPUS_API_KEY } }
);
const { data, total } = await resp.json();
{
"data": [
{
"hopctopus_id": "hop-exemple001",
"name": "Brasserie Exemple",
"siren": "123456789",
"type": "craft",
"activity": "brewer",
"postal_code": "69001",
"city": "Lyon",
"region": "Auvergne-Rhône-Alpes",
"latitude": 45.764,
"longitude": 4.835,
"active": true,
"founded": "2018-04-12",
"website": "https://example.com"
}
],
"total": 5694,
"limit": 10,
"offset": 0
}
Annunci legali
Annunci legali legati ai birrifici: creation, immatriculation, modification, transfer, receivership, liquidation, closure, accounts_filing.
| Endpoint | Descrizione | Parametri |
|---|---|---|
| GET/api/v1/events/ | Elenco degli annunci | hopctopus_id, event_type, region, country, limit (≤ 10000), offset |
| GET/api/v1/events/stats | Totali per tipo, per anno, per regione e per tipo su 12 mesi | — |
curl -H "X-API-Key: $HOPCTOPUS_API_KEY" \
"https://api.hopctopus.com/api/v1/events/?event_type=receivership&limit=20"
resp = client.get("/events/", params={"event_type": "receivership", "limit": 20})
events = resp.json()["data"]
const resp = await fetch(
"https://api.hopctopus.com/api/v1/events/?event_type=receivership&limit=20",
{ headers: { "X-API-Key": HOPCTOPUS_API_KEY } }
);
const { data } = await resp.json();
{
"data": [
{
"event_id": "evt-exemple001",
"hopctopus_id": "hop-exemple001",
"siren": "123456789",
"type": "receivership",
"family": "Procédures collectives",
"sub_type": "Jugement d'ouverture",
"publication_date": "2026-08-11",
"company_name": "Brasserie Exemple",
"city": "Lyon",
"region": "Auvergne-Rhône-Alpes",
"bodacc_url": "https://…",
"tribunal": "Greffe du Tribunal de Commerce de Lyon",
"matched": true
}
],
"total": 182,
"limit": 20,
"offset": 0
}
Punti di interesse
Punti di interesse dei birrifici, consegnati a parte sotto licenza ODbL 1.0, con l'attribuzione indicata nel campo license della risposta.
| Endpoint | Descrizione | Parametri |
|---|---|---|
| GET/api/v1/osm/ | Elenco dei punti di interesse | category, has_website, has_hours, limit (≤ 10000), offset |
| GET/api/v1/osm/stats | Completezza dei punti di interesse (coordinate, sito, orari, telefono) | — |
curl -H "X-API-Key: $HOPCTOPUS_API_KEY" \
"https://api.hopctopus.com/api/v1/osm/?has_hours=true&limit=50"
resp = client.get("/osm/", params={"has_hours": True, "limit": 50})
pois = resp.json()["data"]
const resp = await fetch(
"https://api.hopctopus.com/api/v1/osm/?has_hours=true&limit=50",
{ headers: { "X-API-Key": HOPCTOPUS_API_KEY } }
);
const { data, license } = await resp.json();
{
"data": [
{
"osm_poi_id": "OSM-node-1000000",
"name": "Micro Brasserie de Chamonix",
"latitude": 45.9234,
"longitude": 6.869,
"osm_category": "craft=brewery",
"osm_website": "https://example.com",
"osm_opening_hours": "Mo-Fr 10:00-18:00",
"osm_address_city": "Chamonix",
"osm_address_postcode": "74400"
}
],
"total": 387,
"limit": 50,
"offset": 0,
"license": "ODbL 1.0 — OpenStreetMap contributors"
}
Statistiche
Gli aggregati mostrati sulla pagina iniziale.
| Endpoint | Descrizione | Parametri |
|---|---|---|
| GET/api/v1/stats/ | Numeri chiave e data di aggiornamento | — |
| GET/api/v1/stats/breweries/by-region | Birrifici per regione | limit (predefinito 20) |
| GET/api/v1/stats/breweries/by-city | Birrifici per comune | limit (predefinito 20) |
| GET/api/v1/stats/breweries/by-type | Birrifici per tipo | — |
| GET/api/v1/stats/breweries/new | Aperture recenti: contatore mobile e aperture per mese | days (predefinito 30), months (predefinito 12) |
curl "https://api.hopctopus.com/api/v1/stats/"
stats = client.get("/stats/").json()
print(stats["breweries_active"], "brasseries actives")
const stats = await fetch("https://api.hopctopus.com/api/v1/stats/")
.then((r) => r.json());
{
"breweries": 5694,
"breweries_active": 4181,
"breweries_geocoded": 5239,
"breweries_by_source": { "sirene": 4603, "osm": 1091 },
"legal_events": 17011,
"osm_pois": 1137,
"beers": 0,
"venues": 0,
"updated_at": "2026-10-06"
}
Birre
Catalogo delle voci. Raccolta in corso: questi endpoint restituiscono un elenco vuoto.
| Endpoint | Descrizione | Parametri |
|---|---|---|
| GET/api/v1/beers/ | Elenco delle birre | hopctopus_id, country, style_code, style_family, color, status, q, abv_min, abv_max, limit (≤ 10000), offset |
| GET/api/v1/beers/{beer_id} | Una birra | — |
curl -H "X-API-Key: $HOPCTOPUS_API_KEY" \
"https://api.hopctopus.com/api/v1/beers/?style=IPA&abv_min=5"
{ "data": [], "total": 0, "limit": 50, "offset": 0 }
Punti vendita
Bar, enoteche e supermercati. Raccolta in corso: questi endpoint restituiscono un elenco vuoto.
| Endpoint | Descrizione | Parametri |
|---|---|---|
| GET/api/v1/venues/ | Elenco dei punti vendita | city, venue_type, limit (≤ 500), offset |
| GET/api/v1/venues/{venue_id} | Un punto vendita | — |
curl -H "X-API-Key: $HOPCTOPUS_API_KEY" \
"https://api.hopctopus.com/api/v1/venues/?city=Lyon&venue_type=bar"
{ "data": [], "total": 0, "limit": 50, "offset": 0 }
Pubblici (deprecati)
Endpoint senza chiave del vecchio sito vetrina, limitati alla Francia. Questo sito non li chiama più: verranno ritirati nella prossima versione. Non restituiscono alcun identificativo, alcun codice d'impresa e alcun indirizzo. Risposte in cache per un'ora.
| Endpoint | Descrizione | Parametri |
|---|---|---|
| GET/api/v1/public/map | Birrifici attivi geolocalizzati: name, city, lat, lon (arrotondati a 3 decimali) | — |
| GET/api/v1/public/example | Una scheda vera, con i campi sensibili mascherati | — |
curl "https://api.hopctopus.com/api/v1/public/map"
[
{ "name": "Brasserie Exemple", "city": "Lyon", "lat": 45.764, "lon": 4.835 }
]
Sistema
| Endpoint | Descrizione | Parametri |
|---|---|---|
| GET/health | Stato del servizio e versione | — |
curl "https://api.hopctopus.com/health"
{ "status": "ok", "version": "0.1.0", "versions": { "dashboard": "0.39.0", "datamodel": "2.50.0", "site": "1.25.0" } }