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
- Input Schema
- Output Schema
actorIdstring required- The Apify actor to run. Examples: "apify/instagram-scraper", "apify/reddit-scraper", etc.
inputRecord<string,unknown> required- Input parameters for the actor. Structure depends on the specific actor being used.
waitForFinishboolean- Whether to wait for the actor run to complete before returning
timeoutnumber- Maximum time to wait for actor completion in milliseconds (default: 120000)
credentialsRecord<CredentialType,string>- Object mapping credential types to values (injected at runtime)
runIdstring required- Apify actor run ID
statusstring required- Actor run status (READY, RUNNING, SUCCEEDED, FAILED, etc.)
datasetIdstring- Dataset ID where results are stored
itemsunknown[]- Array of scraped items (if waitForFinish is true). Structure depends on the actor.
itemsCountnumber- Total number of items scraped
consoleUrlstring required- URL to view the actor run in Apify console
successboolean required- Whether the operation was successful
errorstring required- Error message if operation failed