Skip to Content
socialdata

Read an answer

The meta object, the freshness fields, null counts, and availability.

meta

Every answer has a meta object:

FieldMeaning
as_ofThe answer holds no data read after this time
sourcestore: 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_spentWhat this call cost
credits_left_todayWhat your organization can still spend on lookups today (UTC)
trace_idThe id of the call. Quote it when you report a problem
warningsNotes about the answer, each with a code and a message. Usually empty

Warnings

CodeMeaning
stalelookup could not read the platform, so the answer holds stored data older than max_age_s
handle_changedNo account holds the handle now, and the answer is the account that held it before
first_observationThis call read the item for the first time, so no change over time is known yet
partial_backfillsocialdata is still reading the older posts of the account
counter_decreasedA count dropped between two measurements. The answer keeps the values that the platform showed
mixed_platformsThe 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_at on a post, and <field>_observed_at on an account: when socialdata read that number on the platform.
  • synced_at on 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 behind lookup.
  • windows_synced_at on a search result: when socialdata last computed the gains, the follower changes, posts_30d, the medians, and outlier_score of 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 null when the platform does not show it, for example likes that the author hides. null is not 0.
  • YouTube rounds follower counts to three significant digits. follower_count_precision is 3 then.
  • A change, such as follower_count_change_30d or view_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, and null when socialdata has no measurement near the window start.
  • A _pct field is a fraction: 0.026 means 2.6%.
  • text_spoken and text_on_screen are null until socialdata has read the video, and an empty string when it found no words.
  • outlier_score is null when 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:

StatusMeaning
availableThe platform shows it
privateOnly approved followers can see it
restrictedThe platform limits who can see it, for example by age or region
unavailableThe 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:

StatusMeaning
storedmedia lists the files
pendingThe copy is not ready yet
noneThe post has no media, for example a text post
failedsocialdata could not copy the files
skippedA long video, which socialdata does not copy
not_permittedYour 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.

On this page