Serverless AI Entity Extraction

AI powered named entities extraction from text such as people, address, phone number and many more. Only your imagination is the limit. Based on a content, you can extract entities and use them for your own purposes.

Endpoint

Extract entities from text such as people, address, phone number and many more.

POSThttps://api.xtartapp.com/text/entity-extraction

*Authentication

You must use a Bearer token provided by the dashboard to use for authentication. Add the token to the Authorization header.

Request body

NameTypeRequiredMaxDescription
textstringYes2 500The text to analyze
entitiesarrayYes10The entities to extract from the text.
entities[].keystringYes25The key of the entity to extract from the text. Must be alphanumeric with underscores only (no spaces or special characters). Ex: PERSON, PHONE_NUMBER, etc.
entities[].descriptionstringYes100The description of the entity to extract from the text. Must be a short and concise description of the entity.

Response

NameTypeDescription
dataobjectThe data of the entities extracted from the text
data.<key>stringThe keys you specified in the entities array
data.<value>stringThe extracted values corresponding to the keys you specified in the entities array
metadataobjectMetadata about the entity extraction process
metadata.costnumberThe cost of the entity extraction request

Errors

{
   "error": "string", 
   "code": "string"
}
HTTP StatusError CodeMessage
400INVALID_PAYLOADOccurs when the payload is invalid.
400INVALID_REQUESTEx.: The request is invalid.
400TEXT_ENTITY_EXTRACTION_ERROREx: could not extract entities from the text | parsing error
400HARM_CONTENTEx.: The content is harmful and cannot be processed.
400INSUFFICIENT_BALANCEThe user has insufficient balance
401UNAUTHORIZEDEx.: The token is invalid.
429TOO_MANY_REQUESTSEx.: The request limit has been reached.