Skip to content
Fourohtwo

landingen24h.com/api/x402/util/slug

Turn any text (Spanish, Portuguese, French, German accents handled) into a clean URL slug with - or _ separator and optional max length. Send {text, separator, max_length}.

PolygonUnchecked
POSThttps://landingen24h.com/api/x402/util/slug

UptimeNot checked yet

30 days agoToday

Call it from an agent

import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";

const pay = wrapFetchWithPayment(fetch, privateKeyToAccount(process.env.AGENT_KEY));
const res = await pay("https://landingen24h.com/api/x402/util/slug", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"text":"Diseño de páginas web en 24 horas!"}),
});
console.log(await res.json());

Example input

{
  "text": "Diseño de páginas web en 24 horas!"
}

More from Landing en 24h