Skip to content

Commit

Permalink
update nsf award API endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanetteclark committed Aug 10, 2023
1 parent b894d15 commit b96cdbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/eml.R
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ eml_nsf_to_project <- function(awards, eml_version = "2.2"){
award_nums <- awards

result <- lapply(award_nums, function(x){
url <- paste0("https://api.nsf.gov/services/v1/awards.json?id=", x ,"&printFields=coPDPI,pdPIName,title")
url <- paste0("https://www.research.gov/awardapi-service/v1/awards.json?id=", x ,"&printFields=coPDPI,pdPIName,title")

t <- tryCatch(jsonlite::fromJSON(url),
error = function(j) {
Expand Down

0 comments on commit b96cdbf

Please sign in to comment.