API Guide

Talen

curl -X GET "https://speak.tatar/api/v1/lang/" \
     -H "Content-Type: application/json" \
     -H "Authorization: Api-Key API_KEY"
Get array of objects of all available languages.

Uitvoer

[{"name": "English", "iso639_3": "eng", "has_flashcards": true},...]

Flashkaarten

curl -X GET "https://speak.tatar/api/v1/fc/?f=eng&t=spa&n=1" \
     -H "Content-Type: application/json" \
     -H "Authorization: Api-Key SAPI_KEY"
Get flashcard (word) by rank. The user definition (meaning), if it exists, comes first in order.

Uitvoer

{
  "lang_from": {
    "iso639_3": "eng",
    "name": "English"
  },
  "lang_to": {
    "iso639_3": "spa",
    "name": "Spanish"
  },
  "word": "the",
  "next": 2,
  "meanings": [
    "Un artรญculo definido en inglรฉs.",
    ...
  ]
}