JSData & Media Start a project

← All connectors

Schema · Entity relationship diagram

Nectar Social tables and relationships

UGC and brand mentions across Instagram and TikTok (with daily metric snapshots), owned-account daily metrics, and your connected social accounts.

Live4 tables · 2 relationships
ConnectPaste an API key
Default schemanectar
Source API docsdocs.nectarsocial.com
DestinationsAmazon Redshift, Google BigQuery, Snowflake, PostgreSQL, Amazon S3
  • ugc_posts holds the current state of every UGC item; ugc_metrics_daily snapshots each post's cumulative metrics per sync day for day-over-day deltas.
  • account_metrics_daily is long format with several variants per date and metric (workspace roll-up, attribution, stories). Filter to one variant before summing.
ugc_metrics_daily.id → ugc_posts.idaccount_metrics_daily.account_id → accounts.idugc_metrics_daily — Snapshot of each post's cumulative metrics on each sync day (posts inside the trailing refresh window), for day-over-day view/engagement deltas.ugc_metrics_daily12snapshot_key VARCHAR(80) · primary keysnapshot_keyvarcharid VARCHAR(64) · → ugc_posts.ididvarcharrefresh_date DATErefresh_datedateplatform VARCHAR(32)platformvarcharpublished_at TIMESTAMPpublished_attimestamplikes BIGINTlikesbigintcomments BIGINTcommentsbigintshares BIGINTsharesbigintviews_estimate BIGINTviews_estimatebigintengagement_rate DECIMAL(18,6)engagement_ratedecimalemv DECIMAL(18,4)emvdecimal_jsdata_synced TIMESTAMP_jsdata_syncedtimestampaccount_metrics_daily — Owned-account daily metric series, long format. Several variants per date/platform/metric: account_id NULL = workspace roll-up; attribution ORGANIC | PAID | BLENDED (no filter); excludes_stories. Filtaccount_metrics_daily11row_key VARCHAR(200) · primary keyrow_keyvarcharaccount_id VARCHAR(64) · → accounts.idaccount_idvarcharmetric_date DATEmetric_datedateplatform VARCHAR(32)platformvarcharmetric VARCHAR(64)metricvarcharvalue DECIMAL(24,6)valuedecimalrefresh_date DATErefresh_datedateaccount_handle VARCHAR(255)account_handlevarcharattribution VARCHAR(16)attributionvarcharexcludes_stories BOOLEANexcludes_storiesbool_jsdata_synced TIMESTAMP_jsdata_syncedtimestampugc_posts — Current state of every UGC item (feed posts, reels, story mentions, tagged media).ugc_posts32id VARCHAR(64) · primary keyidvarcharplatform VARCHAR(32)platformvarcharsurface VARCHAR(32)surfacevarcharformat VARCHAR(32)formatvarcharpublished_at TIMESTAMPpublished_attimestamppermalink VARCHAR(2500)permalinkvarcharcaption VARCHAR(8000)captionvarcharsentiment VARCHAR(16)sentimentvarcharai_summary VARCHAR(4000)ai_summaryvarcharis_owned_content BOOLEANis_owned_contentboolis_untagged_brand_mention BOOLEANis_untagged_brand_mentionboolis_favorited BOOLEANis_favoritedboolbrand_replied BOOLEANbrand_repliedboolmedia_count INTEGERmedia_countintmedia_type VARCHAR(32)media_typevarcharmedia_url VARCHAR(2500)media_urlvarcharthumbnail_url VARCHAR(2500)thumbnail_urlvarcharlikes BIGINTlikesbigintcomments BIGINTcommentsbigintshares BIGINTsharesbigintviews_estimate BIGINTviews_estimatebigintengagement_rate DECIMAL(18,6)engagement_ratedecimalemv DECIMAL(18,4)emvdecimalcreator_id VARCHAR(64)creator_idvarcharcreator_handle VARCHAR(255)creator_handlevarcharcreator_follower_count BIGINTcreator_follower_countbigintcreator_is_verified BOOLEANcreator_is_verifiedboollabels VARCHAR(2000)labelsvarcharusage_rights_status VARCHAR(100)usage_rights_statusvarcharusage_rights_expires_at TIMESTAMPusage_rights_expires_attimestamprefresh_date DATErefresh_datedate_jsdata_synced TIMESTAMP_jsdata_syncedtimestampaccounts — Connected social accounts.accounts6id VARCHAR(64) · primary keyidvarcharhandle VARCHAR(255)handlevarcharplatform VARCHAR(32)platformvarcharprofile_picture_url VARCHAR(2500)profile_picture_urlvarcharrefresh_date DATErefresh_datedate_jsdata_synced TIMESTAMP_jsdata_syncedtimestamp
Primary keyForeign keyReferencesJoins on (not a key)

