Meta Tag Generator API
Generate HTML <head> tags for SEO and social sharing (title, description, canonical, robots, Open Graph, Twitter card), with length advice.
POST /api/v1/tools/meta-tag-generatorMCP meta_tag_generatorWeb & SEOGenerate SEO meta tags, Open Graph and Twitter card tags for your page head, safely HTML-escaped, with length guidance and a Google search result preview.
Input
Send these as a JSON object. Unknown fields are rejected.
- title
- Page title; 50 to 60 characters is ideal. (string, up to 300 characters, required)
- description
- Meta description; 120 to 160 characters is ideal. (string, up to 1000 characters)
- canonicalUrl
- Absolute canonical URL of the page. (string, up to 2048 characters)
- imageUrl
- Absolute URL of the social share image (1200×630 recommended). (string, up to 2048 characters)
- siteName
- Site name for og:site_name. (string, up to 200 characters)
- type
- Open Graph type. (string, one of website, article, product, profile, video.other, book, default "website")
- twitterHandle
- X/Twitter handle for twitter:site, with or without @. (string, up to 16 characters)
- index
- Allow search engines to index the page (false adds noindex). (boolean, default true)
- follow
- Allow search engines to follow links (false adds nofollow). (boolean, default true)
- themeColour
- Browser theme colour as hex, e.g. #0f766e. (string, up to 9 characters)
- author
- Author name. (string, up to 200 characters)
- language
- Language tag such as en-GB, used for og:locale. (string, up to 10 characters)
curl https://pithlab.com/api/v1/tools/meta-tag-generator \n -H "Authorization: Bearer $PITHLAB_KEY" \n -H "Content-Type: application/json" \n -d '{"title":"Handmade Oak Furniture | Northwood Studio","description":"Solid oak tables, chairs and shelving, made to order in our Yorkshire workshop and delivered across the UK.","canonicalUrl":"https://northwood.example/","imageUrl":"https://northwood.example/og.jpg","siteName":"Northwood Studio"}'