Serverless AI Keyword Extraction
AI powered keyword extraction from text. Extract the most relevant keywords from content automatically for improved search functionality, content indexing, and SEO optimization.
Endpoint
Extract relevant keywords from text content.
POSThttps://api.xtartapp.com/text/keywords-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
Name | Type | Required | Max | Description |
---|---|---|---|---|
text | string | Yes | 2500 | The text to analyze for keyword extraction |
limit | integer | No | - | Maximum number of keywords to extract (defaults to 10) |
Response
Name | Type | Description |
---|---|---|
data | array of strings | Array of extracted keywords ordered by relevance |
metadata | object | Metadata about the keyword extraction process |
metadata.cost | number | The cost of the keyword extraction request |
Errors
{
"error": "string",
"code": "string"
}
HTTP Status | Error Code | Message |
---|---|---|
400 | INVALID_PAYLOAD | Occurs when the payload is invalid. |
400 | INVALID_REQUEST | Ex.: The request is invalid. |
400 | TEXT_KEYWORDS_EXTRACTION_ERROR | Ex: could not extract keywords from the text | parsing error |
400 | HARM_CONTENT | Ex.: The content is harmful and cannot be processed. |
400 | INSUFFICIENT_BALANCE | The user has insufficient balance |
401 | UNAUTHORIZED | Ex.: The token is invalid. |
429 | TOO_MANY_REQUESTS | Ex.: The request limit has been reached. |