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
- Host: GitHub
- URL: https://github.com/songkeys/translateer
- Owner: songkeys
- License: mit
- Created: 2021-11-21T11:52:18.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-15T10:24:14.000Z (about 1 year ago)
- Last Synced: 2025-05-12T23:09:00.316Z (about 1 year ago)
- Topics: api, free, google-translate
- Language: TypeScript
- Homepage: https://t.song.work
- Size: 238 KB
- Stars: 80
- Watchers: 8
- Forks: 27
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.
