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

NameTypeRequiredMaxDescription
textstringYes2500The text to analyze for keyword extraction
limitintegerNo-Maximum number of keywords to extract (defaults to 10)

Response

NameTypeDescription
dataarray of stringsArray of extracted keywords ordered by relevance
metadataobjectMetadata about the keyword extraction process
metadata.costnumberThe cost of the keyword extraction request

Errors

{
   "error": "string", 
   "code": "string"
}
HTTP StatusError CodeMessage
400INVALID_PAYLOADOccurs when the payload is invalid.
400INVALID_REQUESTEx.: The request is invalid.
400TEXT_KEYWORDS_EXTRACTION_ERROREx: could not extract keywords 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.