For developers

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

Public endpoints

MethodEndpointReturns
GET/wines?q=&grape=&region=&colour=&min_points=Search and filter the wines
GET/wines/latestThe latest wines added (replaces RSS)
GET/wines/{id}One wine: producer, region, grape, score, prices
GET/wines/{id}/ratingsThe wine’s ratings (stars or points) and comments
GET/rankings/weekThis 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|enThe Reading Room articles (each article is in one language)

For partners

MethodEndpointDoes
GET/partner/statsFollowers, check-ins, wines and ratings
PUT/partner/wines/{id}/priceThe 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.