Function: fetchWorksForAuthors() ​
fetchWorksForAuthors(
authors,config,researcher,onProgress?,onRateLimit?):Effect<readonlyWorksResult[],OpenAlexSearchError>
Defined in: packages/researcher-profiles/src/services/openalex.ts:90
Fetches and deduplicates works for a list of OpenAlex authors, one request per author. Calls onProgress after each author with the current count. Calls onRateLimit with the latest quota info after each page fetched.
Parameters ​
authors ​
readonly AuthorsResult[]
config ​
researcher ​
string
onProgress? ​
(authorIndex, authorTotal, page, pageTotal) => void
onRateLimit? ​
(info) => void
Returns ​
Effect<readonly WorksResult[], OpenAlexSearchError>