Skip to content

Fetch social shares

social · 3rd party API · integration

Fetch the number of times a Url was shared on Facebook.

Usage


The following are the step's expected inputs and outputs and their specific types.

Step signature
fetch_social_shares(urls: url) -> (shares: number)

where the object {"param": value} is optional in most cases and if present may contain any of the parameters described in the corresponding section below.

Example

This step doesn't have any configuration parameters. Hence simply:

Example call (in recipe editor)
fetch_social_shares(ds.url) -> (ds.num_social_shares)

Inputs


urls: column:url

A column containing links (URLs) pointing to articles.

Outputs


shares: column:number

A numerical column containing the number of times each article was shared on Facebook.

Back to top