You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I notice that epmc_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 boolean hasTMAaccessionNumbers but also the accessionType, 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 api
package_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 returned
package_result |> names()
direct_api_result$resultList$result[[1]] |> unlist() |> names()
Hi @arvi1000,
You're right, the default method only returns a subset of Europe PMC data. To access all data, use the raw option. Here's an example parser for your query:
Thank you for this package, maintainers!
I notice that
epmc_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:
from the package:
from the API:
The text was updated successfully, but these errors were encountered: