I would like to know if I can convert PMID to NIHMSID, if there is no PMCID associated with that PMID and retrieve both of them if PMCID exists. I want to do this programmatically may be using eutils if possible. I know about this link http://www.ncbi.nlm.nih.gov/pmc/pmctopmid/ that will do the work but its not programmatically. I also tried the services by PMC http://www.ncbi.nlm.nih.gov/pmc/tools/oai/#examples but not much of success.
So my questions, again, is I have PMIDs and want to find it there exists a NIHMSID and PMCID for it and retrieve them. If PMCID has not yet been assigned then there should be a NIHMSID, retrieve it. For example I have the following two ids:
21707345
23482678
Has anyone tried anything similar to this before?
@Neilfws: Thank you so much for this direction. I didn't know how to move forward with my question. I also tried to put this question in Stackoverflow with possibility of webscraping but, no one replied and I was clueless how to do it with scrappy and other libraries in python. I was trying to get the query link to convert these ids, but not much of success.
Atleast in this direction I can start working. Thanks, again, a ton for giving me this direction.
Happy to help. Someone from NCBI commented on my blog post to say that in fact there is an undocumented web service for this task. I think you will find their comment helpful.
I think perhaps you should look at the Public Access Compliance Monitor for what you are trying to do. You can get more information about it on the NIH Public Access page.
As I commented on Neilfws' blog, we are coming out with a new web service for ID conversions - it should be deployed in a couple of weeks, and when it is released, you'll be able to find a link to it from the pmctopmid page.