# Extract structured fields from HTML XML and JSON endpoints with Xidel selectors

> Use Xidel to pull targeted values from pages, XML documents, or JSON APIs with CSS selectors, XPath, XQuery, or JSONiq expressions.

- Skill: `agentskillexchange/extract-structured-fields-from-html-xml-and-json-endpoints-w` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/extract-structured-fields-from-html-xml-and-json-endpoints-w`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/extract-structured-fields-from-html-xml-and-json-endpoints-w/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/extract-structured-fields-from-html-xml-and-json-endpoints-w

---


# Extract structured fields from HTML XML and JSON endpoints with Xidel selectors

Use Xidel to pull targeted values from pages, XML documents, or JSON APIs with CSS selectors, XPath, XQuery, or JSONiq expressions.

## Prerequisites

Xidel CLI

## Installation

Basic usage or getting-started notes:
- A simple example to return the titles of all pages linked by some starting page:
- xidel http://example.org --follow //a --extract //title
- xidel http://example.org -f //a -e //title

- Source: https://github.com/benibela/xidel
- Extracted from upstream docs: https://raw.githubusercontent.com/benibela/xidel/HEAD/README.md

## Documentation

- http://www.videlibri.de/xidel.html

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/extract-structured-fields-from-html-xml-and-json-endpoints-with-xidel-selectors/)

