Serverless AI SEO Content Generation

AI powered SEO content generation service that creates optimized SEO content including meta titles, descriptions, and keywords based on the provided context.

Endpoint

Generate SEO-optimized content based on context

POSThttps://api.xtartapp.com/data/seo

*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
contextstringYes2500The context to generate SEO content from
languagestringYes-The language to generate the SEO content in. Supported languages: auto, en, es, fr, de, zh, ja, ko, pt, it, ru, ar, hi
brandstringNo100Optional brand name to incorporate into the SEO content
industrystringNo100Optional industry context to help optimize the SEO content

Response

NameTypeDescription
dataobjectThe data of the SEO content generation
data.titlestringSEO-optimized meta title (50-60 characters)
data.descriptionstringCompelling meta description (150-160 characters)
data.headingsarraySuggested heading structure with levels and text
data.keywordsobjectTarget keywords for optimization, split into primary and secondary
data.urlSlugstringSEO-friendly URL slug suggestion
data.contentOutlinearrayOutline of key points to cover in the content
data.languagestringThe language code used for content generation
metadataobjectMetadata about the SEO content generation process
metadata.costnumberThe cost of the SEO content generation request ($0.001 per request)

Errors

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