RESTful Model Access (RMA)
RESTful Model Access (RMA) is an HTTP service designed along RESTful principles to allow access to data in the Allen Institute API. Data model queries support JSON, XML and CSV formats. They can include join, filter, sort, page and eager loading of associations. RMA can also pipe results to perform compound queries and connect to data services. RMA services support JSON and XML formats.
The path to the RMA service is /api/v2/data. Other models may be substituted for Organism, such as Gene, Chromosome, or Structure. Model names are always capitalized and singular. The number following the model is a resource id. Valid result formats include JSON (.json), XML (.xml) and CSV (.csv)
Use a browser or other HTTP client to access:
Use the keyword query rather than an id to search across all resources in a model.
Use the keyword describe to retrieve information about the available associations for a model. .json format is also available.
Use the keyword enumerate to retrieve information about all available models and associations. .json format is also available.
Use the keyword query without a model or id if the needed information is specified elsewhere in the url. The part after the question mark is explained throughout this document.
JSON, XML and CSV formats are supported. For example: