This is the RESTful API for the straight-street.com symbol set. It allows programs to search and access symbols as users can using the interactive gallery web page.
A test web app is available for exploring the api and provides an example of javascript client-side access.
All symbols have a name and may have multiple tags associated with them. Names and tag names may contain spaces.
| http://straight-street.com/api/symbols/EN | all symbols |
| http://straight-street.com/api/symbols/EN/{text} | all symbols with a name or tag that includes 'text' (space delimited) |
| http://straight-street.com/api/symbol/EN/{name} | single symbol with name of 'name' |
| http://straight-street.com/api/tags/EN | all tags |
| http://straight-street.com/api/tags/EN/{text} | all tags attached to symbols of with 'text' in their name |
| http://straight-street.com/api/tag/EN/{name} | single tag of name |
| http://straight-street.com/api/usage | Usage information - this page |
| ?appid=example.com | Required application id e.g. domain. 5 to 25 characters |
| ?page=n | Optional page n if multiple results returned (1st page is 0) |
| ?pagesize=n | Optional number of items in a page if multiple results returned. Max is 20, default is 15 |
| ?callback=func | Optional function call support for cross domain access (AKA JSONP) |
Responses are JSON but the mime type is text/plain so they can be viewed in browser. They include the related symbol or tag names plus associated URLs into the api. The URLs for various version of the symbol image are also returned.
The following links demostrate the API (appid is not shown for simplicity).
None.