Website metadata API for Python — extract title, description and OpenGraph tags (og:title, og:image) from any URL. Free, stdlib-fast.
site-metadata-api pulls a page's <title>, meta description and og:* tags without a browser — pure Python, instant. For JS-rendered pages there's metadata_js(), which renders through Keiro stealth browsers first.
pip install site-metadata-api
# no API key needed for the free stdlib pathfrom site_metadata_api import metadata
m = metadata("https://github.com")
print(m.get("og:title"), "|", m.get("description")){"og:title": "GitHub: Let's build from here",
"description": "GitHub is where people build software...",
"og:image": "https://github.githubassets.com/..."}metadata(url)— stdlib-only, zero cost, instantmetadata_js(url)— stealth-rendered for JS sites- og:title / og:image / description for link previews
- Link-preview cards, SEO audits, bookmark managers
metadata(url) — one call returns title, description and og:image. No BeautifulSoup boilerplate.
metadata() reads raw HTML; metadata_js() renders the page in a stealth browser first for SPAs.
The stdlib path is completely free. The JS path needs a Keiro key (free tier available).
Link preview cards (Slack-style), SEO title/description audits, or metadata for a million URLs in a batch.
They parse fine but can't render JS sites — SPAs return empty tags. site-metadata-api covers both paths in one package.
Part of the Keiro free-tool family — every package owns a different Google query:
- google-serp-api
- free-web-search
- google-trends-api
- google-maps-scraper
- google-autocomplete-api
- google-news-api
- free-rank-checker
- reddit-search-api
- web-crawler-free
- keyword-volume-api
- youtube-search-api
- price-tracker-api
- wayback-finder
- scholar-search-api
- email-finder-api
Requires a Keiro API key — site-metadata-api is powered by the Keiro API, which handles the stealth searching. Grab a free key at keirolabs.cloud — 30 seconds, no credit card, free credits to start.