Serverless AI Web Content Search

AI powered web scraping and search service that extracts and finds the most relevant content from a webpage based on a search query.

Endpoint

Extract and search through web content using AI-powered semantic search

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

*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
querystringYes500The search query to find relevant content on the webpage
urlstringYes500The URL of the webpage to scrape and search

Response

NameTypeDescription
dataobjectThe data returned from the web content search
data.responsestringThe summary of the content that answers the USER INPUT
data.thresholdnumberThe threshold of the content that answers the USER INPUT
metadataobjectMetadata about the web search process
metadata.costnumberThe cost of the web search request (fixed at $0.002 per request)
metadata.tokensnumberNumber of tokens used in the operation

Errors

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