Accessing data via EVA API
You can computationally access the EVA’s normalised and annotated variant data via the API. We provide endpoints for species, studies, files and variants, and our API is also integrated with the GA4GH Beacon and Variants API. You can read more about our API on our website and on Github. Some examples of API queries can be seen below:
- To fetch all the info for a variant by segment http://www.ebi.ac.uk/eva/webservices/rest/v1/variants/rs666/info?species=hsapiens_grch37
- To fetch locus and type info for a variant by RefSNP ID (RS) https://www.ebi.ac.uk/eva/webservices/identifiers/v1/clustered-variants/17870277
- To fetch all info of a study http://www.ebi.ac.uk/eva/webservices/rest/v1/studies/PRJEB4019/summary
Alternatively a swagger UI is provided (Figure 4), which documents each end point and allows users to test the EVA’s API backend via a user interface. The queried data is returned in the JSON format.