# Multilingual Research Synthesis (`ammarsalmi/multilingual-research-synthesis`) Actor

Surface region-exclusive insights with AI-powered multilingual research. Automates query translation across 32 languages, Google search, page crawling, back-translation, and LLM summarization. Discover global knowledge hidden behind language barriers in one unified report.

- **URL**: https://apify.com/ammarsalmi/multilingual-research-synthesis.md
- **Developed by:** [Ammar Salmi](https://apify.com/ammarsalmi) (community)
- **Categories:** AI, Automation, Other
- **Security:** Limited permissions
- **Stats:** 2 total users, 2 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.05 / result

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Multilingual Search & Research Interpreter

![Multilingual Research Synthesis Logo](research_actor_logo_1767222353675.png)

> **Break the language barrier in global research.** Surface global insights with AI by automating query translation, Google search, and LLM summarization across 32 languages.

### The Problem: Information Silos in a Multilingual World

The internet contains a wealth of knowledge, but **the vast majority of it is invisible to monolingual searchers**. Consider:

- **Region-exclusive content**: Local news, academic publications, government reports, and expert analyses are often published only in the native language of their origin.
- **Search engine limitations**: Google defaults to returning results in the language of your query, effectively hiding relevant content published in other languages.
- **The researcher's dilemma**: Experienced researchers know that translating their search queries into multiple languages yields dramatically different—and often more valuable—results. However, this process is time-consuming: translate the query, search, translate each result back, evaluate relevance, and synthesize findings.

**This actor automates the entire multilingual research workflow**, transforming what would take hours of manual effort into a streamlined, one-click operation.

### How It Works

The Multilingual Research Synthesis Actor functions as an intelligent research interpreter:

1. **Query Expansion** — Automatically translates your search phrase into multiple target languages using AI-powered translation
2. **Parallel Search** — Executes Google searches in each language, surfacing region-specific content
3. **Content Extraction** — Crawls landing pages to retrieve full article content
4. **Back-Translation** — Translates all discovered content back to your source language
5. **Intelligent Summarization** — Uses LLM to generate concise summaries with relevance scoring
6. **Deduplication** — Removes near-duplicate results to eliminate redundancy
7. **Export** — Delivers a clean, unified research report in your preferred format

### Use Cases

| Scenario | Example |
|----------|---------|
| **Market Research** | Discover how a product is discussed in Japanese tech blogs vs. German industry publications |
| **Academic Research** | Find primary sources on historical events published in their country of origin |
| **Competitive Intelligence** | Monitor competitor coverage in local markets worldwide |
| **Journalism** | Access firsthand accounts and local reporting on global events |
| **Policy Analysis** | Compare how different countries report on regulatory changes |
| **Medical Research** | Surface clinical findings published in non-English journals |

### Key Features

- **32 Languages Supported** — From English and Spanish to Japanese, Arabic, and beyond
- **Auto-Detection** — Automatically detects your query's language or lets you specify it
- **6 LLM Providers** — Choose from OpenAI, Anthropic, Google, Groq, OpenRouter, or Perplexity
- **Relevance Scoring** — Each result includes a 0-100 relevance score relative to your original query
- **Multiple Export Formats** — CSV, XLSX, or TXT reports ready for further analysis

***

### Input Schema

```json
{
    "searchPhrase": "artificial intelligence in healthcare",
    "sourceLanguage": "auto",
    "targetLanguages": ["fr", "de", "es", "ja", "zh"],
    "maxResultsPerLanguage": 5,
    "recencyFilter": "month",
    "lingoApiKey": "YOUR_LINGO_DEV_API_KEY",
    "llmProvider": "openai",
    "llmApiKey": "YOUR_LLM_API_KEY",
    "outputFormat": "csv"
}
```

#### Input Fields

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `searchPhrase` | string | Yes | The search query to research |
| `sourceLanguage` | string | No | Language of input/output (auto-detected by default) |
| `targetLanguages` | array | Yes | Languages to search in (min 1) |
| `maxResultsPerLanguage` | integer | Yes | Max results per language (1-10) |
| `recencyFilter` | enum | No | Filter: week, month, year, none |
| `lingoApiKey` | string | Yes | Your Lingo.dev API key for translation |
| `llmProvider` | string | No | LLM provider: openai, anthropic, google, groq, openrouter, perplexity |
| `llmApiKey` | string | Yes | Your API key for the selected LLM provider |
| `outputFormat` | enum | Yes | Export format: csv, xlsx, txt |

### Output Schema

Each result record contains:

```json
{
    "targetLanguage": "fr",
    "summary": "Summary in your source language...",
    "link": "https://example.com/article",
    "pageDate": "2024-01-15",
    "relevanceScore": 85
}
```

### Architecture

| Component | Technology |
|-----------|------------|
| **Translation** | Lingo.dev AI-powered translation |
| **Search** | Apify Google Search Actor |
| **Crawl** | Crawlee CheerioCrawler (landing pages only) |
| **LLM** | Multi-provider support (OpenAI, Anthropic, Google, Groq, OpenRouter, Perplexity) |
| **Export** | CSV, XLSX, TXT formats |

### Design Principles

- **Landing pages only** — No internal link following to respect site boundaries
- **Per-language isolation** — One language failing doesn't stop the entire run
- **LLM guardrails** — Strict prompts prevent hallucination and ensure accuracy
- **Token limits** — Hard limits on LLM usage for cost predictability
- **Transparency** — Skipped pages are logged with reasons

### Local Development

```bash
## Install dependencies
npm install

## Set test input in storage/key_value_stores/default/INPUT.json

## Run locally
npx apify run

## Check output in storage/datasets/default/
```

***

*Built for researchers who refuse to let language be a barrier to knowledge.*

# Actor input Schema

## `searchPhrase` (type: `string`):

The search query to research across languages

## `sourceLanguage` (type: `string`):

Language of your search phrase and desired output. Leave as 'auto' to auto-detect, or select a specific language.

## `targetLanguages` (type: `array`):

Languages to search in. Select one or more languages.

## `maxResultsPerLanguage` (type: `integer`):

Maximum search results to process per target language (1-10)

## `recencyFilter` (type: `string`):

Filter results by publication date

## `searchMethod` (type: `string`):

Choose how to perform Google searches. 'Direct' uses Apify proxies (works with all plans). 'Apify Actor' uses Google Search Scraper (requires Full Permissions).

## `lingoApiKey` (type: `string`):

Your Lingo.dev API key for translations. Get your free API key at: https://lingo.dev/en/compiler/quick-start

## `outputFormat` (type: `string`):

Export format for the search results

## Actor input object example

```json
{
  "sourceLanguage": "auto",
  "maxResultsPerLanguage": 5,
  "recencyFilter": "none",
  "searchMethod": "direct",
  "outputFormat": "csv"
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("ammarsalmi/multilingual-research-synthesis").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("ammarsalmi/multilingual-research-synthesis").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call ammarsalmi/multilingual-research-synthesis --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ammarsalmi/multilingual-research-synthesis"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/rYTc3w615XgxLwDbK/builds/fCamfDgAYRT4uZbgh/openapi.json
