# Tatoeba API

Category: [Language and text](https://free-web-services.com/web-services/language/)  
Page: https://free-web-services.com/web-services/language/tatoeba-api.html  
Documentation: https://api.tatoeba.org/

The Tatoeba API searches a large community collection of example sentences and their translations in many languages, some with audio, for example for a language-learning app or to show how a word is used. GET requests need a language and a sort order and return JSON; adding showtrans:lang includes translations. Free, no key needed. Use the stable /v1 endpoints, and credit authors as each sentence's licence asks (text is mostly CC BY 2.0 FR).

- API key: Not needed
- Pricing: Free, no key needed.
- From the browser: Yes (CORS)
- Formats: JSON
- Interface: REST, HTTP-GET
- Provider: api.tatoeba.org

Example request:

```sh
curl 'https://api.tatoeba.org/v1/sentences?lang=eng&q=weather&sort=relevance&limit=2'
```

The JavaScript works in a web page as well as in Node.js 18 or newer.

