# CatchAll \[By jobId] Early / Partial Results (`newscatcher/catchall-early-results`) Actor

Poll a running job and fetch partial results before completion.

- **URL**: https://apify.com/newscatcher/catchall-early-results.md
- **Developed by:** [Newscatcher-CatchAll](https://apify.com/newscatcher) (community)
- **Categories:** AI, Automation, News
- **Stats:** 1 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## CatchAll Early Results — get partial results before completion

CatchAll Early Results polls a running CatchAll job and retrieves whatever records have been extracted so far, even if the job has not completed all processing steps. This lets you preview data without waiting for the full 10–15 minute run.

### When to use this Actor

- **Preview results early.** Check whether the extracted data matches your expectations without waiting for the full job to finish.
- **Validate query quality.** If early results look off, you can adjust your query or enrichments for the next job instead of waiting.
- **Build responsive pipelines.** Start downstream processing on partial data while the job continues.

### Input

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `apiKey` | String | Yes | Your CatchAll API key |
| `jobId` | String | Yes | Job ID to poll and fetch early results for |
| `pollIntervalSeconds` | Integer | No | How often to check status, in seconds (default: 60, minimum: 5) |
| `pageSize` | Integer | No | Records per page when pulling results (default: 100, minimum: 10) |

#### Input example

```json
{
  "apiKey": "YOUR_CATCHALL_API_KEY",
  "jobId": "5f0c9087-85cb-4917-b3c7-e5a5eff73a0c",
  "pollIntervalSeconds": 30,
  "pageSize": 50
}
```

### Output

The Actor saves available records to the default Dataset. The output format is identical to [CatchAll Pull Results](https://apify.com/newscatcher/catchall-pull-results), but the record count may be lower since the job is still processing.

If the job has not yet reached the extraction stage, the output may contain zero records.

### Tips

- **Use with CatchAll Get Job Status.** Check the `progress_validated` field to estimate how many records might be available before calling this Actor.
- **Results are not final.** Records returned by early results may change or be supplemented in the final output. Always use [CatchAll Pull Results](https://apify.com/newscatcher/catchall-pull-results) for the definitive dataset.
- **Lower the poll interval for faster preview.** Set `pollIntervalSeconds` to 15–30 for quicker feedback, but keep in mind this increases the number of API calls.

### Other CatchAll Actors

| Actor | Description |
|-------|-------------|
| [CatchAll](https://apify.com/newscatcher/catchall) | End-to-end job: submit, poll, and retrieve results |
| [CatchAll Get Job Status](https://apify.com/newscatcher/catchall-get-job-status) | Check job progress |
| [CatchAll Pull Results](https://apify.com/newscatcher/catchall-pull-results) | Retrieve all records from a completed job |

For the full list, visit the [Newscatcher](https://apify.com/newscatcher) organization page.

### Resources

- [CatchAll documentation](https://www.newscatcherapi.com/docs/web-search-api/get-started/introduction)
- [Jobs guide](https://www.newscatcherapi.com/docs/web-search-api/guides-and-concepts/jobs)

# Actor input Schema

## `apiKey` (type: `string`):

Your CatchAll API key (sent as x-api-key header).

## `jobId` (type: `string`):

Job Id

## `page` (type: `integer`):

Page

## `pageSize` (type: `integer`):

Page Size

## `pollIntervalSeconds` (type: `integer`):

Seconds between early-result polls.

## `maxPolls` (type: `integer`):

Maximum poll attempts before returning partial results.

## Actor input object example

```json
{
  "page": 1,
  "pageSize": 100,
  "pollIntervalSeconds": 60
}
```

# Actor output Schema

## `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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("newscatcher/catchall-early-results").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("newscatcher/catchall-early-results").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 newscatcher/catchall-early-results --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,newscatcher/catchall-early-results"
        }
    }
}

```

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/Fd7Q9pYBb3ORndWw0/builds/vD7VMy2bHpCa8huNY/openapi.json
