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¤t_page=1&topic=running
- Optional integer - The current page of results. Defaults to 1.
- Optional integer - The number of results to return. Defaults to 10.
- Optional string - Matches assets by topic name.
- Optional string - The sorting metric to determine popularity. Defaults to ‘Views’.
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
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
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
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