Skip to Content
socialdata

Track accounts and posts

Watchlists, how often socialdata measures, and the result of each ref.

A watchlist is a named list of accounts and posts in your organization. socialdata measures every item in a watchlist on a schedule and keeps each measurement, so the history tools and the search tools can show growth.

Add and remove items

track adds 1 to 100 refs to a watchlist. A new name creates the watchlist. A post link or a post id tracks that post, not its author. untrack removes one item by its id. The history of the item stays readable, and is_still_polled says whether another watchlist still lists it.

track and untrack need an organization that may track. can_track in the answer of watchlists says whether yours may. Otherwise the call fails with forbidden.

The result of each ref

Each ref gets its own outcome in results:

OutcomeMeaning
addedThe item is now in the watchlist
already_in_watchlistNothing changed
pendingA handle that socialdata has never seen. It is added, and id fills in after the first read
refusedNothing was added. error_code says why
error_codeWhat to do
invalid_ref or unsupported_platformFix the ref. Name an account or a post gives the forms
not_storedThe post link has no post id that socialdata knows. Call lookup with the link first
account_limit_reached or post_limit_reachedYour plan has no room for another account or post

How often socialdata measures

An account stays tracked while any watchlist lists it. Its tier sets how often socialdata reads it:

TierIntervalFor an account that posted
hotAbout every 4 hoursIn the last 3 days
warmAbout every 12 hoursIn the last 14 days
coldAbout once a dayLess recently

To set a fixed interval for the accounts instead, send interval_s to track, at least 900 seconds.

A post is measured about every 4 hours in its first 3 days, about every 12 hours until it is 14 days old, then about once a day. Its measurements stop 30 days after posted_at, which tracked_until shows.

The state of an item

watchlist_items shows the state of each item:

ItemStatusMeaning
Accountpendingsocialdata has not read the account yet
AccountactiveThe updates succeed
AccountfailingThe recent updates failed. last_error_code says why
Postactivesocialdata measures the post on a schedule
PostfinishedThe last measurement, 30 days after publishing, is done
PostfailedThree measurements in a row failed
PostdeletedThe platform says that the post is gone

An account that socialdata has not found yet has platform_account_id null and an id of the form platform:pending:N, for example instagram:pending:42. It is pending before its first read, and failing with last_error_code not_found, private or restricted when that read did not find it. untrack takes that id. Once a read finds the account, the item has its account id instead.

On this page