WiB API
The WiB catalogue is open to apps, websites and research: the wines, their scores on the 50–100 scale, the places and the Reading Room articles. The API replaces the old RSS feed.
API key
API keys are only for registered WiB members. Registering is free. Sign in, press "Request a key" and tell us what you will use it for. We review requests by hand and e-mail you when the key is ready.
How it works
- Address:
https://wineinbg.net/api/v1. Responses are JSON, in Bulgarian and English. Send the key in the headerAuthorization: Bearer wib_…. - Keys are only for registered members: sign in and press "Request a key". The key is free for personal and non-commercial use: usually up to 1,000 requests a day and 60 a minute.
- A partner key for wineries, bars, restaurants and shops on a paid plan: their own wines and places, statistics.
- Credit the source: "Source: WineInBulgaria.net" with a link to the wine.
- Personal data never leaves through the API: no emails, private notes, cellars or members’ lists. Members appear only under the name they chose.
Public endpoints
| Method | Endpoint | Returns |
|---|---|---|
GET | /wines?q=&grape=®ion=&colour=&min_points= | Search and filter the wines |
GET | /wines/latest | The latest wines added (replaces RSS) |
GET | /wines/{id} | One wine: producer, region, grape, score, prices |
GET | /wines/{id}/ratings | The wine’s ratings (stars or points) and comments |
GET | /rankings/week | This week’s ranking |
GET | /places?kind=winery|bar|shop|restaurant&city= | Wineries, wine bars, shops, restaurants |
GET | /places/{id} | One place and the wines it offers |
GET | /articles?lang=bg|en | The Reading Room articles (each article is in one language) |
For partners
| Method | Endpoint | Does |
|---|---|---|
GET | /partner/stats | Followers, check-ins, wines and ratings |
PUT | /partner/wines/{id}/price | The recommended retail price of your wine |
Example: GET /wines/9faaf309abfe
{
"id": "9faaf309abfe",
"name": { "bg": "Дамена Каберне Совиньон 2009", "en": "Damena Cabernet Sauvignon 2009" },
"producer": { "bg": "Домейн Менада", "en": "Domain Menada" },
"region": { "bg": "Тракийска Низина", "en": "Thracian Valley" },
"country": { "bg": "България", "en": "Bulgaria" },
"colour": "red",
"vintage": 2009,
"grapes": ["Cabernet Sauvignon"],
"score": { "points": 92, "glasses": 4, "ratings": 3 },
"prices": { "srp_eur": null, "members_eur": [2.05] },
"photo": "https://wineinbg.net/img/wines/9faaf309abfe.jpg",
"added_on": "2010-04-04",
"url": "https://wineinbg.net/en/wines/damena-cabernet-sauvignon-2009/",
"url_bg": "https://wineinbg.net/bg/wines/damena-cabernet-sauvignon-2009/"
}
In "score" are the points from 50 to 100, the glasses (0 to 5, in quarters) and the number of ratings.