Skip to content

Endpoints

Ricky edited this page Mar 16, 2016 · 9 revisions

The #feels API has three public endpoints:

  1. Positive trend: get "http://hashtagfeels-92395643.us-east-1.elb.amazonaws.com/positive"
  2. Negative trend: get "http://hashtagfeels-92395643.us-east-1.elb.amazonaws.com/negative"
  3. All trends: get "http://hashtagfeels-92395643.us-east-1.elb.amazonaws.com/"

Each returns JSON data from the database. The database contains roughly 10 recent positive and negative trending topics.


The first two endpoints return one random trend object whose sentiment matches the endpoint's name, in the following structure:

{
"name": "",
"sentiment": "",
"id": "",
"created": ""
}

The third endpoint returns an array of trend objects in the same structure:

[
{
"name": "",
"sentiment": "",
"id": "",
"created": ""
},
...
]
Clone this wiki locally