About this endpoint
What it does
Extracts named entities from the provided text and identifies their type, such as people, locations, and organizations.
Query Parameter(s)
| Attribute | Type | Description |
|---|---|---|
| text | String | The text from which entities should be extracted. Maximum length: 2,000 characters for Latin-script text (about 800 for other scripts, because the text is sent in the URL). |
Response
Returns a JSON object containing an entities array. Each entity includes its type, extracted value, position in the original text, and an optional image.
| Parameter | Type | Description |
|---|---|---|
| entities | Object Array | List of entities extracted from the provided text. |
| entities[].type | String | Type of the extracted entity, such as PER for a person or LOC for a location. |
| entities[].value | String | The text identified as an entity. |
| entities[].start_position | Integer | Starting character position of the entity in the input text. |
| entities[].end_position | Integer | Ending character position of the entity in the input text. |
| entities[].image | String | Image URL associated with the entity, if available. |



