
Open Graph Creator API
Marketing
Create optimized Open Graph tags for social media sharing. Generate preview images and meta tags to improve link appearance on Facebook, Twitter, LinkedIn, and other platforms.
Authentication
All API requests require a valid API key passed in the Authorization header as a Bearer token.
Rate Limit
100 requests per minute
Endpoints
1 endpoint available
Overview
The Open Graph Creator API generates properly formatted Open Graph meta tags for your web pages. Create optimized social media previews for Facebook, Twitter, LinkedIn, and other platforms.
Generated Tags
The API generates the following Open Graph meta tags:
- og:title - The title of your page
- og:description - A description of your content
- og:url - The canonical URL of the page
- og:type - The type of content (default: website)
- og:site_name - The name of your website
- og:image - URL to the preview image
- og:image:alt - Alt text for the image
- twitter:card - Twitter card type (summary_large_image)
Image Recommendations
- Dimensions - 1200x630 pixels (1.91:1 aspect ratio)
- Format - PNG or JPG
- File size - Under 5MB for best compatibility
Use Cases
- Blog posts and articles
- Product pages for e-commerce
- Landing pages and marketing campaigns
- Portfolio projects and case studies
Endpoints
POST
/v1/tools/open-graph-creatorGenerate Open Graph meta tags
Request Body
Content-Type: application/json
| Parameter | Type | Required | Description |
|---|---|---|---|
| title | string | Required | The title for the og:title tag (recommended: 60-90 characters) |
| description | string | Required | The description for the og:description tag (recommended: 155-200 characters) |
| url | string | Required | The canonical URL of the page |
| siteName | string | Optional | The name of your website |
| imageUrl | string | Optional | URL to the Open Graph image (1200x630 recommended) |
| imageAlt | string | Optional | Alt text description for the image |
Response Example
{
"success": true,
"tags": {
"og:title": "My Awesome Article",
"og:description": "Learn about the latest trends in web development.",
"og:url": "https://example.com/article",
"og:type": "website",
"og:site_name": "Example Site",
"og:image": "https://example.com/og-image.png",
"og:image:alt": "Article preview image",
"twitter:card": "summary_large_image"
},
"html": "<meta property=\"og:title\" content=\"My Awesome Article\" />\n<meta property=\"og:description\" content=\"Learn about the latest trends in web development.\" />\n..."
}Error Codes
400
Missing required fields (title, description, url)401
Missing or invalid API key429
Rate limit exceeded500
Internal server errorCode Examples
curl -X POST https://api.opentools.ca/v1/tools/open-graph-creator \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "10 Tips for Better Web Performance",
"description": "Discover proven techniques to make your website faster and improve user experience.",
"url": "https://myblog.com/web-performance-tips",
"siteName": "My Tech Blog",
"imageUrl": "https://myblog.com/images/og-performance.png",
"imageAlt": "Web performance optimization illustration"
}'