An open API service indexing awesome lists of open source software.

https://github.com/songkeys/translateer

An unlimited free Google Translate API using Puppeteer
https://github.com/songkeys/translateer

api free google-translate

Last synced: about 1 year ago
JSON representation

An unlimited free Google Translate API using Puppeteer

Awesome Lists containing this project

README

          

# Translateer

An unlimited free Google Translate API using Puppeteer.

> This service is provided to the public for **educational purposes only**.

## Demo and Usage

Try it out:

```bash
curl 'https://t.song.work/api?text=hello&from=en&to=zh-CN'
```

Visit to see more usage.

**This free demo can only serve 5 concurrent requests.** It does not collect any
data.

## Self-Hosted

### Option 1: Serve with Docker (Recommended)

1. Clone the repository

```bash
git clone https://github.com/songkeys/translateer.git
```

2. Build and run Dockerfile

```bash
docker build -t translateer .
docker run -d -p 8999:8999 translateer
```

### Option 2: Serve Locally

1. Clone the repository

```bash
git clone https://github.com/songkeys/translateer.git
```

2. Install dependencies and build

```bash
deno install
```

3. Run the server

```bash
deno task start
```

### Environment Variables

See the markdown table below:

| Variable | Description | Default |
| ------------ | ------------------------------------------- | ------- |
| `PORT` | Port to listen on | `8999` |
| `PAGE_COUNT` | Number of browser pages to hold for speedup | `5` |

## Raycast Extension

An easy-to-use [Raycast](https://www.raycast.com) extension is provided. Check
[songkeys/raycast-extension#Translateer](https://github.com/songkeys/raycast-extension#translateer)
for more details.

![raycast-extension-preview](https://user-images.githubusercontent.com/22665058/142718320-871b0c71-7e30-422a-889d-51d0bc6dcf88.png)