Access JSON feeds for your Visualize charts
Our Visualize API allows you to access social and news content in a simple JSON format. Your queries are defined by Saved Dives within Listen, and your endpoints are retrieved from the Visualize charts they are connected to. Once you have a chart displaying in Visualize, simply click on the small link button in the top right corner.
Learn more about building a Visualize screen.
- Listen: to create your Saved Dives that define your search.
- Visualize: to create the charts using your Saved Dives.
Unlike traditional APIs, your requests for the Content API must be created from our live dashboard feature Visualize. Your Visualize screen allows you to test and visualise the results before retrieving the API endpoint. Once you’re happy with the results, simply click the link button on the top right corner of the chart and your request will be provided in the URL.
Retrieved from each chart in your screen, endpoints look like the example displayed to the right. They always include the account id, screen id, chart id, and your client token. Note that Visualize screens are designed for public use and can be accessed without authentication.
All of your requests should match this format.
Requests can be modified with two parameters to adjust the date range or filter for specific terms.
Append date_ending to adjust the ending date of your query. This will adjust the time window of your chart to finish at this day or time.
Append terms to filter your saved dive even further. Here we’re filtering for mentions of Lexer OR Data.
Here we’ll describe the summary bar and live stream volume charts.
The summary bar displays the headline metrics for your saved dive. Each of the individual big number charts (i.e. Matches, Authors) uses the same query and will return all of the results.
- mentions: the total number of objects matching your query.
- sources: where the content has come from i.e. Twitter.
- authors: unique authors that have published this content.
- reach: sum of the followers for each author.
- average_engagements: mentions divided by authors.
The Live Stream Volume chart will return a data object for each filter presented in the chart. In this example we’re just looking at the Nintendo filter. This object contains the corresponding count of mentions for each time interval.
Also included in this response is the total number of mentions and various other information to render this in the chart interface.
Our volume charts bucket counts into time intervals based on the period covered in the report. Here is a summary of the query ranges and corresponding time intervals returned.
- <2 days: results are grouped into 1 hour intervals.
- 2-3 days: results are grouped into 3 hour intervals.
- 7 days: results are grouped into 12 hour intervals.
- 8+ days: results are grouped into 1 day intervals.
Note: all of our volume over time charts are returned using unix time.
Let’s take a closer look at the mention objects that are displayed in the Recent Mentions, Influential Mentions, and Recent Media charts. Each of these charts returns the top 100 hits for the query, allowing you to recreate a display feed of content in your app.
Recent and influential mentions
Here we’ll review a Tweet from the @camplexer account. Let’s take a closer look in the table below. Most of the data you need to recreate a mention is contained within the data object. The original object is what we receive from the source, and will give you access to the media content (image or video) attached to the object. We suggest referring to the Twitter, Facebook or Instagram API documentation for more on the structure of the results.
In order to return more than 100 matches, you can page through the results using the timestamp of the last object returned. Simply add the date_ending parameter to your next call using the data.published time (minus one second so as not to include the same object again) and you will return the next 100 matches.
For example if the 100th object in our result has "published": "2018-02-25T04:30:00Z", then you would add ;date_ending=2018-02-25T04:39:99Z to the end of your request.
Let’s take a closer look at how we analyse trending words used in the content matching our query. Here we have the Trending Terms and Terms Volume charts. It’s important to note that we remove stop words before tokenizing content.
Our trending terms table is the simplest way to return counts for terms appearing in your query. This endpoint will return the top 100 terms sorted by volume.
Here we’re returning an object for each of the top 10 terms for this query. Remember that our time intervals are determined by the range of our query, as mentioned in the Summary section above.
Note that you can ignore the data in the original section.
Sources are the social networks or websites the content has come from. We categorise this content in different ways to help you dig deeper. Let’s take a closer look at the Top Sources, Sources Volume, Source Types and Source Groups charts.
Our Top Sources chart provides you with a count of matches for each source. The term field refers to the source name, and the count field will provide the number of matches.
The Source Volume chart will return an object for each source in your result, and will break this into time intervals based on your query length.
In the chart above, your result would return an object for twitter.com, instagram.com and facebook.com. These objects contain a key pair value for each date value and the corresponding volume.
The original and summary values can be ignored for these results.
Source Types go further into breaking down the source results into their specific content type, for example posts vs comments vs private messages.
You will notice that we return numeric IDs for each of the sources. Below is a table you should store as reference for each of the source types in our platform.
Source groups are used for Facebook and Instagram to query or analyse content that exists on a specific page. For example, if we were to ask for all content on the source group “camplexer” we return all posts, comments and messages on this page.
This endpoint will return the top 100 source groups for your query.
Authors are the creators of the content matching your query. You can return these authors sorted by influence (follower count) or by engagement (count of objects). We also include the ability to return the top engaged authors in a time series format.
Both of the tables below will return the top 100 authors based on the sorting that is being applied. Each author returned will provide the following details.
You can also return the top authors in a time series format. Here we return a data object for the top 10 authors based on their volume of content matching your query. Similar to other timeseries results, there is a key pair value for the time and count of mentions.
Many authors of the content matching your query will have associated location information. Here we’re analysing (when available) the author location for your search. These locations may be at either the state or country level, depending on the location and source of data.
In this result the term is referring to the location code: Top Locations.
Classifications are custom tags that your team can apply to content. These are typically included in the customer service workflow within Engage. You can then report on the volumes for each classification that match your query. Here we’re simply returning the counts for each classification that matches your saved dive.