Closed briri closed 1 year ago
It looks like we can use a combination of the PI name, some project keywords and a date range to find Award information for the first 3 funders:
curl -X POST "https://api.reporter.nih.gov/v2/projects/search" -H "accept: application/json" -H "Content-Type: application/json" -d "{ criteria: { use_relevance: true, fiscal_years: [2022], pi_names: [{ last_name: \"Bethard\" }] }, offset: 0, limit: 25, sort_field: \"project_start_date\", sort_order: \"desc\"}"
curl "https://api.nsf.gov/services/v1/awards.json?pdPIName=\%22peter+h+wiebe\%22&dateStart=01/01/2020&dateEnd=12/30/2023&keyword=plankton+survey" -H "accept: application/json"
curl "https://api.crossref.org/works?filter=type:grant,funder:10.13039/100000015,from-awarded-date:2020-01-01,until-awarded-date:2020-12-31&rows=50&query=foo" -H "Accept: application/json"
Hook into the NSF and NIH APIs to discover information about a grant
See Dryad examples: NIH - https://github.com/columbia-it/covid-infocommons/blob/main/harvester/nih_harvester.py NSF - https://github.com/columbia-it/covid-infocommons/blob/main/harvester/nsf_harvester.py
This work should be done in a Lambda that can be triggered by Event Bridge or called via the API (in the case of the UI trying to pre-populate info ... for example when user selects NIH as the funder, display a search for the Grant/Award ID, if the user selects one, pull relevant info from the API and pre-populate the page if possible)