# Glosbe — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Translate words and phrases between languages while viewing parts of speech, definitions, and real-world usage examples from Glosbe's community dictionary. Get accurate multilingual translations instantly without leaving your application.

**Category:** Other | **Website:** [glosbe.com/](https://glosbe.com/) | **Docs:** [parse.bot/marketplace/20560b89-5df6-4b46-bb7a-aa6c6038c2e8/glosbe-com-api](https://parse.bot/marketplace/20560b89-5df6-4b46-bb7a-aa6c6038c2e8/glosbe-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-glosbe-com-api-20560b89/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### translate

Look up translations of a word from one language to another. Returns multiple translation candidates, each with parts of speech, a brief definition, and bilingual usage examples. The source word is matched against Glosbe's dictionary entries for the given language pair.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `source_lang` | string | No | ISO 639-1 language code for the source language (e.g. 'en', 'fr', 'de'). |
| `target_lang` | string | Yes | ISO 639-1 language code for the target language (e.g. 'es', 'fr', 'de'). |
| `word` | string | Yes | The word or phrase to translate. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-glosbe-com-api-20560b89/translate \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"source_lang":"<string>","target_lang":"<string>","word":"<string>"}'
```
