Image Inventory + Anchor Text Frequency: Two More x402 APIs for AI Agents Building on URLs
Two new $0.0005 USDC endpoints on epson-rpm-america-satisfy.trycloudflare.com extend the URL-metadata catalog to 40 paid routes. Both are useful for AI agents building link unfurlers, accessibility audits, SEO crawlers, and content-quality scoring.
GET /api/image-inventory?url=<URL> returns every <img>, <picture>, <source>, <svg>, <canvas>, <video>, and <audio> element on the page, with per-element classification:
-
format_counts— AVIF / WebP / HEIC / HEIF / PNG / JPG / GIF / SVG / ICO / other -
loading_counts—lazy/eager/ unset (lazy-loading adoption %) -
decoding_counts—async/sync/auto/ unset -
fetchpriority_counts—high/low/auto/ unset -
img_missing_alt_count— accessibility audit signal -
img_first_party_count/img_third_party_count— privacy/performance signal -
srcset_candidate_count— responsive-image coverage - per-image:
src_host,loading,decoding,fetchpriority,width,height,first_party,format
Sample (stripe.com, 35 imgs):
loading_counts: {lazy: 34, eager: 0, none: 1}
format_counts: {png: 31, jpg: 4, ...}
img_missing_alt_count: 31 # 89% of imgs missing alt → grade C
GET /api/anchor-text?url=<URL> returns top anchor-text frequencies and link-graph signals:
-
top_anchor_texts— top 20 most-frequent visible anchor texts (case-folded, whitespace-normalized) -
internal_count/external_count— internal vs external link classification -
empty_anchor_count— accessibility red flag -
generic_anchor_count— "click here", "read more", "here", "this", etc. (bad for SEO) -
rel_counts—nofollow/sponsored/ugc/noopener/noreferrer -
target_counts—_blank/_self/_parent/_top/ unset -
same_page_anchor_count—#fragmentonly links -
js_driven_link_count—onclick=window.locationordata-hrefpatterns -
title_attr_count— title attribute coverage -
anchor_examples— first 30 anchors with text + href + rel + target
Sample (stripe.com, 186 anchors):
top_anchor_texts:
read the story (12)
contact sales (4)
read the guide (3)
pricing (2), sign in (2)
score: 95 / grade: A
Complements /api/links (raw href list) and /api/headings (semantic structure) without overlapping them.
40 paid routes now live, $0.0005–$0.005 USDC each. Discovery at /.well-known/x402, full docs at /llms.txt, OpenAPI at /openapi.json. Each call is 1 x402 USDC micropayment on Base (wallet 0xCa0a6c...).
Built for AI agents scraping URLs. Try it:
curl "https://epson-rpm-america-satisfy.trycloudflare.com/api/image-inventory?url=https://stripe.com"
# → HTTP 402 with x402 envelope (payTo=0xCa0a6c..., maxAmountRequired=500 atomic USDC)
Top comments (0)