# Market Research Reports Harvester (`datapilot/market-research-reports-harvester`) Actor

including report titles, summaries, IDs, direct links, and scrape timestamps. Export results to Apify Dataset in JSON format.Search and scrape World Bank research reports by keyword,

- **URL**: https://apify.com/datapilot/market-research-reports-harvester.md
- **Developed by:** [Data Pilot](https://apify.com/datapilot) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 83.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 scraped world bank research reports

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

📑 **Market Research Reports** Harvester is a powerful Apify Actor designed to discover, search, and collect public **Market Research Reports** directly from the World Bank's Documents & Reports search API. This tool provides comprehensive **Market Research Reports** intelligence including report ID, title, summary, and direct document link for any topic or keyword. Whether you're building a research library, tracking industry trends, or conducting competitive and economic analysis, the Market Research Reports Harvester delivers actionable **Market Research Reports** insights efficiently.

With direct World Bank API integration, keyword-based search, offset pagination, and reliable Apify Dataset delivery, the Market Research Reports Harvester ensures comprehensive **Market Research Reports** coverage across any subject area. It focuses on key **Market Research Reports** signals including title, abstract, and document link, making it an essential tool for desk research and report discovery.

***

### 📋 Table of Contents

- [Features](#-features)
- [Data Source](#-data-source)
- [How It Works](#-how-it-works)
- [Input](#-input)
- [Output](#-output)
- [Technical Stack](#-technical-stack)
- [Data Fields](#-data-fields-explained)
- [Use Cases](#-use-cases)
- [Quick Start](#-quick-start)
- [Configuration](#-configuration)
- [Performance](#-performance)
- [Important Notes](#-important-notes)
- [License & Legal](#-license--legal)

***

### 🔥 Features

- **World Bank Search API Integration** – Direct, key-less integration with the World Bank Documents & Reports search endpoint for accurate **Market Research Reports** discovery.
- **Keyword-Based Search** – Find **Market Research Reports** on any topic, sector, or industry with a single query term.
- **Offset Pagination** – Automatically pages through results until the requested number of reports is reached.
- **Configurable Result Cap** – Control exactly how many **Market Research Reports** to collect via `maxResults`.
- **Abstract Extraction & Cleaning** – Strips HTML tags and entities from report abstracts, with automatic truncation for long summaries.
- **Smart Link Resolution** – Uses the direct report URL when available, or builds a document-detail link from the report ID as a fallback.
- **Flexible Response Handling** – Handles both dictionary-style and list-style document payloads from the API.
- **Proxy Fallback Handling** – Automatically retries without a proxy if a proxied request fails.
- **Residential Proxy Support** – Optional Apify proxy for reliable **Market Research Reports** access.
- **Incremental Dataset Push** – Pushes each page's **Market Research Reports** records to Apify Dataset immediately.
- **Detailed Logging** – Comprehensive progress logging for every page of the **Market Research Reports** run.
- **Graceful Error Handling** – Stops cleanly with a clear warning if no reports are found for a query.

***

### 📊 Data Source

#### **World Bank Documents & Reports Search API**

- **Authority**: The World Bank's official public documents and reports repository
- **Endpoint**: `search.worldbank.org/api/v2/wds`
- **Coverage**: Thousands of published reports, studies, and publications across economic, sector, and country topics
- **Data**: Report ID, title, abstract, and document links
- **Access**: Public, key-less JSON API
- **Update Frequency**: Reflects the World Bank's current published document catalog at time of run

***

### ⚙️ How It Works

The Market Research Reports Harvester accepts a search query and queries the World Bank Documents & Reports API in pages, sorted by record count in descending order. Each returned document is normalized into a clean record: HTML tags and entities are stripped from the title and abstract, long summaries are truncated to 500 characters, and a direct link is resolved from the document's URL or built from its report ID if no URL is provided. Every page of **Market Research Reports** records is pushed to the Apify Dataset immediately, and pagination continues until the requested result count is reached or the API runs out of matches.

**Key Processing Steps:**

1. **Input Parsing** – Accept a search query and a maximum result count
2. **Proxy Setup** – Configure Apify proxy if enabled, with automatic no-proxy fallback
3. **Session Init** – Create a Chrome-impersonated HTTP session for reliable API access
4. **Search Request** – Query the World Bank API with the keyword, page size, and offset
5. **Payload Normalization** – Handle both dictionary-style and list-style document responses
6. **Text Cleaning** – Strip HTML tags and entities from titles and abstracts
7. **Summary Truncation** – Shorten long abstracts to a 500-character summary
8. **Link Resolution** – Use the direct report URL, or fall back to a constructed detail-page link
9. **Incremental Push** – Push each page's **Market Research Reports** records immediately
10. **Pagination** – Advance the offset until `maxResults` is reached or results run out
11. **Rate Limiting** – Apply a short delay between page requests
12. **Summary Logging** – Report the total number of reports harvested

**Key Benefits:**

- Pull **Market Research Reports** on any topic without manual searching
- Build a searchable library of reports with titles, abstracts, and direct links
- Track published research across sectors, industries, and regions
- Feed research dashboards, knowledge bases, or analysis pipelines
- Automate recurring **Market Research Reports** discovery as new publications are released

***

### 📥 Input

The Actor accepts the following input parameters:

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `query` | string | `"fintech"` | Search keyword or phrase for finding **Market Research Reports**. |
| `maxResults` | integer | `20` | Maximum number of reports to collect. |
| `proxyConfiguration` | object | `{"useApifyProxy": true}` | Apify Proxy configuration. |

**Example Input:**

```json
{
  "query": "renewable energy",
  "maxResults": 50
}
```

**Search a Single Topic with Default Limit:**

```json
{
  "query": "digital payments"
}
```

**Large Harvest Without Proxy:**

```json
{
  "query": "agriculture",
  "maxResults": 200,
  "proxyConfiguration": {"useApifyProxy": false}
}
```

***

### 📤 Output

The Actor pushes **Market Research Reports** records with the following structure:

| Field | Type | Description |
|-------|------|-------------|
| `portal` | string | Always `"Open Report Sites"` |
| `report_id` | string | Unique identifier of the report |
| `title` | string | Cleaned report title |
| `summary` | string | Cleaned abstract, truncated to 500 characters |
| `link` | string | Direct URL to the **Market Research Reports** document or detail page |
| `scraped_at` | string | ISO 8601 timestamp of when the record was scraped |

**Example Market Research Reports Record:**

```json
{
  "portal": "Open Report Sites",
  "report_id": "099123456789012345",
  "title": "Fintech and the Future of Digital Financial Inclusion",
  "summary": "This report examines how fintech innovations are expanding access to financial services across emerging markets, including mobile payments, digital lending, and...",
  "link": "https://documents.worldbank.org/en/publication/documents-reports/documentdetail/099123456789012345",
  "scraped_at": "2026-08-17T09:00:00.000Z"
}
```

***

### 🧰 Technical Stack

- **API:** World Bank Documents & Reports Search API (JSON format)
- **HTTP Client:** `curl_cffi` with Chrome TLS fingerprint impersonation for reliable **Market Research Reports** access
- **Text Processing:** Regex tag stripping and `html.unescape` for clean titles and abstracts
- **Pagination:** Offset-based pagination (`os`/`rows`) across result pages
- **Date Handling:** `datetime` with timezone-aware UTC timestamps
- **Async:** `asyncio` with executor-run blocking requests for non-blocking page fetching
- **Proxy:** Apify Proxy with automatic no-proxy fallback on failure
- **Logging:** Apify Actor logging system
- **Platform:** Apify Actor serverless environment

***

### 📊 Data Fields Explained

#### **Identification**

- **report_id / link**: The unique report ID and direct link to the **Market Research Reports** document or detail page
- **portal**: A fixed label identifying the data category

#### **Content**

- **title**: The cleaned title of the report
- **summary**: A cleaned, truncated abstract describing the report's contents

#### **Timing**

- **scraped_at**: When this **Market Research Reports** record was collected

***

### 🎯 Use Cases

- **Desk Research** – Quickly discover **Market Research Reports** on any industry or topic
- **Competitive Intelligence** – Track published research on sectors relevant to your market
- **Investment Research** – Source authoritative reports to support due diligence and market analysis
- **Academic Research** – Build reading lists and literature reviews from official publications
- **Policy Analysis** – Identify reports informing economic and development policy decisions
- **Consulting & Advisory** – Gather reference material for client deliverables
- **Knowledge Base Building** – Populate internal research libraries with titles, summaries, and links
- **Trend Monitoring** – Re-run keyword searches over time to catch newly published reports

***

### 🚀 Quick Start

#### **1. Prepare Input**

Go to Apify Console and enter:

```json
{
  "query": "fintech",
  "maxResults": 30
}
```

#### **2. Run the Actor**

Click **Start**. The Actor will:

- Query the World Bank Documents & Reports API for your keyword
- Clean and normalize titles, abstracts, and links
- Page through results until your result cap is reached
- Push each page of **Market Research Reports** records to the Dataset

#### **3. Monitor Progress**

Console shows:

```
🔎 Harvesting research reports for query: 'fintech' (Target: 30)...
📥 Saved 30/30 reports.
✅ Successfully harvested 30 market research reports!
🎉 Complete!
```

#### **4. View & Download Results**

- **Results Tab**: All **Market Research Reports** records
- **Export**: JSON, CSV, Excel, or HTML
- **Filter**: By title, report ID, or keyword in summary
- **API Access**: Available via the Apify API

***

### ⚙️ Configuration

Single keyword, default limit:

```json
{
  "query": "climate finance"
}
```

Larger harvest:

```json
{
  "query": "healthcare",
  "maxResults": 100
}
```

Without proxy:

```json
{
  "query": "e-commerce",
  "maxResults": 25,
  "proxyConfiguration": {"useApifyProxy": false}
}
```

***

### 📈 Performance

#### **Processing Speed**

- One request per page of up to 50 **Market Research Reports**
- 0.3 second delay between page requests to reduce blocking
- Stops automatically once `maxResults` is reached or the API returns fewer results than requested

#### **Resource Usage**

- Memory: Low, since no browser instance is launched
- Network: One lightweight API request per page of results
- Proxy: Optional, with automatic fallback to a direct connection on failure

***

### ⚠️ Important Notes

#### **Legal & Compliance**

- **Fair Use**: Respects the World Bank's public search API and applies pacing delays between requests
- **Public Data Only**: Retrieves only publicly published **Market Research Reports** metadata
- **Copyright**: Linked documents remain subject to the World Bank's licensing and usage terms — review them before reusing report content
- **Legal**: Not legal, financial, or investment advice — consult qualified professionals before acting on report findings

#### **Data Quality**

- **Freshness**: Reflects the World Bank's published document catalog at time of run
- **Completeness**: Some reports may have limited or missing abstracts, in which case a fallback summary is used
- **Accuracy**: Sourced directly from the World Bank's official search API
- **Verification**: Always open the linked document to verify details before citing or relying on a report

#### **Best Practices**

- Use specific, topic-focused keywords for the most relevant **Market Research Reports** results
- Increase `maxResults` gradually to balance coverage against run time
- Re-run periodically with the same query to catch newly published reports
- Use the `link` field to access full report text — summaries are truncated for readability
- Combine multiple keyword runs to build a broader report library

***

### 📄 License & Legal

**Terms of Use:**

- Use for legitimate research, analysis, and educational purposes
- Respect the World Bank's Terms of Use and document licensing
- Attribute the World Bank as the original source where required
- Use data responsibly

**Disclaimer:**
Market Research Reports Harvester is provided as-is for research and informational purposes. Users are responsible for compliance with the World Bank's terms of use and each document's licensing. This is not legal, financial, or investment advice.

***

### ⚖️ Market Research Reports Excellence

This Actor is optimized for **Market Research Reports** discovery with:

- ✅ Keyword-based search across a large official document catalog
- ✅ Clean, HTML-free titles and summaries
- ✅ Smart link resolution with fallback
- ✅ Offset pagination for scalable result sets
- ✅ Incremental, real-time Dataset push
- ✅ Production-ready code

# Actor input Schema

## `query` (type: `string`):

Topic or keyword to search World Bank research reports (e.g., fintech, climate change, agriculture).

## `maxResults` (type: `integer`):

Maximum number of research reports to collect.

## `proxyConfiguration` (type: `object`):

Apify Proxy fallback settings if direct connection is rate-limited.

## Actor input object example

```json
{
  "query": "fintech",
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `crawlResults` (type: `string`):

No description

## `overview` (type: `string`):

No description

# 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 = {
    "query": "fintech",
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("datapilot/market-research-reports-harvester").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 = {
    "query": "fintech",
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("datapilot/market-research-reports-harvester").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 '{
  "query": "fintech",
  "maxResults": 20
}' |
apify call datapilot/market-research-reports-harvester --silent --output-dataset

```

## MCP server setup

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

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/SMK9HxJg2v2KsmOcZ/builds/ZLP5Q7MPVULdEb25S/openapi.json
