Question: ERROR with OMIM API: Can't include more than one parameter via curl
0
gravatar for jorgeduran
5 months ago by
jorgeduran0
jorgeduran0 wrote:

Hello everyone,

Since I got access to OMIM API for educational purposes I have been struggling with it while trying to use it via curl command.

I am trying to access a specific entry via my web browser using this URL: https://api.omim.org/api/entry?mimNumber=109400&include=text&format=python&apiKey=xxxxxxx with the key they have provided to me and I get exactly what I am looking for.

The problem comes when I try to open it via command line with curl (also wget is failing due to certificate authentication issues). If I do not include other parameters different than the mimNumber I get the title and other info which is not enough informative, but when I include the other parameters, it gives the same information and it stops waiting for some extra instructions. Could anyone explain why this happen and what can I do to solve it?

I leave you here the specific command I use:

curl --header ApiKey:xxxxxxxxx https://api.omim.org/api/entry?mimNumber=109400&include=text&format=python

Thank you, I will wait for your answers!

omim terminal unix curl api • 148 views
ADD COMMENTlink written 5 months ago by jorgeduran0
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1363 users visited in the last hour