Bing Microsoft Translator avatar
Bing Microsoft Translator
Try for free

3 days trial then $5.00/month - No credit card required now

View all Actors
Bing Microsoft Translator

Bing Microsoft Translator

canadesk/bing-microsoft-translator
Try for free

3 days trial then $5.00/month - No credit card required now

Translate text with Bing Translator. It's fast and costs little.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn mode

Node.js

Python

curl

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5    token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10    "text": "Let's do this!",
11    "agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36",
12    "proxy": {
13        "useApifyProxy": true,
14        "apifyProxyGroups": [
15            "RESIDENTIAL"
16        ]
17    }
18};
19
20(async () => {
21    // Run the Actor and wait for it to finish
22    const run = await client.actor("canadesk/bing-microsoft-translator").call(input);
23
24    // Fetch and print Actor results from the run's dataset (if any)
25    console.log('Results from dataset');
26    const { items } = await client.dataset(run.defaultDatasetId).listItems();
27    items.forEach((item) => {
28        console.dir(item);
29    });
30})();
Developer
Maintained by Community
Actor metrics
  • 3 monthly users
  • 96.9% runs succeeded
  • 0.0 days response time
  • Created in Aug 2023
  • Modified about 1 month ago