Metab2MeSH Web Service Guide

Base URL
http://metab2mesh.ncibi.org/fetch?

URL Parameters

compound
A compound name.

mesh
MeSH is a Medical Subject Headings (MeSH) descriptor.

limit
Optional. Limit sets the maximum number of returned results; it defaults to 1000 if not set.

publimit
Optional. Publimit sets the maximum number of returned publications; it defaults to 250 if not set. Set publimit to 0 to get all publications.

tool
Optional. Tool is a string with no internal spaces that identifies the resource using the service. Inclusion of this parameter allows us to track usage of the service.

email
Optional. Email associates an email address with the request. Inclusion of this parameter allows us to contact users if there are problems or if the software interface changes.

Examples
http://metab2mesh.ncibi.org/fetch?compound=methylmalonic+acid
http://metab2mesh.ncibi.org/fetch?compound=methylmalonic+acid&publimit=100
http://metab2mesh.ncibi.org/fetch?mesh=diabetes+mellitus

Output
The XML returned is divided into two sections. The “Request” section echos the input parameters and the values of unset parameters. The “Response” section holds the data from the query. The result set returned is ordered by the p-value of the Fisher’s Exact Test.

Sample Code
Perl Example - This example PERL script will execute a simple batch query to the Metab2MeSH Web Service using compound names from stdin or a file.