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 URL | http://api.futef.com/api/v1 |
|
query | string (required) | simple keywords, phrases, field search, faceted navigation
|
|
appid | string (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,long | Give 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
| "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 | |
| count | number | - estimate of items in the sub query |
|
|
EXAMPLES
Update:
Mon Mar 19 18:54:52 EDT 2007