Drag to pan, scroll or pinch to zoom, click a table to see what it joins to.

Table reference

4 tables · click a table for its columns
ugc_posts32 columnsshow in diagram

Current state of every UGC item (feed posts, reels, story mentions, tagged media).

Primary key: id

ColumnTypeKeyDescription
idPrimary key.varchar(64)PK Primary key.
platformvarchar(32)
surfacevarchar(32)
formatvarchar(32)
published_attimestamp
permalinkvarchar(2500)
captionvarchar(8000)
sentimentvarchar(16)
ai_summaryvarchar(4000)
is_owned_contentboolean
is_untagged_brand_mentionboolean
is_favoritedboolean
brand_repliedboolean
media_countinteger
media_typevarchar(32)
media_urlvarchar(2500)
thumbnail_urlvarchar(2500)
likesbigint
commentsbigint
sharesbigint
views_estimatebigint
engagement_ratedecimal(18,6)
emvdecimal(18,4)
creator_idvarchar(64)
creator_handlevarchar(255)
creator_follower_countbigint
creator_is_verifiedboolean
labelsvarchar(2000)
usage_rights_statusvarchar(100)
usage_rights_expires_attimestamp
refresh_datedate
_jsdata_syncedWhen jsdata last wrote this row.timestampWhen jsdata last wrote this row.
ugc_metrics_daily12 columnsshow in diagram

Snapshot of each post's cumulative metrics on each sync day (posts inside the trailing refresh window), for day-over-day view/engagement deltas.

Primary key: snapshot_key

ColumnTypeKeyDescription
snapshot_keyPrimary key.varchar(80)PK Primary key.
idReferences ugc_posts.id.varchar(64)FKReferences ugc_posts.id.
refresh_datedate
platformvarchar(32)
published_attimestamp
likesbigint
commentsbigint
sharesbigint
views_estimatebigint
engagement_ratedecimal(18,6)
emvdecimal(18,4)
_jsdata_syncedWhen jsdata last wrote this row.timestampWhen jsdata last wrote this row.
account_metrics_daily11 columnsshow in diagram

Owned-account daily metric series, long format. Several variants per date/platform/metric: account_id NULL = workspace roll-up; attribution ORGANIC | PAID | BLENDED (no filter); excludes_stories. Filter to one variant before summing. ENGAGEMENT_RATE_* are not recomputed by the API on excludes_stories rows — derive rates from components there.

Primary key: row_key

ColumnTypeKeyDescription
row_keyPrimary key.varchar(200)PK Primary key.
metric_datedate
platformvarchar(32)
metricvarchar(64)
valuedecimal(24,6)
refresh_datedate
account_idReferences accounts.id.varchar(64)FKReferences accounts.id.
account_handlevarchar(255)
attributionvarchar(16)
excludes_storiesboolean
_jsdata_syncedWhen jsdata last wrote this row.timestampWhen jsdata last wrote this row.
accounts6 columnsshow in diagram

Connected social accounts.

Primary key: id

ColumnTypeKeyDescription
idPrimary key.varchar(64)PK Primary key.
handlevarchar(255)
platformvarchar(32)
profile_picture_urlvarchar(2500)
refresh_datedate
_jsdata_syncedWhen jsdata last wrote this row.timestampWhen jsdata last wrote this row.

Connect Nectar Social All connectors