Skip to content
Back to skills

Templates

ASecurity

Use when code needs structured data (JSON fields) from a website through UnblockingAPI, for example search results, listings, products, prices or company records, or when the user asks about UnblockingAPI templates. Covers finding a published template for a URL, its output shape, calling it from an app, pinning versions, handling parse errors and building a new template in the editor.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 14, 2026
ai-agentsjavascriptpythongojavaapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 14, 2026

npx -y skills add unblockingapi/mcp --skill templates --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Templates?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Templates
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/unblockingapi-templates/badge)](https://www.skillsdirectory.com/skills/unblockingapi-templates)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: templates
description: Use when code needs structured data (JSON fields) from a website through UnblockingAPI, for example search results, listings, products, prices or company records, or when the user asks about UnblockingAPI templates. Covers finding a published template for a URL, its output shape, calling it from an app, pinning versions, handling parse errors and building a new template in the editor.
---

# UnblockingAPI templates in an app

A template parses one kind of page into named fields. Passing its reference as
`template` makes `/unblock` return `response_format: "json"` with `response` as
an object, so the app stores fields instead of parsing HTML.

Read `references/templates.md` for the endpoints, an output example and the
calling code.

## Workflow

1. **Find one for the exact URL the app will fetch.** In this conversation call
   `find_templates` with that URL; it searches every published template and
   returns the fields each produces. Without the tool, read
   `GET https://api.unblockingapi.com/templates.json?url=<url>` (no key).
2. **Get the real output shape** before writing types or a schema:
   `GET https://app.unblockingapi.com/public/v1/templates/<handle>/<name>`
   returns `response_skeleton` and `field_tree`. Write the app's types from that,
   not from a guess.
3. **Call it with a pinned version** in production: `template: "handle/name@3"`.
   `template_version` in the response says which version answered. A template
   forces its own render and wait settings, so do not add wait options to it.
4. **Handle `parse_error: true`.** When the site changed and the template's
   parser failed, the response is HTML instead of JSON. Log it, keep the last
   good data, and do not write the HTML into JSON columns.
5. **No template for the site?** Either parse the HTML in code (cheerio or
   linkedom in JavaScript, BeautifulSoup or selectolax in Python, selecting the
   repeated item element), or suggest the user builds one without code at
   https://editor.unblockingapi.com: load the page, click the fields, publish.
   A template can be repaired in the editor when the site changes, without
   redeploying the app, which is usually the better choice for a site the app
   depends on.

Templates are listed in the template library at https://unblockingapi.com/templates.

Files in this skill

  • SKILL.md2.3 KB
  • references/templates.md2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.