Getting Started

Endpoint : http://apipoint.samepoint.com/api

 

Authentication

Minimum Required Parameters for authentication:

  • appid
  • apikey ( Optional. However if you set one, it will be mandatory )


Example URL:


http://apipoint.samepoint.com/api/appid/<YOUR APPID>/apikey/<YOUR APPKEY>/


Where to find your APPID and APPKEY?


1) Goto API Portal: http://api.samepoint.com ( Or you may already be here )


2) Login


3) Click Dashboard Tab


4) Click API Access Details Link


5) Your APPID and APPKEY will be shown


Note: Remember, you are NOT required to create and APPKEY, at minimum use your APPID for authentication.


Search | Variable q | Format – xml , json or php

Simple search: q=president


- http://apipoint.samepoint.net/api/appid/<YOUR APPID>/apikey/<YOUR APPKEY>/q/president/format/json


Pagination: The API outputs 25 Records at a time. In the response header, there is a numfound datapoint. Use numfound to control your bounds when you are looping through the data.


Start / Offset Switch/ Pagination start=0


• http://apipoint.samepoint.net/api/appid/<YOUR APPID>/apikey/<YOUR APPKEY>/q/president/format/json/start/0


• http://apipoint.samepoint.net/api/appid/<YOUR APPID>/apikey/<YOUR APPKEY>/q/president/format/json/start/25


• http://apipoint.samepoint.net/api/appid/<YOUR APPID>/apikey/<YOUR APPKEY>/q/president/format/json/start/50


Get Sentiment: sentiment = true ( Output Speed slower )


http://apipoint.samepoint.net/api/appid/<YOUR APPID>/apikey/<YOUR APPKEY>/q/president/format/json/start/0/sentiment/true


Show Abridged Content for smaller data footprint ( less bytes )for Mobile


http://apipoint.samepoint.net/api/appid/<YOUR APPID>/apikey/<YOUR APPKEY>/q/president/format/json/start/0/sentiment/true/abridged/true