TargetMine API

InterMine framework provides several kind of  application programming interfaces (APIs) to access the data by HTTP request or programming languages including Perl, Java, Python, Ruby and JavaScript.

Examples

The simplest example is HTTP API.

Search

The following HTTP request will return the quick search results in TargetMine for the word “Alzheimer” in the JSON format.

https://targetmine.mizuguchilab.org/targetmine/service/search?q=Alzheimer

JSON: JavaScript Object Notation, see Wikipedia for more information.

Template

You can do a template query by submitting an HTTP request. An auto-generated URL could be found at each template (see the figure).

Each template contains a 'web service URL' link

You can find the link “web service URL” at the bottom left of each template.
Click on the link to get the auto-generated URL for the template.

The example here is as following.

https://targetmine.mizuguchilab.org/targetmine/service/template/results?name=Gene_Pathway&constraint1=Gene&op1=LOOKUP&value1=3633&extra1=&format=tab&size=10

In this example, the result is returned  in the tab separated value (TSV) format.

Related pages:

See also

  1. API – TargetMine
  2. Web Services – InterMine documentation
Top