Skip to main content

Apify Bubble

Run any Apify actor for web scraping and automation

Quick Start

import { ApifyBubble } from '@bubblelab/bubble-core';
import { CredentialType } from '@bubblelab/shared-schemas';
const result = await new ApifyBubble({

actorId: 'example', // The Apify actor to run. Examples: "apify/instagram-scraper", "apify/reddit-scraper", etc.
input: null, // Input parameters for the actor. Structure depends on the specific actor being used.
credentials: {
[CredentialType.APIFY_CRED]: process.env.APIFY_CRED as string,
},
}).action();

Operation Details

execute

actorId string required
The Apify actor to run. Examples: "apify/instagram-scraper", "apify/reddit-scraper", etc.
input Record<string,unknown> required
Input parameters for the actor. Structure depends on the specific actor being used.
waitForFinish boolean
Whether to wait for the actor run to complete before returning
timeout number
Maximum time to wait for actor completion in milliseconds (default: 120000)
credentials Record<CredentialType,string>
Object mapping credential types to values (injected at runtime)