The API was developed with simplicity in mind. Utilizing the API is as simple as going to a web site.
The base URL for the API is: https://churchilllab.jax.org/foundersnps
The following parameters are required:
https://churchilllab.jax.org/foundersnps/api/search?release=2021&variant=snp&term=1:12.1Mb-12.5Mb
https://churchilllab.jax.org/foundersnps/api/search?release=2021&variant=snp&term=1:12.1Mb-12.5Mb
https://churchilllab.jax.org/foundersnps/api/search?release=2021&variant=snp&term=rs580619251
https://churchilllab.jax.org/foundersnps/api/search?release=2021&variant=snp&term=1:12.1Mb-12.5Mb&low_confidence=T
https://churchilllab.jax.org/foundersnps/api/search?release=2021&variant=snp&term=1:12.1Mb-12.5Mb&csqs=intron_variation,synonymous_variant
https://churchilllab.jax.org/foundersnps/api/search?release=2021&variant=snp&term=1:12.1Mb-12.5Mb&limit=100
https://churchilllab.jax.org/foundersnps/api/search?release=2021&variant=snp&term=1:12.1Mb-12.5Mb&limit=100&compact=T
The API response is in JSON format with the following fields being returned:
curl "https://churchilllab.jax.org/foundersnps/api/search?release=2021&variant=snps&term=1:10.2Mb-10.3Mb"
import requests resp = requests.get('https://churchilllab.jax.org/foundersnps/api/search?release=2021&variant=snp&term=10:3Mb-10.4Mb&limit=5') if resp.status_code == 200: json = resp.json() message = json['message'] request = json['request'] results = json['result'] print(f'message = {message}') print('request=', request) for r in results['matches']: print(r)