Read an answer
The meta object, the freshness fields, null counts, and availability.
meta
Every answer has a meta object:
| Field | Meaning |
|---|---|
as_of | The answer holds no data read after this time |
source | store: data that socialdata already held. live: this call read the platform. vendor_cache: this call used a recent copy that socialdata's data provider held, and each observed time is the time of that copy. Only lookup answers live or vendor_cache |
credits_spent | What this call cost |
credits_left_today | What your organization can still spend on lookups today (UTC) |
trace_id | The id of the call. Quote it when you report a problem |
warnings | Notes about the answer, each with a code and a message. Usually empty |
Warnings
| Code | Meaning |
|---|---|
stale | lookup could not read the platform, so the answer holds stored data older than max_age_s |
handle_changed | No account holds the handle now, and the answer is the account that held it before |
first_observation | This call read the item for the first time, so no change over time is known yet |
partial_backfill | socialdata is still reading the older posts of the account |
counter_decreased | A count dropped between two measurements. The answer keeps the values that the platform showed |
mixed_platforms | The answer mixes platforms, whose counts are not measured the same way |
How fresh is a number
socialdata measures each tracked account and post on a schedule, and lookup can read the platform on demand. Three fields say how old a number is:
observed_aton a post, and<field>_observed_aton an account: when socialdata read that number on the platform.synced_aton a search result: when the search results last took the row. A row follows a new measurement within about 5 minutes, so a search can be a few minutes behindlookup.windows_synced_aton a search result: when socialdata last computed the gains, the follower changes,posts_30d, the medians, andoutlier_scoreof the row. Their windows end at this time, and socialdata computes them again every hour for a row measured in the last 30 days.meta.as_of: the answer holds nothing read after it.
To make sure a number is recent, call lookup with max_age_s. If the newest data is older, lookup reads the platform again, which can cost credits. If it cannot, the answer keeps the stored data and carries the warning stale.
Counts and changes
- A count is
nullwhen the platform does not show it, for example likes that the author hides.nullis not0. - YouTube rounds follower counts to three significant digits.
follower_count_precisionis3then. - A change, such as
follower_count_change_30dorview_count_gained_7d, is the count at the end of the window minus the count at its start. It is negative when the count dropped, andnullwhen socialdata has no measurement near the window start. - A
_pctfield is a fraction:0.026means 2.6%. text_spokenandtext_on_screenarenulluntil socialdata has read the video, and an empty string when it found no words.outlier_scoreisnullwhen the author's median is 0, unknown, or built from fewer than 5 posts.- Counts from different platforms are not measured the same way. An answer that mixes platforms carries the warning
mixed_platforms.
Availability
availability.status says whether socialdata can read an account or a post on the platform:
| Status | Meaning |
|---|---|
available | The platform shows it |
private | Only approved followers can see it |
restricted | The platform limits who can see it, for example by age or region |
unavailable | The last read failed for another reason |
The history of a private or deleted item stays readable.
Media
media_status says whether socialdata holds copies of a post's video and images:
| Status | Meaning |
|---|---|
stored | media lists the files |
pending | The copy is not ready yet |
none | The post has no media, for example a text post |
failed | socialdata could not copy the files |
skipped | A long video, which socialdata does not copy |
not_permitted | Your organization may not read media |
Each url is a signed link to socialdata's copy and stops working 1 hour after the answer. Call again for a new link. search_posts adds media links only when you send include: ["media"].
thumbnail on a post, avatar on an account, and account_avatar on a post (the picture of its author) are images that socialdata stores as WebP within 512 by 512 pixels. Each is null until socialdata has stored one, and its url also stops working 1 hour after the answer.
Pages
A tool that returns a list returns one page and next_cursor. Pass next_cursor as cursor to get the next page. next_cursor is null on the last page. limit sets the page size, from 1 to 100.