0

I am looking for a URL to count the results retrieved using Powertrack API. Something similar to what I find using Search API:

https://search.gnip.com/accounts/ACCOUNT_NAME/search/LABEL/counts.json

I've been looking at Gnip's docs but I have found nothing that allows me to count the results.

I tried using other URLs (stream.gnip.com, and using search.gnip.com with 'powertrack' instead of 'search'). I can't paste more than 1 link so I can't show the complete URLs here, sorry.

I also looked at Historical PowerTrack API reference, and I can't find anything there related to this.

Thank you.

Dervin Thunk
  • 19,515
  • 28
  • 127
  • 217
phr
  • 23
  • 5

2 Answers2

0

The only products that support a counts endpoint are the 30 Day and Full Archive Search APIs.

Because PowerTrack is a streaming API and supports 10's of thousands of concurrent rules, your best bet would be to store the data into a database or document storage system (NoSQL) that would allow for filtered queries to extract the counts you need.

Historical PowerTrack could technically allow you to determine a count for a specific query, just based on the total number of activities returned, but to execute an HPT job for the sole purpose of getting a count would not be cost-effective.

0

Like Steven suggested you better store it in a (NoSQL) database and perform your own aggregations.

Gnip does provide a Usage API which will give you the total volume per period per source.

Jeroen Rosenberg
  • 4,552
  • 3
  • 27
  • 39