Constructor

Running a service

run(service, input)

The input type is correlated with the service:
Returns an Extraction:
The call is synchronous: the returned run is already completed or failed.

Typed per-service methods

Every callable service also has a method, grouped by platform, with the same signature as run’s second argument:
Method names are the service name in camelCase: subreddit.postssubredditPosts, profile.infoprofileInfo.

Batching

Each offer declares its own max_inputs. Offers whose cap is smaller than your batch drop out of the failover chain instead of failing the call.

Pinning an offer

getExtraction(id)

Catalogue

listServices(filter?)

getService(service)

listSources() / getSource(id)

Account

getBalance()

getUsage(days?)

by_provider is keyed by offer id ("apify/harshmaur").

Migrating from 0.3.x