Audit a social dataset before drawing the first chart
Check what was requested, returned, missing, duplicated, and observed at different times before a tidy chart hides the gaps.
A file with 10,000 rows can be less useful than a file with 500 well-defined observations. Row count does not tell you whether a requested period is complete, whether counters came from the same observation time, or whether one viral thread has been copied hundreds of times.
This is a practical audit method, not a claim that a public sample represents a population. The worked counts below are synthetic. Keep the audit beside the dataset so a later reader can understand what the chart includes and excludes.
Write the collection envelope
Record the question, platform, entity list, requested dates, query version, operation ID, request ID, and collection time. Distinguish publication time from observation time: one describes when content appeared, the other when its changing counters were captured. Store the original timezone or UTC value, then state the reporting timezone.
Check whether the operation actually promises a complete history, a bounded latest sample, or a search result. A response limited to recent items cannot justify “all posts this year.” Read the pagination and source limits, and retain the returned coverage state rather than replacing it with a convenient “complete” label.
Reconcile requests with usable observations
In a synthetic collection, 1,000 rows arrive. Fifty are duplicates, 30 lack the timestamp needed for the time-series question, and 20 are outside the requested period. The usable count for that question is 900, provided the exclusion groups do not overlap. Keep exclusion reasons rather than silently dropping records.
Deduplication should use stable platform item identity where available. Similar text alone is a weak key: two people can write the same short phrase, while one item can change its text. Repeated observations of the same item may be valuable for change analysis; they should be modeled as observations, not mistaken for new posts.
| Synthetic audit step | Count | Meaning |
|---|---|---|
| Returned rows | 1,000 | Transport succeeded; analysis not yet validated |
| Unique items | 950 | Duplicates removed by item identity |
| In-window rows with usable timestamps | 900 | Usable for this specific time-series question |
| Population coverage | Unknown | No verified total for all relevant public content |
Inspect selection before interpreting a trend
Look at counts by day, source, language, format, and entity. A sudden change may coincide with a query revision or source failure. Read a small sample of included and excluded records. Topic words with several meanings often create convincing but irrelevant results.
Keep the common subset when comparing two periods. If coverage differs, show the comparison on unchanged sources and disclose the broader sample separately. Do not estimate a population total by multiplying a partial sample unless you have a defensible sampling design and know its inclusion probabilities.
Make the audit reproducible in DataPI workflows
Preserve request identifiers and the original result envelope before transformation. For asynchronous operations, distinguish accepted requests from completed results. A 202 response confirms acceptance; it does not establish data quality. Read the result before the documented retention window expires if your workflow needs durable copies.
Attach an audit summary to downstream tables: usable count, excluded count by reason, missing fields, coverage state, and observation range. A dashboard can then show a gap or warning instead of a false number. Re-run the checks when the contract, query, or source changes.
- Evaluate quality for the question, not just for the file.
- Track identity, timestamps, exclusions, and missing-value states.
- A successful API response is a collection event, not proof of representativeness.
Related pages
Related reading
- Design a social benchmark that survives the first questionA worked example shows how denominators, observation age, content mix, and outliers change a competitor comparison.
- Turn a listening dashboard into a decision queueA practical way to turn public questions and complaints into evidence an owner can act on, with a worked example and explicit limits.
- Matrix charts: coverage and gaps before performanceA matrix is a coverage instrument. The empty cell is the most important cell, so it must never be coloured like a measured zero.