Popular Articles

The Popular Articles API enables search queries of popular articles across Active.com’s directory of assets.

Example API Call

curl -XGET http://api.active.com/v2/articles/popular?per_page=5&current_page=1&topic=running

Sample Response

{}

Parameters

current_page
Optional integer - The current page of results. Defaults to 1.
per_page
Optional integer - The number of results to return. Defaults to 10.
topic
Optional string - Matches assets by topic name.
popularity_metric
Optional string - The sorting metric to determine popularity. Defaults to ‘Views’.

Other attributes

Besides the parameters listed above, you can use any of the asset attributes as parameters to filter your results. For the value, you can pass a term with some boolean logic (see NOT, AND, and OR below) or a range value (see Ranges below).

authorName=John Doe

topicName=NOT Running

NOT

To negate the value of the parameter, precede it with NOT (all uppercase).

topicName=NOT running     # return results that do not have the topic name of Running

AND

To return results that have multiple values, put AND (all uppercase) between the terms.

topicName=running AND triathlon AND cycling     # return results that have running, triathlon, and cycling as a topic name

OR

To return results that have any value, put an OR (all uppercase) between the terms.

topicName=running OR triathlon OR cycling       # return results that have either running, triathlon, and cycling as a topic name