# Research Brief for AI Agents: cited sources and quotes (`built_for_more/research-brief`) Actor

Turn questions into short, cited research briefs: the most relevant excerpt and verbatim quotes from each source, with title, URL, date, licence and attribution. Pass your own search-result URLs, or let it use Wikipedia and the GDELT news index. No AI rewriting, no made-up facts.

- **URL**: https://apify.com/built_for_more/research-brief.md
- **Developed by:** [Jim Karaoke](https://apify.com/built_for_more) (community)
- **Categories:** AI, Agents, News
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 briefs

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

## Research Brief

Turn a plain-language question into a short, cited research brief that an AI agent or a person can use right away. For each question you get the most relevant passages from a handful of sources, a few verbatim quotes, the source links with titles and dates, and the licence and attribution to keep when you reuse the text. The output is plain text in JSON: no HTML, no page clutter.

There is no AI model inside the actor. It finds and ranks sentences from real sources and returns them word for word, so every line in a brief can be traced back to a page.

### Who it's for

- **AI agents and LLM apps** that need grounded, citable context for a question instead of a raw web page.
- **Researchers, writers and students** who want a quick overview with sources before they dig in.
- **Developers building RAG or fact-check pipelines** who already have candidate links (for example from their own search) and want the relevant passages pulled out with citations.

### Where the sources come from

| You give | The actor reads |
|---|---|
| Questions only (default) | Wikipedia articles that match the question |
| Questions about recent events ("latest", "this week", "2026 elections"...) | News articles found through the GDELT news index, with Wikipedia as a fallback |
| Questions plus your own URLs | Exactly those pages, nothing else |

**This actor does not do general web search.** It does not query Google, Bing, DuckDuckGo or any other search engine. To brief from the open web, run your own search and pass the result links in **Source URLs**.

### Input

| Field | What it does |
|---|---|
| **Questions** | One question per line, in plain language. Up to 50 per run, 500 characters each. Each question becomes one brief. A single `question` text field is also accepted. |
| **Source URLs** (optional) | Pages to read for every question in the run (up to 20). Leave empty to use Wikipedia or news. |
| **Max sources per brief** | 1 to 10 (default 5). Fewer sources give faster, shorter briefs. |
| **Where to look** | `auto` (default), `wikipedia` or `news`. Ignored when you give URLs. |
| **Language** | Wikipedia and news language code, such as `en`, `de`, `fr` or `es` (default `en`). |

Example:

```json
{
  "questions": ["What causes the northern lights?", "How do vaccines train the immune system?"],
  "maxSources": 3
}
```

### Output

One dataset item per question, in the order they finish (use `questionIndex`, the 1-based position in your list, to put them back in order). This is real output from the default example, shortened to 3 of its 7 key points and 1 of its 3 quotes:

```json
{
  "question": "What causes the northern lights?",
  "questionIndex": 1,
  "status": "ok",
  "searchEngine": "wikipedia",
  "keyPoints": [
    {
      "text": "An aurora (pl. aurorae or auroras) is a natural light display in Earth's upper atmosphere caused by charged particles from the Sun colliding with atoms in the atmosphere.",
      "source": 1,
      "score": 1.0
    },
    {
      "text": "Auroras are the result of disturbances in the Earth's magnetosphere caused by enhanced speeds of solar wind from coronal holes and coronal mass ejections.",
      "source": 1,
      "score": 0.81
    },
    {
      "text": "The mainly red aurora was found to be a million times brighter than the northern lights, a result of the charged particles interacting with hydrogen in the atmosphere.",
      "source": 1,
      "score": 0.561
    }
  ],
  "sources": [
    {
      "rank": 1,
      "title": "Aurora",
      "url": "https://en.wikipedia.org/wiki/Aurora",
      "siteName": "Wikipedia",
      "publishedAt": "2026-11-13T19:28:26Z",
      "discoveredAt": null,
      "excerpt": "An aurora (pl. aurorae or auroras) is a natural light display in Earth's upper atmosphere caused by charged particles from the Sun colliding with atoms in the atmosphere. These collisions excite oxygen and nitrogen, which then emit light of different colours such as green, red, and purple. When observed in high-latitude regions they are called polar lights and aurora polaris. In the Arctic they are called the northern lights or aurora borealis; in the Antarctic, the term southern lights or aurora australis is used.",
      "quotes": [
        "Auroras are the result of disturbances in the Earth's magnetosphere caused by enhanced speeds of solar wind from coronal holes and coronal mass ejections."
      ],
      "relevance": 1.0,
      "license": "CC BY-SA 4.0",
      "licenseUrl": "https://creativecommons.org/licenses/by-sa/4.0/",
      "attribution": "\"Aurora\" by Wikipedia contributors, Wikipedia, CC BY-SA 4.0 (https://en.wikipedia.org/wiki/Aurora)",
      "status": "ok",
      "reason": null,
      "chars": 930
    }
  ],
  "sourcesFound": 1,
  "sourcesTried": 4,
  "charsReturned": 930,
  "language": "en",
  "notes": [
    "3 candidate sources left out as off-topic."
  ],
  "credits": [
    "Wikipedia text is CC BY-SA 4.0: keep each source's attribution when you reuse it."
  ],
  "charged": true,
  "retrievedAt": "2026-11-19T08:45:25Z"
}
```

- **questionIndex**: the question's position in your input list (1 is the first). Briefs can arrive out of order.
- **status**: `ok` (every listed source gave text), `partial` (some sources were blocked or failed, at least one gave text) or `no_sources` (nothing usable).
- **keyPoints**: the best-matching sentences across all sources, with near-duplicates removed. `source` points to the source's `rank`. Key points are always taken from the excerpts and quotes, so they add no extra text.
- **sources\[].status**: `ok`, `blocked` (the site opts out, see below; listed for citation only, with no text) or `error` (the page could not be read). `reason` explains blocked and error sources.
- **notes**: plain-English remarks about the run, such as a news-search fallback.
- A run also writes a `SUMMARY` record to the key-value store, with one line per question.

Fields can be `null` when a value is unknown. The actor leaves a field empty rather than guess.

### How much text you get, and why

Each brief quotes a small, cited part of each source, never the whole page. Per source you get at most:

- one excerpt of up to 600 characters,
- up to 3 quotes of up to 300 characters each,
- and no more than 1,500 characters or 15% of the page's text, whichever is smaller.

Email addresses and phone numbers in common formats are removed from all returned text: international numbers with a country code (+49 171 1234567, +33 1 23 45 67 89), German and other European numbers with a leading 0 (030 1234567, (030) 1234567, 089 / 12 34 56 78), and US formats (1-800-555-0100, 555 123 4567). The check is pattern-based, so an unusual layout (for example digits spelled out as words) can slip through. Space-separated runs of equal-width numbers (a lone leading "1" group counts as part of the run) are removed unless every group is a plausible four-digit year (1000-2099, as in "Olympics 2012 2016 2020"); a list of ages or scores such as "20 30 40 50 60" is therefore removed too, because privacy comes first. The actor is not meant for pages whose purpose is listing personal contact details.

**Not for researching private individuals.** The actor is meant for topics, products, organisations and events. Do not use it to look up or profile private people.

### Sites that opt out are respected

A page is listed as `blocked`, with no text and no charge for it, when any of these apply:

- its robots.txt disallows all bots, this actor, or common AI agents and crawlers (ChatGPT-User, Claude-User, Perplexity-User, GPTBot, CCBot);
- an `X-Robots-Tag` header or robots meta tag says `noai`, `noindex`, `none`, `nosnippet` or `max-snippet:0`;
- the site reserves text-and-data-mining rights (TDMRep);
- the page is paywalled or needs a login.

### Pricing

You pay per brief: about **$5 per 1,000 briefs** ($0.005 each), plus Apify's small per-run start fee.

- A brief is charged only when at least one source gave text.
- Questions with no usable sources (`no_sources`) are free.
- Blocked or failed sources cost nothing extra.
- If you set a maximum cost per run, the actor stops before going over it. Questions it did not reach are listed as skipped in the summary.

### Limits

- No general web search (see above). No JavaScript rendering, so pages that only show content after scripts run are reported as errors.
- HTML and plain-text pages only. PDFs and other files are skipped.
- 10 seconds per page, one retry. Only the first 1.5 MB of a page is read, and at most 3 requests go to the same site at once. Each question gets about 60 seconds in total.
- News search depends on the GDELT news index, which is free but slow and rate-limited. When it does not answer in time, the brief uses Wikipedia and says so in `notes`.
- Wikipedia matching is by keywords, so a vague question can pull in loosely related articles. Articles that look like a different meaning of the subject (for example a novel or TV series with the same name) are left out and counted in `notes`. Specific questions work best.
- Answers are the best-matching sentences, not a calculated answer. For a single-fact question ("how tall is...", "who is the CEO of...") the exact fact may sit lower in the key points, or in a later sentence than the first.
- If the platform kills a run at the very moment a brief is written, that one brief can be delivered and charged again when the run restarts.
- The actor only extracts and ranks sentences. It does not write a summary or an answer in its own words.

### FAQ

**Can I use it from an AI agent?**
Yes. Send one or more questions and read the dataset items. Each brief is plain text with a stable structure and field descriptions in the output schema. Cite sources by `url` and keep the `attribution` line.

**Why was a source I gave blocked?**
The site asked automated or AI tools not to use its pages, or it needs a login. The `reason` field says which rule applied. The source is still listed so you can cite or open it yourself.

**Can I reuse the text?**
Wikipedia text is CC BY-SA 4.0: keep the attribution line and share alike. Other pages keep their own copyright. The short excerpts are meant for citation and research, with a link back to the source.

**Why is a question marked `no_sources`?**
No article matched, or every page was blocked or unreadable. You are not charged for it. Rephrase it, or pass your own URLs.

**Does it remember earlier runs?**
No. Each run answers the questions it is given. If the platform restarts a run, questions that were already answered are not delivered or charged again.

**Is there a free tier or a test run?**
There is no free allowance of your own in this actor. The default example (one question, 2 sources) finishes in seconds and costs a single brief, about $0.005 plus the run start fee. Apify's own free monthly platform credit, if your plan includes it, can pay for runs.

# Actor input Schema

## `questions` (type: `array`):

One question per line, in plain language (up to 50 per run, 500 characters each). Each question becomes one brief.

## `urls` (type: `array`):

Web pages to read for every question in this run, for example the result links from your own web search (up to 20). This actor does not do general web search itself. Pages whose site opts out of automated or AI use are listed as blocked, with no text and no charge for them. Leave empty to use Wikipedia or news.

## `maxSources` (type: `integer`):

How many sources with text each brief may contain (1-10). Fewer sources = faster and shorter briefs.

## `searchMode` (type: `string`):

auto: news questions (latest, recent, this week, a recent year...) use the GDELT news index, everything else uses Wikipedia. wikipedia or news force one of them. Ignored when URLs are given.

## `language` (type: `string`):

Language code for Wikipedia and news search, such as en, de, fr or es. Ignored when URLs are given.

## Actor input object example

```json
{
  "questions": [
    "What causes the northern lights?"
  ],
  "maxSources": 2,
  "searchMode": "auto",
  "language": "en"
}
```

# Actor output Schema

## `briefs` (type: `string`):

All briefs from this run (JSON, CSV or Excel via the format parameter). One item per question.

## `summary` (type: `string`):

Per-question status and charge flag, plus input warnings.

# 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 = {
    "questions": [
        "What causes the northern lights?"
    ],
    "maxSources": 2
};

// Run the Actor and wait for it to finish
const run = await client.actor("built_for_more/research-brief").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 = {
    "questions": ["What causes the northern lights?"],
    "maxSources": 2,
}

# Run the Actor and wait for it to finish
run = client.actor("built_for_more/research-brief").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 '{
  "questions": [
    "What causes the northern lights?"
  ],
  "maxSources": 2
}' |
apify call built_for_more/research-brief --silent --output-dataset

```

## MCP server setup

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

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/RhZMLrvW8oaQfNWKL/builds/RFXJjZRQYjKfOsaTd/openapi.json
