Trending Targets

See what business processes are being effected, and how they are trending.

You can choose from a daily, weekly, or monthly time window for the trending scope.

What you get

Use our data to quickly get the following insight:

Over the last month, customer data and Point-of-Sales (POS) systems are some of the most targeted entities within the Financials industry.

Interactive API

Our interactive API powered this example using the link below.
  https://www.surfwatchlabs.com/api/v3/static/swagger.html#!/summary/getMonthlyTagTrend_get_9

To try it yourself, you'll need your Application ID and Application Key from My API Profile.

The Response

An excerpt of actual output from this insight:

[
  {
    "feed_id": -3,
    "feed_description": "Financials",
    "tag_id": 7812,
    "tag": "customer data",
    "macro_tag_id": -211,
    "macro_tag": "Data",
    "tag_super_type_id": 2,
    "tag_super_type": "Target",
    "analytic_interval": "2015-05-31T00:00:00.000Z/2015-06-30T00:00:00.000Z",
    "analytic_day": "2015-06-30T00:00:00.000Z",
    "tag_trend": 10,
    "tag_trend_rank": 1,
    "tag_momentum": 0
  },
  {
    "feed_id": -3,
    "feed_description": "Financials",
    "tag_id": 3627,
    "tag": "financial institutions",
    "macro_tag_id": -268,
    "macro_tag": "Group Members",
    "tag_super_type_id": 2,
    "tag_super_type": "Target",
    "analytic_interval": "2015-05-31T00:00:00.000Z/2015-06-30T00:00:00.000Z",
    "analytic_day": "2015-06-30T00:00:00.000Z",
    "tag_trend": 8,
    "tag_trend_rank": 2,
    "tag_momentum": 0
  },
  {
    "feed_id": -3,
    "feed_description": "Financials",
    "tag_id": 135694,
    "tag": "Point-of-Sales (POS) systems",
    "macro_tag_id": -283,
    "macro_tag": "Point of Sale Systems/Software",
    "tag_super_type_id": 2,
    "tag_super_type": "Target",
    "analytic_interval": "2015-05-31T00:00:00.000Z/2015-06-30T00:00:00.000Z",
    "analytic_day": "2015-06-30T00:00:00.000Z",
    "tag_trend": 8,
    "tag_trend_rank": 3,
    "tag_momentum": 0
  },
  ...
]

The Code

Here is the code to do it yourself:

import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.MultivaluedHashMap;
import javax.ws.rs.core.MultivaluedMap;

public class TrendingTargets {

    private static final String API_BASE_URL = "https://www.surfwatchlabs.com:443/api/v3";

    public static void main( String[] args ) throws Exception {

        Client restClient = ClientBuilder.newClient();
        WebTarget target = restClient.target( API_BASE_URL )
                .path( "/summary/tagTrend/monthly" )
                .queryParam( "date", "2015-06-30" )
                .queryParam( "tagSuperTypeId", "2" )
                .queryParam( "feedId", "-3" );

        MultivaluedMap headers = new MultivaluedHashMap<>();
        headers.add( "app-id", "your-app-id" );
        headers.add( "app-key", "your-app-key" );

        String response = target
                .request( MediaType.APPLICATION_JSON )  // alternately set "Content-Type" header
                .headers( headers )
                .get( String.class );

        System.out.print( response );
    }

}
Or view the source on GitHub
require 'rest_client'
require 'json'

url = 'https://www.surfwatchlabs.com:443/api/v3/summary/tagTrend/monthly'

header = {
  'content_type' => 'application/json',
  'app-key' => ENV['SURFWATCH_ANALYTICS_APP_KEY'],
  'app-id' => ENV['SURFWATCH_ANALYTICS_APP_ID'],
  params: {
    'date' => '2015-06-30',
    'tagSuperTypeId' => 2,
    'feedId' => -3
  }
}
response = RestClient::Request.execute(method: :get, url: url, headers: header, timeout: 300)
results = JSON.parse(response)
puts results
Or view the source on GitHub