Identify names in an article
Extract every company and person an article names and identify each one
An article lookup reads one article, extracts every company and person it
names, and identifies each name as POST /v1/lookup would, with the article
as the source. It shares the lookup’s plan requirement.
- Start the job with
POST /v1/lookup-jobsand a body holdingsourceUrl,sourceNewsId, or both. The call returns202with ajobId. Sending the same article again soon returns the earlier job. - Read the job with
GET /v1/lookup-jobs/{jobId}untilstateisCOMPLETEDorFAILED. Only the caller that started the job can read it. - Act on each entry in
mention. Every entry has thenameas the article writes it and amentionTypeofCOMPANYorPERSON:identificationis the lookup answer, read exactly as in Act on the answer.shellis set when the answer isNO_MATCHand the job created a hidden placeholder record for the name. The job creates one only when the article and a live page on another site both name the subject.shellholds itsentityIdorpersonId; creating it costs nothing, and you can send it straight to a research update.shellDetailsays, in one sentence, why no placeholder was created for aNO_MATCHname.failureReasonreplacesidentificationwhen a name could not be identified. Send that name alone toPOST /v1/lookup.
When the job is accepted it spends one natural-search quota call for each name
it may identify, up to its per-article limit. A repeat of the same article that
returns the earlier job spends nothing. The job answers 402 and 429 under
the same rules as a single lookup.
Example
Set ARTICLE_URL to the article’s address and start a job:
Read the job with the returned jobId until state is COMPLETED:
Collect the ids from each mention’s match.owner or shell, then
queue research on the ones worth updating.