Look up an author or book
Resolves an author or book name to the catalog IDs that search filters take. Returns up to five candidates with the author’s death year (AH) and a match score.
/catalog/lookupAuthorizationBearer token · headerrequiredAn API key from qaf.ai Settings › API.
typestringrequiredWhether the name is an author or a book.
authorbookquerystringrequiredThe name to resolve, in Arabic or English.
localestringLanguage of the candidate labels; no other is returned.
arenThe candidates for the name.
candidatesobject[]requiredUp to five candidates.
Show propertiesHide properties
objecttypestringrequiredidintegerrequiredAuthor ID, for filters.authorIds.
labelstringrequiredThe author's name in the requested locale.
deathYearAHinteger | nullrequiredThe author's death year in AH, when known.
Show propertiesHide properties
integernulldeathInexactLabelstring | nullrequiredA label for an approximate or unknown death year, when deathYearAH is missing or inexact.
Show propertiesHide properties
stringnullmatchScorenumberrequiredHow closely the name matches the query, from 0 to 1; higher is closer.
typestringrequiredidstring<uuid>requiredBook ID, for filters.bookIds.
labelstringrequiredThe book's title in the requested locale.
authorIdintegerrequiredThe author's ID, for filters.authorIds.
authorLabelstringrequiredThe author's name in the requested locale.
deathYearAHinteger | nullrequiredThe author's death year in AH, when known.
Show propertiesHide properties
integernulldeathInexactLabelstring | nullrequiredA label for an approximate or unknown death year, when deathYearAH is missing or inexact.
Show propertiesHide properties
stringnullcategoryIdintegerrequiredThe book's genre ID. Search filters take the genre's slug.
matchScorenumberrequiredHow closely the name matches the query, from 0 to 1; higher is closer.
The API key is missing, invalid or revoked.
codestringrequiredUNAUTHORIZEDstatusintegerrequiredmessagestringrequiredThe key's account can't use the API.
codestringrequiredFORBIDDENstatusintegerrequiredmessagestringrequiredA field is invalid. data.fieldErrors lists the problems by field.
codestringrequiredINPUT_VALIDATION_FAILEDstatusintegerrequiredmessagestringrequireddataobjectShow propertiesHide properties
formErrorsstring[]requiredfieldErrorsobjectrequiredToo many requests; data.reason says which limit was reached. For minute, the account's requests per minute, retry after Retry-After seconds. For week, the account's weekly search allowance, shared with the Qaf MCP server, Retry-After is the time until it resets. For invalid_keys, this address has sent too many keys that don't exist or were revoked, usually the one sent: check the key. While it lasts, a working key from the address that wasn't used in the last hour, such as a new one, can be refused too; if the key works, wait Retry-After, at most a minute, and retry once. The X-RateLimit headers describe the account's minute window, so an invalid_keys refusal, which comes before any key is known, has none.
codestringrequiredRATE_LIMITEDstatusintegerrequiredmessagestringrequireddataobjectShow propertiesHide properties
retryAfterintegerrequiredSeconds to wait.
reasonstringrequiredWhich limit was reached: minute, the account's requests per minute; week, its weekly search quota; or invalid_keys, an address that has sent too many keys that don't exist or were revoked; while it lasts, a working key from that address that wasn't used in the last hour can be refused too.
minuteweekinvalid_keysSomething went wrong on our side.
codestringrequiredINTERNAL_SERVER_ERRORstatusintegerrequiredmessagestringrequiredQaf could not complete the request in time, or a service it relies on is unavailable. Retry shortly.
codestringrequiredSERVICE_UNAVAILABLEstatusintegerrequiredmessagestringrequired