Data Endpoint (CORE)

The Data Explorer allows you to pull data from TRAC & CORE. This section introduces how our queries function and some additional sample queries, along with any need to know details.

Sample Calls

Intro

Below are a handful of sample calls to help you understand how the CORE Data Explorer functions

Each sample call will contain the query and variables in one tab, followed by the Response in the other.

We do this to keep formatting consistent with how most API testing environments would surface the blocks as groups.

For all CORE queries, POST to this GraphQL endpoint URL:

https://data.pulsarplatform.com/graphql/core

Getting a List of Brands and Profiles within Brands

query BrandsPlusProfiles($page: Int, $limit: Int) {
  brands(page: $page, limit: $limit) {
    total
    nextPage
    brands {
      id
      name
      profiles {
        id
        source
        name
        plugged
      }
    }
  }
}
{
	"page": 1
}

Getting Average Engagement Data across multiple Profiles

query Engagements($filter: Filter!, $metric: ContentMetric) {
  engagements(filter : $filter, metric : $metric)
}
{
	"filter": {
		"dateFrom": "2020-10-11T00:00:00Z",
		"dateTo": "2020-11-11T23:59:59Z",
		"brandId": brandID,
		"profiles": [
			profID1,
			profID2,
			profID3
		]
  },
  "metric" : "AVG"
}

Getting Total Comment Count over Time

query comments($filter: Filter!, $metric: ContentMetric!) {
	comments(filter: $filter, metric: $metric)
}
{
    "filter": {
        "dateFrom": "2020-04-01T00:00:00Z",
        "dateTo": "2022-03-31T23:59:59Z",
        "brandId": brandID,
        "profiles": [
            profID1
        ]
    },
    "metric" : "SUM"
}

Getting the Total Count of Impressions across multiple profiles

query Impressions($filter: Filter!, $metric: ContentMetric) {
  impressions(filter : $filter, metric : $metric)
}
{			"filter": {
				"dateFrom": "2023-01-01T00:00:00Z",
				"dateTo": "2023-01-26T23:59:59Z",
				"brandId": brandId,
				"profiles": [
					profileID1,
					profileID2,
					profileID3
				]
			},
			"metric": "SUM"
		}

Getting Metrics of Posts from a Single Profile

query PostMetrics($filter: Filter!, $options: Option) {
	results(filter: $filter, options: $options) {
		results {
			commentsCount
			content
			engagement
			impressions
			likesCount
		}
		nextCursor #you'll need this to retrieve the next 50 results
	}
}
{
	"filter": {
		"dateFrom": "2022-05-11T00:00:00Z",
		"dateTo": "2022-05-12T23:59:59Z",
		"brandId": brandID,
		"profiles": [
			profileID
		]
	}
}

Getting the Total Post Count Over Time

query posts($filter: Filter!, $metric: ContentMetric!) {
	posts(filter: $filter, metric: $metric)
}
{
	"filter": {
		"dateFrom": "2022-05-11T00:00:00Z",
		"dateTo": "2022-05-12T23:59:59Z",
		"brandId": brandID,
		"profiles": [
			profileID
		]
	},
"metric" : "SUM"
}

Last updated