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:
| Outcome | Meaning |
|---|---|
added | The item is now in the watchlist |
already_in_watchlist | Nothing changed |
pending | A handle that socialdata has never seen. It is added, and id fills in after the first read |
refused | Nothing was added. error_code says why |
error_code | What to do |
|---|---|
invalid_ref or unsupported_platform | Fix the ref. Name an account or a post gives the forms |
not_stored | The post link has no post id that socialdata knows. Call lookup with the link first |
account_limit_reached or post_limit_reached | Your 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:
| Tier | Interval | For an account that posted |
|---|---|---|
hot | About every 4 hours | In the last 3 days |
warm | About every 12 hours | In the last 14 days |
cold | About once a day | Less 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:
| Item | Status | Meaning |
|---|---|---|
| Account | pending | socialdata has not read the account yet |
| Account | active | The updates succeed |
| Account | failing | The recent updates failed. last_error_code says why |
| Post | active | socialdata measures the post on a schedule |
| Post | finished | The last measurement, 30 days after publishing, is done |
| Post | failed | Three measurements in a row failed |
| Post | deleted | The 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.