Features
- Fetch and parse any public webpage
- Extract title and body text from HTML
- Generate topic tags using Workers AI (e.g. Llama 3.1)
- Sub-second responses on the edge
- Accepts full URLs or hostnames (e.g.
https://cloudflare.comorexample.com)
API Reference
GET /tags
Generate topic tags for any webpage.The webpage URL or hostname to tag. Use
http:// or https:// for full URLs, or a bare hostname like example.com.Response
An array of topic tags generated from the page content.
Example Request
Example Response
Error Responses
Human-readable error message.
Machine-readable error code.
Deployment
One-Click Deploy
Cloudflare Features Used
- Workers — Serverless execution environment
- Workers AI — Run LLMs on the edge with the
AIbinding - Fetch API — HTTP client for fetching webpages
Use Cases
- Content tagging — Auto-tag articles or bookmarks by topic
- SEO and discovery — Suggest categories or related topics from page content
- Link previews — Enrich shared links with topic tags
- Research and curation — Quickly label pages by theme
Limitations
- JavaScript-heavy sites — Only static HTML is fetched; client-rendered content is not executed
- Workers AI limits — Subject to Workers AI usage limits by plan
- Fetch and size limits — Same constraints as other URL-based experiments (timeout, HTML size cap)