[ensembl-dev] Specifying return data to be JSON formatted.

Allan Kamau kamauallan at gmail.com
Fri Feb 14 14:41:52 GMT 2025


Hi Sefano,

Thank you for your speedy reply and the solutions.

The solution "
https://rest.ensembl.org/info/species?content-type=application/json" works
well for me.

Regards,
Allan.


On Fri, Feb 14, 2025 at 1:47 PM Stefano Giorgetti <sgiorgetti at ebi.ac.uk>
wrote:

> Hello Allan,
>
> The following should work
>
> https://rest.ensembl.org/info/species?content-type=application/json
>
> or
>
> curl 'https://rest.ensembl.org/info/species' -H
> 'Content-type:application/json'
>
> Further information about the endpoint can be found at the link below
>
> https://rest.ensembl.org/documentation/info/species
>
> Or asked for here :-)
>
> Cheers,
> Stefano
>
> On 14/02/2025 10:36 am, Allan Kamau wrote:
> > I would like to obtain the list of ensembl genomes via the ensembl API.
> > The URL "https://rest.ensembl.org/info/species?" currently returns
> > data in YAML format.
> > Is there a way I can specify the return data to be JSON formatted
> instead?
> >
> > -Allan.
> >
> > _______________________________________________
> > Dev mailing list    Dev at ensembl.org
> > Posting guidelines and subscribe/unsubscribe info:
> https://lists.ensembl.org/mailman/listinfo/dev_ensembl.org
> > Ensembl Blog: http://www.ensembl.info/
>
> _______________________________________________
> Dev mailing list    Dev at ensembl.org
> Posting guidelines and subscribe/unsubscribe info:
> https://lists.ensembl.org/mailman/listinfo/dev_ensembl.org
> Ensembl Blog: http://www.ensembl.info/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ensembl.org/pipermail/dev_ensembl.org/attachments/20250214/f8445abc/attachment.html>


More information about the Dev mailing list