FUTEF API

FUTEF API provides a search API to explore and find Wikipedia content - including faceted categories. This API is presented as a RESTful Web Service - for more background information on RESTful web services checkout Yahoo! Developer Network To use this api - you must register for an Application ID. To register for an Application ID simply send an e-mail to appid-request@futef.com. This API is available only for NON COMMERICAL - LOW VOLUME usage. For other uses, questions or feedback please contact us at api@futef.com.

REQUEST

REQUEST URLhttp://api.futef.com/api/v1
query string (required) simple keywords, phrases, field search, faceted navigation
appidstring (required)Application ID - get an an AppID send email to appid@futef.com
begin number: default 0 The starting position to return (0 based).
end number: default begin + 10 The ending positions. If end - begin < 10, then it will be truncated to begin + 10
bbox lat,lng,lat,longGive a Lat/Long bounding box that limits the results that have geo coordinates with in the resulting bounding box
func string The name of the callback function to wrap the around the JSON data.

QUERY LANGUAGE

keywordnew yorkhttp://api.futef.com/api/v1?query=new%20york&appid=7367004ee9f71de584b2caee2da324b33e9
phrases"new york" http://api.futef.com/api/v1?query=%22new%20york%22&appid=7367004ee9f71de584b2caee2da324b33e9
facetscats:[Living people]http://api.futef.com/api/v1?query=cats%3A%5BLiving%20people%5D&appid=7367004ee9f71de584b2caee2da324b33e9

"new york" baseball cats:[Living people]All of these forms can be combined into a single query.
-"new york" cats:[Living people]Additionally, there is a not operator by prepending the query term w/ -

RESPONSE

Results are return in JSON format. A object/hash is return w/ the following elements.

begin number beginning offset - everything is zero based
end number ending offset
qtime number ms to complete query
total_hits number total number of results
tokens array of strings that represent a tokenized version of the query parameter that was submitted.
records array of objects/hashes
title string Title of Wikipedia article
text string first 250 characters of the Wikipedia article
cats string list of categories - separated w/ ; - may not be present in all cases
url string URL to Wikipedia article
lat number Latitude
lng number Longitude
facets object/hash of array w/ object/hash
field-name - "cats" "cats" -> array of object/hash w/ Additional facets maybe added in the future but "cats" is currently the only one available.
term string
countnumber - estimate of items in the sub query


EXAMPLES

Update: Mon Mar 19 18:54:52 EDT 2007
©2007 FUTEF - About FUTEF - FUTEF Blog - feedback@futef.com - Wikipedia - Donate to Wikipedia - Sitemap