Skip to main content
Glama

extract-html-fragment

Extract specific HTML content from a webpage by providing a URL and CSS selector. Ideal for retrieving targeted web elements for data processing or integration.

Instructions

Extract a specific HTML fragment from a webpage using CSS selectors

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
anchorIdNoOptional anchor ID to locate a specific fragment
bodyNoRequest body for POST requests
followRedirectsNoWhether to follow redirects
fragmentSelectorNoCSS selector for the HTML fragment to extract (when responseType is html-fragment)
headersNoHTTP headers
methodNoHTTP methodGET
selectorYesCSS selector for the HTML fragment to extract
timeoutNoRequest timeout in milliseconds
urlYesURL to fetch

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mcollina/mcp-node-fetch'

If you have feedback or need assistance with the MCP directory API, please join our Discord server