Code examples and migration guides for the Langbly translation API.
| Example | Language | Description |
|---|---|---|
| curl | cURL | Basic API calls with curl |
| python-quickstart | Python | Getting started with the Python SDK |
| js-quickstart | TypeScript | Getting started with the JS/TS SDK |
| migrate-google | Python + JS | Migrate from Google Translate v2 |
# Translate text
curl -X POST https://api.langbly.com/language/translate/v2 \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"q": "Hello world", "target": "nl"}'
# Response:
# {"data":{"translations":[{"translatedText":"Hallo wereld","detectedSourceLanguage":"en"}]}}