75trust / 100

Schema Map

by NetIntel in Weather & location

x402 APIPassing, checked 2 h ago

Transform a source object into a target schema — matches fields by alias and structure deterministically, uses an LLM only for semantic mapping when needed, and supports mapping hints, transforms, and defaults, so agents can reshape data between systems with per-field confidence and a clear report of what mapped and what didn't.

POST
https://netintel.dev/schema/map
Price
$0.04
per call in USDC
Uptime
99.0%
last 30 days
Response time
328 ms
443 ms slowest 5%
Last check
Passed
2 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://netintel.dev/schema/map

Each call costs $0.04 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://netintel.dev/schema/map
content-type: application/json

{
  "source": {
    "cost": "19.99",
    "internal_id": 7741,
    "name": "Jane Doe"
  },
  "target_schema": {
    "full_name": "string",
    "price": "number"
  }
}

Parameters

ParameterTypeRequiredDescription
allow_llmbooleanNoDefault true. Gates semantic mapping. When false, fields the rules cannot match land in missing_target and no model is called.
defaultsobjectNoOptional value per target field to use when the source has no match: {"currency":"USD"}.
hintsobjectNoOptional explicit mapping, keyed by target field: {"full_name":"name"} or {"full_name":["name","contact"]}. Hints outrank every automatic match.
modestringNo"permissive" (default): an unmapped target field is null + a warning. "strict": it is omitted from `mapped`. Either way an incomplete mapping is a 200 with missing_target listed, never an error.
sourceobjectYesThe object to transform. Nested objects are addressed by dot path. Max 64KB / 200 fields.
target_schemaobjectYesDesired output shape. JSON Schema ({"type":"object","properties":{...},"required":[...]}) or a field→type map ({"full_name":"string","price":"number","bio":"string?"}). In the map form a field is required unless suffixed with '?'.
transformsobjectNoOptional per-target-field transform: {"price":"toNumber"}. One of: toNumber, toInteger, toString, toBoolean, toISO, toDate, trim, toLowerCase, toUpperCase, toArray.

Example response

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

Example response, 36 lines
{
  "findings": [],
  "grade": "A",
  "mapped": {
    "full_name": "Jane Doe",
    "price": 19.99
  },
  "mapped_fields": [
    {
      "confidence": 1,
      "method": "alias",
      "source": "name",
      "target": "full_name"
    },
    {
      "confidence": 1,
      "method": "alias",
      "source": "cost",
      "target": "price"
    }
  ],
  "missing_target": [],
  "schema_valid": true,
  "score": 100,
  "type_conversions": [
    {
      "field": "price",
      "from": "string",
      "to": "number"
    }
  ],
  "unmapped_source": [
    "internal_id"
  ],
  "warnings": []
}

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.04.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://netintel.dev/schema/map' \
  -H 'content-type: application/json' \
  --data-raw '{"source":{"cost":"19.99","internal_id":7741,"name":"Jane Doe"},"target_schema":{"full_name":"string","price":"number"}}'

# 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://netintel.dev/schema/map' \
  -H 'content-type: application/json' \
  --data-raw '{"source":{"cost":"19.99","internal_id":7741,"name":"Jane Doe"},"target_schema":{"full_name":"string","price":"number"}}' \
  | 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.04 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.04" });
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.04 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fnetintel.dev%2Fschema%2Fmap&method=POST
const res = await pay("https://netintel.dev/schema/map", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "source": {
      "cost": "19.99",
      "internal_id": 7741,
      "name": "Jane Doe"
    },
    "target_schema": {
      "full_name": "string",
      "price": "number"
    }
  }),
});
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.04 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.04"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://netintel.dev/schema/map",
        json={
            "source": {
                "cost": "19.99",
                "internal_id": 7741,
                "name": "Jane Doe",
            },
            "target_schema": {
                "full_name": "string",
                "price": "number",
            },
        },
    )
    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
2 h agoPassed402259 ms$0.04
12 h agoPassed402188 ms$0.04
22 h agoPassed402252 ms$0.04
33 h agoPassed402332 ms$0.04
45 h agoPassed402297 ms$0.04
Show 10 older checks
4 days agoTimed out---
5 days agoPassed402188 ms$0.04
6 days agoPassed402329 ms$0.04
6 days agoPassed402557 ms$0.04
6 days agoPassed402330 ms$0.04
7 days agoPassed402296 ms$0.04
7 days agoPassed402343 ms$0.04
8 days agoPassed402316 ms$0.04
8 days agoPassed402308 ms$0.04
8 days agoPassed402325 ms$0.04