Skip to main content
POST
/
v1
/
blog
/
site
/
analyze
Analyze and store the user website context
curl --request POST \
  --url https://api.yalg.ai/v1/blog/site/analyze \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "siteUrl": "https://yalg.ai"
}
'
{
  "siteUrl": "https://yalg.ai",
  "audience": "B2B creators and founders",
  "positioning": "Turn personal anecdotes into publishable content.",
  "analyzedAt": "2026-06-20T17:24:39.000Z"
}

Authorizations

x-api-key
string
header
default:yalg_live_your_api_key
required

YALG Developer API key. Send it in the x-api-key header from a server-side environment only.

Body

application/json
siteUrl
string
required
Required string length: 3 - 1000
Example:

"https://example.com"

Response

Created successfully. Analyze and store the user website context.

Stored website context for blog generation.

siteUrl
string<uri>
Example:

"https://yalg.ai"

audience
string
Example:

"B2B creators and founders"

positioning
string
Example:

"Turn personal anecdotes into publishable content."

summary
string
analyzedAt
string<date-time>
Example:

"2026-06-20T17:24:39.000Z"