POST /api/v1/match
Match wine text against this site’s snapshot.
curl 'https://elid.wine/api/v1/match' \
-H "Content-Type: application/json" \
-d '{"raw":"Kanonkop Paul Sauer 2021","top_n":3}'
| JSON field | Meaning |
|---|---|
raw | Required wine text, up to 500 characters. |
top_n | 1–20 candidates. Default: 5. |
country_code | Optional two-letter country code, e.g. ZA. |
producer_id | Optional ELID producer code, e.g. ZA-KNKP. |
drink_type | Optional wine style as on wine lists: red, white, rosé, orange, sparkling, sweet or fortified. Colours separate otherwise identical names, e.g. a producer’s red and white of one cuvée. |
Returns ranked data with elid, lwin, lwins, display_name, producer_name, wine, score, producer_score and name_score. Scores rank candidates; they are not probabilities. A top score of 0.75 or more is a confident match; 0.50 means the text names no single wine (a producer alone, or a tie such as red and white). No accepted match returns [].
snapshot identifies the data version; matcher_version identifies the scorer. Matching returns base wine identities. Retrieve vintage facts with the wine endpoint below.