Social Data Functions

SAN_PROJECT_SOCIAL_DATA

SAN_PROJECT_SOCIAL_DATA(projectSlug) ⇒ Array

Returns social data for a specified project.

  • Kind: global function
  • Returns: Array - of project’s social data.
  • Customfunction:
ParamTypeDescription
projectSlugstringName of the asset at sanbase, which can be found at the end of the URL (eg. the Santiment URL is https://app.santiment.net/projects/santiment, so the projectSlug would be santiment).

SAN_SOCIAL_DOMINANCE

SAN_SOCIAL_DOMINANCE(projectSlug, from, to, source, interval) ⇒ Array

Returns the social dominance for a slug.

  • Kind: global function
  • Returns: Array - of the slug’s social dominance.
  • Customfunction:
ParamTypeDescription
projectSlugstringName of the asset, more info at /glossary/#slug. Example: “santiment”.
fromdateThe starting date to fetch the data. Example: DATE(2018, 9, 20)
todateThe ending date to fetch the data. Example: DATE(2018, 9, 21)
sourcestringThe source of mention counts, one of the following: “TELEGRAM_CHATS_OVERVIEW”, “TELEGRAM_DISCUSSION_OVERVIEW”, “TWITTER_CHATS_OVERVIEW”, “REDDIT_COMMENTS_OVERVIEW”, “TOTAL”
intervalstringThe resolution with which the data is fetched. Example: “5m”

SAN_SOCIAL_DOMINANCE_AGGREGATED

SAN_SOCIAL_DOMINANCE_AGGREGATED(projectSlug, from, to, source, aggregation) ⇒ number

Returns the social dominance for a slug.

  • Kind: global function
  • Returns: number - of aggregated the slug’s social dominance.
  • Customfunction:
ParamTypeDescription
projectSlugstringName of the asset, more info at /glossary/#slug. Example: “santiment”.
fromdateThe starting date to fetch the data. Example: DATE(2018, 9, 20)
todateThe ending date to fetch the data. Example: DATE(2018, 9, 21)
sourcestringThe source of mention counts, one of the following: “TELEGRAM_CHATS_OVERVIEW”, “TELEGRAM_DISCUSSION_OVERVIEW”, “TWITTER_CHATS_OVERVIEW”, “REDDIT_COMMENTS_OVERVIEW”, “TOTAL”
aggregationstringAggregation for the timeseries metrics. Example: “LAST”

SAN_SOCIAL_DOMINANCE_MULTIPLE_SLUGS

SAN_SOCIAL_DOMINANCE_MULTIPLE_SLUGS(projectSlugsList, from, to, source, interval) ⇒ Array

Returns the social dominance for a slug.

  • Kind: global function
  • Returns: Array - of results for multiple slugs the slug’s social dominance.
  • Customfunction:
ParamTypeDescription
projectSlugsListstringComma-separated names of the assets, more info at /glossary/#slug. Example: “santiment,bitcoin”.
fromdateThe starting date to fetch the data. Example: DATE(2018, 9, 20)
todateThe ending date to fetch the data. Example: DATE(2018, 9, 21)
sourcestringThe source of mention counts, one of the following: “TELEGRAM_CHATS_OVERVIEW”, “TELEGRAM_DISCUSSION_OVERVIEW”, “TWITTER_CHATS_OVERVIEW”, “REDDIT_COMMENTS_OVERVIEW”, “TOTAL”
intervalstringThe resolution with which the data is fetched. Example: “5m”

SAN_SOCIAL_VOLUME

SAN_SOCIAL_VOLUME(projectSlug, from, to, source, interval) ⇒ Array

Returns the social volume for a slug.

  • Kind: global function
  • Returns: Array - of the slug’s social volume.
  • Customfunction:
ParamTypeDescription
projectSlugstringName of the asset, more info at /glossary/#slug. Example: “santiment”.
fromdateThe starting date to fetch the data. Example: DATE(2018, 9, 20)
todateThe ending date to fetch the data. Example: DATE(2018, 9, 21)
sourcestringThe source of mention counts, one of the following: “TELEGRAM_CHATS_OVERVIEW”, “TELEGRAM_DISCUSSION_OVERVIEW”, “TWITTER_CHATS_OVERVIEW”, “REDDIT_COMMENTS_OVERVIEW”, “TOTAL”
intervalstringThe resolution with which the data is fetched. Example: “5m”

SAN_SOCIAL_VOLUME_AGGREGATED

SAN_SOCIAL_VOLUME_AGGREGATED(projectSlug, from, to, source, aggregation) ⇒ number

Returns the social volume for a slug.

  • Kind: global function
  • Returns: number - of aggregated the slug’s social volume.
  • Customfunction:
ParamTypeDescription
projectSlugstringName of the asset, more info at /glossary/#slug. Example: “santiment”.
fromdateThe starting date to fetch the data. Example: DATE(2018, 9, 20)
todateThe ending date to fetch the data. Example: DATE(2018, 9, 21)
sourcestringThe source of mention counts, one of the following: “TELEGRAM_CHATS_OVERVIEW”, “TELEGRAM_DISCUSSION_OVERVIEW”, “TWITTER_CHATS_OVERVIEW”, “REDDIT_COMMENTS_OVERVIEW”, “TOTAL”
aggregationstringAggregation for the timeseries metrics. Example: “LAST”

SAN_SOCIAL_VOLUME_MULTIPLE_SLUGS

SAN_SOCIAL_VOLUME_MULTIPLE_SLUGS(projectSlugsList, from, to, source, interval) ⇒ Array

Returns the social volume for a slug.

  • Kind: global function
  • Returns: Array - of results for multiple slugs the slug’s social volume.
  • Customfunction:
ParamTypeDescription
projectSlugsListstringComma-separated names of the assets, more info at /glossary/#slug. Example: “santiment,bitcoin”.
fromdateThe starting date to fetch the data. Example: DATE(2018, 9, 20)
todateThe ending date to fetch the data. Example: DATE(2018, 9, 21)
sourcestringThe source of mention counts, one of the following: “TELEGRAM_CHATS_OVERVIEW”, “TELEGRAM_DISCUSSION_OVERVIEW”, “TWITTER_CHATS_OVERVIEW”, “REDDIT_COMMENTS_OVERVIEW”, “TOTAL”
intervalstringThe resolution with which the data is fetched. Example: “5m”

SAN_SOCIAL_VOLUME_PROJECTS

SAN_SOCIAL_VOLUME_PROJECTS() ⇒ Array

Returns a list of project slugs for which there is social volume data.

  • Kind: global function
  • Returns: Array - of social volume projects.
  • Customfunction:

SAN_WEIGHTED_SOCIAL_SENTIMENT

SAN_WEIGHTED_SOCIAL_SENTIMENT(projectSlug, from, to, source, interval) ⇒ Array

Returns the weighted social sentiment for a slug.

  • Kind: global function
  • Returns: Array - of the slug’s weighted social sentiment.
  • Customfunction:
ParamTypeDescription
projectSlugstringName of the asset, more info at /glossary/#slug. Example: “santiment”.
fromdateThe starting date to fetch the data. Example: DATE(2018, 9, 20)
todateThe ending date to fetch the data. Example: DATE(2018, 9, 21)
sourcestringThe source of mention counts, one of the following: “TELEGRAM_CHATS_OVERVIEW”, “TELEGRAM_DISCUSSION_OVERVIEW”, “TWITTER_CHATS_OVERVIEW”, “REDDIT_COMMENTS_OVERVIEW”, “TOTAL”
intervalstringThe resolution with which the data is fetched. Example: “5m”

SAN_WEIGHTED_SOCIAL_SENTIMENT_AGGREGATED

SAN_WEIGHTED_SOCIAL_SENTIMENT_AGGREGATED(projectSlug, from, to, source, aggregation) ⇒ number

Returns the weighted social sentiment for a slug.

  • Kind: global function
  • Returns: number - of aggregated the slug’s weighted social sentiment.
  • Customfunction:
ParamTypeDescription
projectSlugstringName of the asset, more info at /glossary/#slug. Example: “santiment”.
fromdateThe starting date to fetch the data. Example: DATE(2018, 9, 20)
todateThe ending date to fetch the data. Example: DATE(2018, 9, 21)
sourcestringThe source of mention counts, one of the following: “TELEGRAM_CHATS_OVERVIEW”, “TELEGRAM_DISCUSSION_OVERVIEW”, “TWITTER_CHATS_OVERVIEW”, “REDDIT_COMMENTS_OVERVIEW”, “TOTAL”
aggregationstringAggregation for the timeseries metrics. Example: “LAST”

SAN_WEIGHTED_SOCIAL_SENTIMENT_MULTIPLE_SLUGS

SAN_WEIGHTED_SOCIAL_SENTIMENT_MULTIPLE_SLUGS(projectSlugsList, from, to, source, interval) ⇒ Array

Returns the weighted social sentiment for a slug.

  • Kind: global function
  • Returns: Array - of results for multiple slugs the slug’s weighted social sentiment.
  • Customfunction:
ParamTypeDescription
projectSlugsListstringComma-separated names of the assets, more info at /glossary/#slug. Example: “santiment,bitcoin”.
fromdateThe starting date to fetch the data. Example: DATE(2018, 9, 20)
todateThe ending date to fetch the data. Example: DATE(2018, 9, 21)
sourcestringThe source of mention counts, one of the following: “TELEGRAM_CHATS_OVERVIEW”, “TELEGRAM_DISCUSSION_OVERVIEW”, “TWITTER_CHATS_OVERVIEW”, “REDDIT_COMMENTS_OVERVIEW”, “TOTAL”
intervalstringThe resolution with which the data is fetched. Example: “5m”