iSnare Answers
Get real answers from a community of experts...
Wordpress Plugin API and Widgets How to Earn? Ask a Question

API Documentation and Examples

Welcome to iSnare Answers' Application Program Interface or API documentation section. Our API is a restful API with an endpoint URL located at https://www.isnare.org/api/v1/. For API key creation and retrieval, please refer to this page.

GET /login/

PARAMETER DESCRIPTION & DETAILS
key
required
The API key.
email
required
The email address of the API user.
password
required
The password of the API user.

Example Request

GET https://www.isnare.org/api/v1/login/?email=<email>&password=<password>&key=<api_key>

Example Response

<isnare><response>Login Successful</response></isnare>

POST /register/

PARAMETER DESCRIPTION & DETAILS
key
required
The API key.
email
required
The user's email address.
password
required
The user's password.
name
required
The user's complete name.
address
required
The user's address.
website
required
The user's website url.
blog
required
The user's blog url.
biography
required
The user's short self-biography.

Example Request

POST https://www.isnare.org/api/v1/register/

Example Response

<isnare><response>Registration Successful</response></isnare>

POST /ask/

PARAMETER DESCRIPTION & DETAILS
key
required
The API key.
userid
required
The askers user ID, retrieved from /profile/.
title
required
The question title.
category
required
The question category. Possible values in []: Arts and Humanities [1], Beauty and Style [2], Business and Finance [3], Cars and Transportation [4], Computers and Internet [5], Consumer Electronics [6], Dining Out [7], Education and Reference [8], Entertainment and Music [9], Environment [10], Travel [11], Sports [12], Society and Culture [13], Social Science [14], Science and Mathematics [15], Pregnancy and Parenting [16], Politics and Government [17], Pets [18], News and Events [19], Local Businesses [20], Home and Garden [21], Health [22], Games and Recreation [23], Food and Drink [24], Family and Relationships [25], Writing and Speaking [26], Legal [27], General [28]
question
required
The question. All questions must have a minimum of 4 words to be posted.

Example Request

POST https://www.isnare.org/api/v1/ask/

Example Response

<isnare><response>Question Posted</response></isnare>

GET /search/

PARAMETER DESCRIPTION & DETAILS
key
required
The API key.
query
required
The query or the set of keywords in text to search.
type
required
The haystack type for the search to run on. Possible values: 'questions', 'answers', and 'users'
records
optional
Integer parameter value. The number of records limit per page query. Default value is 10.
page
optional
Integer parameter value. The current records per page of the search results. Default value is 1.

Example Request

GET https://www.isnare.org/api/v1/search/

Example Response

For search types: questions, answers

<isnare><response><meta><records>8</records><time>0.09</time></meta>
<results><title><![CDATA[Lorem de plum...]]></title><url>https://www.isnare.org/question/12/lorem-de-plum/</url><category>General</category><status>Published</status><votes>5</votes></result>...
...
</results></response></isnare>

For search types: users

<isnare><response><meta><records>8</records><time>0.09</time></meta><results>
<result><userid>15</userid><name>My Name</name><isactive>Yes</isactive></result>...
...
</results></response></isnare>

GET /profile/

PARAMETER DESCRIPTION & DETAILS
key
required
The API key.
email
required
The user's or asker's email address.

Example Request

GET https://www.isnare.org/api/v1/profile/

Example Response

<isnare><response>
<user><userid>15</userid><email>name@example.com</email><name>My Name</name><website>http://www.example.com</website><blog>http://blog.example.com</blog><biography><![CDATA[Lorem de plum...]]></biography><points>100</points><isactive>Yes</isactive></user>
</response></isnare>

Top
About Experts Register Login Tutorials Videos Badges API & Widgets Sitemap Privacy Terms Contact

2015 — iSnare Answers — Some Q&A were taken from StackExchange® Network — All rights reserved world-wide.

iSnare Answers ver. 1.34-beta — iSnare Answers on Facebook — Page rendered in 0.0317 seconds — There are 7 users online now. — Licensed under CC BY-ND 3.0.