66trust / 100

Jobs

by DiffiCat in Documents & files

x402 APIPassing, checked 12 h ago

Starts a website migration comparison: checks page existence, content and visual regression between a source site and its migrated copy, then produces a report with screenshots. Use it to verify a migration or redesign before go-live. Priced on the pages it compares (the urls list, or the pages discovery finds, at most the optional maxPages ceiling), no page limit: 0.02 USD per page for the first 1000, 0.01 USD beyond, charged upfront.

POST
https://app.difficat.com/api/v1/jobs
Price
$0.1
per call in USDC
Uptime
71.0%
last 30 days
Response time
120 ms
212 ms slowest 5%
Last check
Passed
12 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://app.difficat.com/api/v1/jobs

Each call costs $0.1 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://app.difficat.com/api/v1/jobs
content-type: application/json

{
  "sourceUrl": "https://difficat.com",
  "targetUrl": "https://www.difficat.com"
}

Parameters

ParameterTypeRequiredDescription
callbackUrlstring (uri)NoOptional https URL (port 443) that receives one JSON POST when the job ends (jobId, status, summary, links; never the jobToken), a nudge to read the job. Public hosts only, no redirects followed, retried twice; delivery never affects the job.
checkModestringNoWhat each page is checked on: full (existence, content and visual, the default), text-only (existence and content, no screenshots) or existence-only (only that every page exists and answers, as for a site translated into another language; content and visual are reported as skipped with reason not-r… One of: full, text-only, existence-only.
dryRunbooleanNoQuote only: runs every check and the pricing, then answers the page count and exact amount. Nothing is charged, the free allowance is not used and no job starts; the same body without dryRun is priced from the retained result.
maxPagesintegerNoOptional ceiling on the pages compared and charged for. The job is priced on the pages it compares: the urls list, or the pages discovery finds, at most this many. There is no page limit. maxPages: 1 without sitemapUrl compares exactly the given sourceUrl and targetUrl, with no discovery.
maxPriceUsdnumberNoOptional spend cap in USD. A job priced above it is refused before any challenge, so an auto-paying client is never asked for more.
sitemapUrlstring (uri)No
sourceAuthobjectNo
sourceUrlstring (uri)NoSite A, the reference site (full URL). Required unless urls is given.
targetAuthobjectNo
targetUrlstring (uri)No
thresholdnumberNoVisual diff tolerance as a fraction from 0 (exact) to 1: 0.05 means 5%. The web app takes a percentage; the API does not.
urlsarray of objectNoExplicit page pairs to compare (at most 50000); skips discovery and is priced per pair. One pair is a single-page comparison and needs no sourceUrl.
viewportWidthintegerNo

Example response

The provider's example. We can't check it without paying.

{
  "jobId": "web-1a2b3c",
  "jobToken": "shown-once",
  "links": {
    "cancel": "/api/v1/jobs/web-1a2b3c/cancel",
    "report": "/api/v1/jobs/web-1a2b3c/report",
    "self": "/api/v1/jobs/web-1a2b3c"
  },
  "pagesCharged": 5,
  "payment": {
    "amount": "0.10",
    "currency": "USD"
  },
  "status": "running"
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.1.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://app.difficat.com/api/v1/jobs' \
  -H 'content-type: application/json' \
  --data-raw '{"sourceUrl":"https://difficat.com","targetUrl":"https://www.difficat.com"}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://app.difficat.com/api/v1/jobs' \
  -H 'content-type: application/json' \
  --data-raw '{"sourceUrl":"https://difficat.com","targetUrl":"https://www.difficat.com"}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.1 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.1" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.1 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapp.difficat.com%2Fapi%2Fv1%2Fjobs&method=POST
const res = await pay("https://app.difficat.com/api/v1/jobs", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "sourceUrl": "https://difficat.com",
    "targetUrl": "https://www.difficat.com"
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.1 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.1"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://app.difficat.com/api/v1/jobs",
        json={
            "sourceUrl": "https://difficat.com",
            "targetUrl": "https://www.difficat.com",
        },
    )
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
12 h agoPassed402111 ms$0.1
33 h agoTimed out---
4 days agoTimed out---
5 days agoPassed402117 ms$0.1
5 days agoPassed402115 ms$0.1
Show 10 older checks
6 days agoPassed402111 ms$0.1
7 days agoPassed402122 ms$0.1
7 days agoPassed402216 ms$0.1
8 days agoPassed402120 ms$0.1
8 days agoPassed402133 ms$0.1
9 days agoPassed402114 ms$0.1
9 days agoPassed402136 ms$0.1
10 days agoPassed402131 ms$0.1
10 days agoPassed40272 ms$0.1
11 days agoPassed402122 ms$0.1