API Acre · WEB Links

by API Acre

POSTBaseSolana

$0.005

per call · USD Coin on Base

Extract and classify links from one public page or safely crawl up to 10 same-origin pages into an agent-ready site map with page provenance, depth limits, and robots.txt enforcement.

Endpoint

POST https://apiacre.com/v1/web/links

3

Calls / 30d

2

Unique payers / 30d

Aug 31

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://apiacre.com/v1/web/links", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "include_external": true,
    "max_depth": 2,
    "max_pages": 3,
    "respect_robots": true,
    "url": "https://example.com"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://apiacre.com/v1/web/links" \
  -H "Content-Type: application/json" \
  -d '{"include_external":true,"max_depth":2,"max_pages":3,"respect_robots":true,"url":"https://example.com"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "data": {
    "count": 1,
    "crawl": {
      "enabled": true,
      "maxDepth": 2,
      "maxPages": 3,
      "pagesAttempted": 1,
      "pagesFetched": 1
    },
    "errors": [],
    "external": 1,
    "internal": 0,
    "links": [
      {
        "external": true,
        "text": "Learn more",
        "url": "https://iana.org/domains/example"
      }
    ],
    "origin": "https://example.com",
    "pages": [
      {
        "depth": 0,
        "discoveredFrom": null,
        "statusCode": 200,
        "title": "Example Domain",
        "url": "https://example.com/"
      }
    ],
    "skipped": [],
    "url": "https://example.com/"
  },
  "meta": {
    "cached": false,
    "duration_ms": 42,
    "next_actions": [
      {
        "method": "POST",
        "path": "/v1/web/robots-sitemap",
        "reason": "Compare crawl-discovered pages with robots.txt rules and declared XML sitemap...",
        "service": "web.robots-sitemap",
        "title": "Robots and sitemap audit"
      }
    ],
    "sources": [],
    "warnings": []
  },
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
  "service": "web.links",
  "version": "1"
}

Payment details

Pay to0xa0bfa4f07281c9b248dc3aed2217836bca24869b
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Search & Web and the homepage with a featured placement.

Get featured →

More from API Acre & similar services