XPathify avatar
XPathify

Pricing

$5.00 / 1,000 urls

Go to Apify Store
XPathify

XPathify

⚡ Extract clean, structured text from any webpage with auto-generated XPath mappings. XPathify makes web scraping, testing, and automation lightning fast.

Pricing

$5.00 / 1,000 urls

Rating

0.0

(0)

Developer

Scratchy Scraper

Scratchy Scraper

Maintained by Community

Actor stats

1

Bookmarked

11

Total users

2

Monthly active users

25 days ago

Last modified

Share

🎯 XPathify

Transform any webpage into structured XPath-to-text mappings. Get all the selectors you need instantly.

What it does:

  • Fetches your target webpage
  • Generates optimized XPath expressions
  • Maps each XPath to its text content

Input

{
"url": "https://example.com"
}

Output

{
"url": "https://example.com",
"xpaths": {
"normalize-space(//title/text())": "Example Domain",
"normalize-space(//h1/text())": "Example Domain",
"normalize-space(/html/body/div/p[1]/text())": "This domain is for use in documentation examples without needing permission. Avoid use in operations.",
"normalize-space(//a/text())": "Learn more",
"//a/@href": "https://iana.org/domains/example"
}
}

Standby Mode (Real-time API)

You can also use XPathify as a real-time API for faster results.

TOKEN="REPLACE_WITH_YOUR_APIFY_TOKEN"
URL="https://example.com"
curl "https://scratchyscraper--xpathify.apify.actor?token=${TOKEN}$&url=${URL}"
# Or as a POST request with JSON body
curl -X POST https://scratchyscraper--xpathify.apify.actor \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${TOKEN}" \
-d '{"url": "https://example.com"}'

Check the documentation to know how to obtain your Apify token.

Benefits:

  • Instant response - No cold start delays
  • 📈 Auto-scaling - Handles varying request loads
  • 🔄 Persistent - Always ready to serve requests

Perfect For

🚀 Scraper Developers Stop inspecting HTML manually. Prototype faster with instant XPath discovery.

🔍 QA Engineers Catch DOM changes before they break your tests. Monitor XPath stability across versions.

⚡ Low-Code Platforms Auto-generate extractable fields from any webpage. Power Zapier, Make, or n8n workflows instantly.