- Notifications
You must be signed in to change notification settings - Fork8
Open
Description
Thank you for this package, maintainers!
I notice thatepmc_search doesn't return some of the useful fields that are available in the API. I think it would would be valuable to return all fields. For example, the API returns both the booleanhasTMAaccessionNumbers but also theaccessionType, while the package returns only the former.
Example of different fields returned:
library(europepmc)library(httr)# get results for one id from the package and the apipackage_result <- epmc_search("PMC10669250")direct_api_result <- GET('https://www.ebi.ac.uk/europepmc/webservices/rest/search?', query = list(query='PMC10669250', resultType='lite', format='json') ) |> content()# compare fields returnedpackage_result |> names()direct_api_result$resultList$result[[1]] |> unlist() |> names()from the package:
[1] "id" "source" "pmcid" "title" "authorString" "journalTitle" "issue" [8] "journalVolume" "pubYear" "journalIssn" "pubType" "isOpenAccess" "inEPMC" "inPMC" [15] "hasPDF" "hasBook" "hasSuppl" "citedByCount" "hasReferences" "hasTextMinedTerms" "hasDbCrossReferences" [22] "hasLabsLinks" "hasTMAccessionNumbers" "firstIndexDate" "firstPublicationDate"from the API:
[1] "id" "source" "pmcid" "fullTextIdList.fullTextId" [5] "title" "authorString" "journalTitle" "issue" [9] "journalVolume" "pubYear" "journalIssn" "pubType" [13] "isOpenAccess" "inEPMC" "inPMC" "hasPDF" [17] "hasBook" "hasSuppl" "citedByCount" "hasReferences" [21] "hasTextMinedTerms" "hasDbCrossReferences" "hasLabsLinks" "hasTMAccessionNumbers" [25] "tmAccessionTypeList.accessionType" "firstIndexDate" "firstPublicationDate"Metadata
Metadata
Assignees
Labels
No labels