The main questions that are being answered here are: How to fetch data? and What to do with the data?.

There are a few different ways to fetch and analyze data data:


If the desired metric is available in the API using it is the preferred way to fetch data. Detailed description and examples can be found on the SanAPI page

The API can be consumed in a few different ways:

  • Use the GraphiQL Live Explorer and explore the API with included autocmplete and nice response formatting.
  • Use the /graphql API endpoint with curl directly from your terminal.
  • Use the /graphql API endpoint and construct requests in your preferred programming language. There are examples in R, Ruby, Javascript and Elixir
  • Use the sanpy Python library that wraps the GraphQL API. It is easy to use and hides all GraphQL-related details.

Download CSV from Sanbase

Sanbase contains only data available in the API. Data from charts can be exported as a CSV file. sanbase-csv-export

Download CSV from API no-code way

API has only json output format, but you can ease to use this sample to get csv file. CSV API Download Tool

Download CSV from Sangraphs

Sangraphs contains metrics that are both available and not available in the API. The social merics from Sangraphs can be exported as a CSV file from the bottom of the social page. sangraphs-csv-export

Analyzing Santiment Data

Examples for different analysis based on Santiment data can be found on the Education and use cases page

The are two types of examples included:

  • Jupyter Notebooks where code is written to analyze the data and plot results
  • Descriptions how to interpert the chart data available in Santiment products

Was this article helpful?