Credits and limits
What costs credits, the daily limit, and the rate limit.
Most calls cost nothing. A call costs credits only when socialdata must read the platform for you, and meta.credits_spent of each answer says what it cost.
What costs credits
Only lookup and track can cost credits. The other eight tools read data that socialdata already holds and cost 0.
| Call | Credits |
|---|---|
lookup of an account or a post that socialdata already holds | 0 |
lookup of a post that socialdata has never seen | Up to 1. Up to 2 for a LinkedIn or a Snapchat post, because socialdata also reads its author |
lookup of an account that socialdata has never seen | Up to 2 |
lookup with max_age_s of 86400 (a day) or more, when a recent cached copy is not older | 0. meta.source is vendor_cache |
lookup of a long YouTube video | 1, then the call fails with unsupported_media_type |
track of a handle, of a post link that carries the post id, or of an item that socialdata holds | 0 |
track of a ref that socialdata must read first | What lookup of that ref costs |
max_age_s makes lookup read the platform again when the newest data is older. Without it, an item that socialdata holds costs nothing, however old its data.
Updates of tracked accounts and posts do not cost your organization credits.
The daily limit
meta.credits_left_today says what your organization can still spend on lookups today (UTC). When a call needs more, it fails with budget_exceeded and status 429. resets_at says when the limit resets, and limit says which limit refused the call: organization is your organization's daily limit, and lookup_share and day are shared daily limits of socialdata.
Tracking limits
Your plan sets how many accounts and posts your organization can track. When track has no room, the result of that ref is refused with account_limit_reached or post_limit_reached.
The rate limit
One API key can send 120 requests a minute. Above that, the answer is rate_limited with status 429. Wait retry_after_s seconds, then retry.