Social Preview Image Check
Check a page's Open Graph and Twitter Card images: size, file size, format and alt text.
og-image-check Example
{
"url": "https://strale.dev"
} {
"og": {
"alt": null,
"title": "Strale — Ship AI agents faster",
"width": null,
"height": null,
"image_url": "https://pub-bb2e103a32db4e198524a2e9ed8f35b4.r2.dev/40c97463-fb0c-4144-aa8c-9db65573a574/id-preview-5c2a5484--51ddd28d-009f-48ba-9c99-c76ee3e05d53.lovable.app-1772307174433.png",
"description": "Your agent calls strale.do() and gets company data, compliance checks, financial validation — structured JSON with audit trails. 233+ capabilities, one API key."
},
"url": "https://strale.dev",
"score": 67,
"issues": [
"Missing og:image:width and og:image:height",
"Missing og:image:alt text"
],
"image_format": "png",
"twitter_card": {
"alt": null,
"type": "summary_large_image",
"image_url": "https://pub-bb2e103a32db4e198524a2e9ed8f35b4.r2.dev/40c97463-fb0c-4144-aa8c-9db65573a574/id-preview-5c2a5484--51ddd28d-009f-48ba-9c99-c76ee3e05d53.lovable.app-1772307174433.png"
},
"image_size_kb": 252,
"recommendations": [
"Add og:image:width (1200) and og:image:height (630) for faster rendering.",
"Add og:image:alt for accessibility and SEO.",
"Add twitter:image:alt for accessibility on Twitter."
]
} Inputs
| Field | Type | Required | What it is |
|---|---|---|---|
url | string | Yes | — |
Output fields
How reliably each field appears in a successful answer.
| Field | Type | Appears |
|---|---|---|
og | object | Always (present in every successful answer) |
score | number | Always (present in every successful answer) |
issues | array | Always (present in every successful answer) |
twitter_card | object | Always (present in every successful answer) |
How to call it
The same tool through each route. MCP clients reach it through Strale’s server at https://api.strale.io/mcp; the call below is what the agent sends.
# Needs an API key. max_price_cents caps what this call may cost.
curl -X POST https://api.strale.io/v1/do \
-H "Authorization: Bearer $STRALE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"capability_slug": "og-image-check",
"inputs": {
"url": "https://strale.dev"
},
"max_price_cents": 5
}' {
"tool": "strale_execute",
"arguments": {
"slug": "og-image-check",
"inputs": {
"url": "https://strale.dev"
},
"max_price_cents": 5
}
} import { Strale } from "straleio";
const strale = new Strale({ apiKey: process.env.STRALE_API_KEY! });
const result = await strale.do({
capability_slug: "og-image-check",
inputs: {
"url": "https://strale.dev"
},
max_price_cents: 5,
}); import os
from straleio import Strale, DoRequest
strale = Strale(api_key=os.environ["STRALE_API_KEY"])
result = strale.do(DoRequest(
capability_slug="og-image-check",
inputs={
"url": "https://strale.dev",
},
max_price_cents=5,
)) # No account. The first request answers 402 with the price in USDC;
# an x402 client pays it from your wallet and repeats the request.
curl -i 'https://api.strale.io/x402/v2/og-image-check?url=https%3A%2F%2Fstrale.dev' Limitations
JavaScript-generated social tags can be missed
Checks Open Graph and Twitter Card meta tags — dynamically injected OG tags via JavaScript may not be captured
What to do instead: Inspect the rendered page in a browser for Open Graph tags added by JavaScript.
Pages are limited to 16 MiB of HTML
Pages with more than 16 MiB of HTML are refused with a caller_input error naming the input field. The call is not charged, and the page is not retried through another fetch or rendering route.
Bundled checks that include it
- Competitor Read €0.20
- Page SEO Check €0.30
Related tools
- Accessibility Audit €0.30
- API Health Check €0.05
- URL Health Check €0.03