Extract web data, capture screenshots, scrape content, and generate AI images via OpenGraph.io. Use when working with URLs (unfurling, previews, metadata), capturing webpage screenshots, scraping HTML content, asking questions about webpages, or generating images (diagrams, icons, social cards, QR codes). Triggers: 'get the OG tags', 'screenshot this page', 'scrape this URL', 'generate a diagram', 'create a social card', 'what does this page say about'.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install opengraph-io-skill或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install opengraph-io-skill⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/opengraph-io-skill/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: opengraph-io version: 1.4.0 description: "Extract web data, capture screenshots, scrape content, and generate AI images via OpenGraph.io. Use when working with URLs (unfurling, previews, metadata), capturing webpage screenshots, scraping HTML content, asking questions about webpages, or generating images (diagrams, icons, social cards, QR codes). Triggers: 'get the OG tags', 'screenshot this page', 'scrape this URL', 'generate a diagram', 'create a social card', 'what does this page say about'." homepage: https://www.opengraph.io metadata: {"clawdbot":{"emoji":"🔗","requires":{"bins":["curl"],"env":["OPENGRAPH_APP_ID"]},"primaryEnv":"OPENGRAPH_APP_ID","install":[{"id":"mcp","kind":"npm","package":"opengraph-io-mcp","global":true,"bins":["opengraph-io-mcp"],"label":"Install MCP server (optional, for other AI clients)"}]}} ---
!OpenGraph.io - Extract, Screenshot, Scrape, Query, Generate
Extract web data, capture screenshots, and generate AI-powered images via OpenGraph.io APIs.
> 🤖 AI Agents: For complete parameter docs and patterns, also read references/for-ai-agents.md.
---
| Need | Endpoint | |------|----------| | Meta tags / link preview data | GET /site/{url} | | Raw HTML content | GET /scrape/{url} (add use_proxy=true if geo-blocked) | | Specific elements (h1, h2, p) | GET /extract/{url}?html_elements=h1,h2,p | | AI answer about the page | POST /query/{url} ⚠️ paid | | Visual screenshot | GET /screenshot/{url} |
| Need | Settings | |------|----------| | Technical diagram | kind: "diagram" — use diagramCode + diagramFormat for control | | App icon/logo | kind: "icon" — set transparent: true | | Social card (OG/Twitter) | kind: "social-card" — use aspectRatio: "og-image" | | Basic QR code | kind: "qr-code" | | Premium QR marketing card | kind: "illustration" — describe full design in prompt | | General illustration | kind: "illustration" |
Basic (kind: "qr-code"): Just the functional QR code.
Premium (kind: "illustration"): Full marketing asset with QR embedded in designed composition (gradients, 3D elements, CTAs, device mockups). Example prompt:
"Premium marketing card with QR code for https://myapp.com, cosmic purple gradient
with floating 3D spheres, glowing accents, 'SCAN TO DOWNLOAD' call-to-action"
diagramCode + diagramFormat for reliable syntax (bypasses AI generation)outputStyle: "standard" for structure-critical diagrams (premium may alter layout)"graph LR A-->B make it pretty" will fail---
| Feature | Free Tier | Paid Plans | |---------|-----------|------------| | Site/Unfurl | ✅ 100/month | Unlimited | | Screenshot | ✅ 100/month | Unlimited | | Scrape | ✅ 100/month | Unlimited | | Extract | ✅ 100/month | Unlimited | | Query (AI) | ❌ | ✅ | | Image Generation | ✅ 4/month | Unlimited |
> 💡 Try image generation free! Get 4 premium image generations per month on the free plan — no credit card required.
Sign up at dashboard.opengraph.io
Option A: Clawdbot config (recommended)
// ~/.clawdbot/clawdbot.json
{
skills: {
entries: {
"opengraph-io": {
apiKey: "YOUR_APP_ID"
}
}
}
}
Option B: Environment variable
export OPENGRAPH_APP_ID="YOUR_APP_ID"
---
Use curl with the OPENGRAPH_APP_ID environment variable. Base URL: https://opengraph.io/api/1.1/
# Get OG tags from a URL
curl -s "https://opengraph.io/api/1.1/site/$(echo -n 'https://example.com' | jq -sRr @uri)?app_id=${OPENGRAPH_APP_ID}"
Response includes hybridGraph.title, hybridGraph.description, hybridGraph.image, etc.
# Capture screenshot (dimensions: sm, md, lg, xl)
curl -s "https://opengraph.io/api/1.1/screenshot/$(echo -n 'https://example.com' | jq -sRr @uri)?app_id=${OPENGRAPH_APP_ID}&dimensions=lg"
Response: { "screenshotUrl": "https://..." }
# Fetch rendered HTML (with optional proxy)
curl -s "https://opengraph.io/api/1.1/scrape/$(echo -n 'https://example.com' | jq -sRr @uri)?app_id=${OPENGRAPH_APP_ID}&use_proxy=true"
# Pull h1, h2, p tags
curl -s "https://opengraph.io/api/1.1/extract/$(echo -n 'https://example.com' | jq -sRr @uri)?app_id=${OPENGRAPH_APP_ID}&html_elements=h1,h2,p"
curl -s -X POST "https://opengraph.io/api/1.1/query/$(echo -n 'https://example.com' | jq -sRr @uri)?app_id=${OPENGRAPH_APP_ID}" \
-H "Content-Type: application/json" \
-d '{"query": "What services does this company offer?"}'
---
Base URL: https://opengraph.io/image-agent/
SESSION=$(curl -s -X POST "https://opengraph.io/image-agent/sessions?app_id=${OPENGRAPH_APP_ID}" \
-H "Content-Type: application/json" \
-d '{"name": "my-session"}')
SESSION_ID=$(echo $SESSION | jq -r '.sessionId')
curl -s -X POST "https://opengraph.io/image-agent/sessions/${SESSION_ID}/generate?app_id=${OPENGRAPH_APP_ID}" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A beautiful QR code linking to https://example.com with modern gradient design",
"kind": "qr-code",
"aspectRatio": "square",
"quality": "high"
}'
Image kinds: illustration, diagram, icon, social-card, qr-code
Style presets: github-dark, vercel, stripe, neon-cyber, pastel, minimal-mono
Aspect ratios: square, og-image (1200×630), twitter-card, instagram-story, etc.
ASSET_ID="<from-generate-response>"
curl -s "https://opengraph.io/image-agent/assets/${ASSET_ID}/file?app_id=${OPENGRAPH_APP_ID}" -o output.png
curl -s -X POST "https://opengraph.io/image-agent/sessions/${SESSION_ID}/iterate?app_id=${OPENGRAPH_APP_ID}" \
-H "Content-Type: application/json" \
-d '{
"assetId": "<previous-asset-id>",
"prompt": "Change the background to blue"
}'
---
When users ask in natural language, translate to the appropriate API call:
| User says | API to use | |-----------|------------| | "Get the OG tags from URL" | GET /site/{url} | | "Screenshot this page" | GET /screenshot/{url} | | "Scrape the HTML from URL" | GET /scrape/{url} | | "What does this page say about X?" | POST /query/{url} | | "Generate a QR code for URL" | POST /image-agent/sessions/{id}/generate with kind: "qr-code" | | "Create a premium QR marketing card" | POST /image-agent/sessions/{id}/generate with kind: "illustration" + design in prompt | | "Create a social card for my blog" | POST /image-agent/sessions/{id}/generate with kind: "social-card" | | "Make an architecture diagram" | POST /image-agent/sessions/{id}/generate with kind: "diagram" |
Basic QR Code (kind: "qr-code"): Generates just the functional QR code with minimal styling.
Premium QR Marketing Card (kind: "illustration"): Generates a complete marketing asset with the QR code embedded in a professionally designed composition - gradients, 3D elements, CTAs, device mockups, etc.
...
安装 Opengraph Io 后,可以对 AI 说这些话来触发它
Help me get started with Opengraph Io
Explains what Opengraph Io does, walks through the setup, and runs a quick demo based on your current project
Use Opengraph Io to extract web data, capture screenshots, scrape content, and generate...
Invokes Opengraph Io with the right parameters and returns the result directly in the conversation
What can I do with Opengraph Io in my data & analytics workflow?
Lists the top use cases for Opengraph Io, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/opengraph-io-skill/ 目录(个人级,所有项目可用),或 .claude/skills/opengraph-io-skill/(项目级)。重启 AI 客户端后,用 /opengraph-io-skill 主动调用,或让 AI 根据上下文自动发现并使用。
Opengraph Io 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Opengraph Io 可免费安装使用。请查阅仓库了解许可证信息。
Extract web data, capture screenshots, scrape content, and generate AI images via OpenGraph.io. Use when working with URLs (unfurling, previews, metadata), capturing webpage screenshots, scraping HTML content, asking questions about webpages, or generating images (diagrams, icons, social cards, QR codes). Triggers: 'get the OG tags', 'screenshot this page', 'scrape this URL', 'generate a diagram', 'create a social card', 'what does this page say about'.
Automate my data & analytics tasks using Opengraph Io
Identifies repetitive steps in your workflow and sets up Opengraph Io to handle them automatically
Opengraph Io 属于「Data & Analytics」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。