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

Allan Kamau kamauallan at gmail.com
Mon Feb 17 13:55:31 GMT 2025


Hi Stefano,

The command "
https://rest.ensembl.org/info/species?content-type=application/json" seems
to return 342 genomes,
Are these all the available genomes?

Regards,
Allan.



On Fri, Feb 14, 2025 at 5:41 PM Allan Kamau <kamauallan at gmail.com> wrote:

> 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/20250217/de2211af/attachment.html>


More information about the Dev mailing list