POST /api/v1/match
Match wine text against this site’s snapshot.
curl 'https://elid.wine/api/v1/match' \
-H "Authorization: Bearer $ELID_API_TOKEN" \
-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. |
Returns ranked data with elid, lwin, display_name, producer_name, wine, score, producer_score and name_score. Scores rank candidates; they are not probabilities. 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.