Official LayerCall SDKs — score an IP, email, phone, domain or a whole signup for fraud in one call. Node/TypeScript, Python, CLI, Express and Next.js middleware. Zero dependencies.
git clone https://github.com/LayerCall/layercall-sdkResumen de Tools
# LayerCall SDKs
[](https://www.npmjs.com/package/layercall)
[](https://pypi.org/project/layercall/)
[](LICENSE)
[](#)
Official clients for [LayerCall](https://www.layercall.com) — score an IP,
email, phone number, domain, or a whole signup for fraud in a single call.
| | Install | Docs |
| --- | --- | --- |
| **Node / TypeScript** | `npm i layercall` | [node/README.md](node/README.md) |
| **Python** | `pip install layercall` | [python/README.md](python/README.md) |
| **CLI** | `npx layercall ip 8.8.8.8` | below |
Both clients have **zero dependencies**. A trust check sits on your signup
path, which is the worst place in an application to introduce a dependency
tree.
[Get a free API key](https://www.layercall.com/get-key) — 1,000 lookups a
month, no card required, no daily cap.
## Try it without installing anything
```bash
export LAYERCALL_API_KEY=tl_live_...
npx layercall ip 8.8.8.8
npx layercall email someone@mailinator.com
npx layercall domain example.com
npx layercall user --ip 1.2.3.4 --email a@b.com
```
## What it returns
Every endpoint returns the same shape: a `0–100` `risk_score`, an
`allow | review | block` verdict, and the signals behind it.
```json
{
"ip": "185.220.101.1",
"risk_score": 60,
"verdict": "review",
"signals": {
"is_vpn": true,
"is_proxy": true,
"is_datacenter": true,
"is_tor": true,
"recent_abuse": false
},
"geo": { "country": "DE", "city": "Berlin", "asn": "AS60729" },
"vpn_provider": null
}
```
## Two things worth reading before you integrate
**Prefer step-up over rejection.** The `review` band starts where an ordinary
commercial VPN lands, and most VPN users are ordinary customers. Send them an
OTP or a 3-D Secure challenge instead of a refusal: a real user clears it in
seconds, an attacker cannot, and a false positive costs friction rather than a
customer. This is what Stripe Radar and Sift both converged on.
**`null` means unknown, not "no".** `newly_registered` is `null` when a TLD
publishes no RDAP (`.de`, `.ru`, `.ac.uk` among them), and `mailbox_exists` is
`null` when the mail provider does not answer honestly — Gmail and Yahoo accept
mail for addresses that do not exist. Treating either as a negative finding is
the specific mistake these fields exist to prevent.
## Endpoints
| | |
| --- | --- |
| `POST/GET /v1/score/ip` | VPN, proxy, Tor, datacenter, geo, ASN |
| `/v1/verify/email` | Syntax, MX, disposable, role account, domain age |
| `/v1/lookup/phone` | Numbering-plan validation worldwide, line type |
| `/v1/score/domain` | RDAP age, registrar, MX/SPF/DMARC, risky TLD |
| `/v1/score/device` | Device fingerprint reputation + bot probability |
| `/v1/score/user` | All of the above weighted into one verdict |
| `/v1/verify/agent` | Web Bot Auth (RFC 9421) — prove an AI agent is who it claims |
| `/v1/batch` | Up to 500 values of one type |
Full reference: [layercall.com/docs](https://www.layercall.com/docs) ·
OpenAPI 3.1: [layercall.com/openapi.json](https://www.layercall.com/openapi.json)
## Testing without spending anything
Test-mode keys return deterministic **synthetic** data, drawn from ranges
reserved for exactly this purpose — RFC 5737 addresses, `example.com`, the
555-01XX fiction block. Same shape and fields as production, so your assertions
are real ones. They never bill, never hit live data sources, and never write to
the shared reputation network.
Every fixture is documented, so you can assert on exact values rather than
"did it return a number": [layercall.com/docs/test-mode](https://www.layercall.com/docs/test-mode)
## MCP — call it from an AI agent
LayerCall speaks the Model Context Protocol over Streamable HTTP, so Claude
Code, Claude Desktop, ChatGPT, Cursor, VS Code, Windsurf and Zed can run a
fraud check mid-conversation. There is nothing to install — it is a remote
server, so you add a URL and your API key:
```json
{
"mcpServers": {
"layercall": {
"url": "https://www.layercall.com/api/mcp",
"headers": { "Authorization": "Bearer YOUR_API_KEY" }
}
}
}
```
Seven tools are exposed: `score_ip`, `verify_email`, `lookup_phone`,
`score_domain`, `score_device`, `verify_agent` and `score_user`.
> VS Code names the top-level key `servers`, not `mcpServers`. That one
> difference is the usual reason a copied config silently does nothing.
Per-client setup: [layercall.com/docs/mcp](https://www.layercall.com/docs/mcp)
## Framework middleware
Drop-in for the two places this usually goes. The middleware attaches
`req.trust` and leaves the decision to you:
```ts
import { layercall } from "layercall/express";
app.post("/signup", layercall(), (req, res) => {
if (req.trust.verdict === "block") return res.status(403).json({ error: "..." });
if (req.trust.verdict === "review") flagForManualReview(req.trust);
createAccount(req.body);
});
```
There is deliberately no `autoBlock: true`. A one-line install that starts
rejecting people is the wrong default for a fraud tool — the failure is silent,
it lands on real customers, and you find out from a support ticket.
By default it only scores `POST`/`PUT`/`PATCH`, because a global `app.use()`
bills a lookup for every request including `favicon.ico`.
See [node/src/express.ts](node/src/express.ts) and
[node/src/next.ts](node/src/next.ts) (`scoreRequest`, `withTrust`).
## Guides
Written for someone mid-incident rather than someone shopping. Each one ends
with what a naive version gets wrong — including the parts that need no
LayerCall at all.
- [How to stop fake signups](https://www.layercall.com/guides/stop-fake-signups)
- [How to block disposable email addresses at signup](https://www.layercall.com/guides/block-disposable-emails)
- [How to detect VPN and proxy users at signup](https://www.layercall.com/guides/detect-vpn-at-signup)
- [How to stop free trial abuse](https://www.layercall.com/guides/stop-free-trial-abuse)
- [How to add fraud checks without losing real customers](https://www.layercall.com/guides/score-signup-without-blocking-real-users)
## License
MIT
Lo que la gente pregunta sobre layercall-sdk
¿Qué es LayerCall/layercall-sdk?
+
LayerCall/layercall-sdk es tools para el ecosistema de Claude AI. Official LayerCall SDKs — score an IP, email, phone, domain or a whole signup for fraud in one call. Node/TypeScript, Python, CLI, Express and Next.js middleware. Zero dependencies. Tiene 0 estrellas en GitHub y se actualizó por última vez today.
¿Cómo se instala layercall-sdk?
+
Puedes instalar layercall-sdk clonando el repositorio (https://github.com/LayerCall/layercall-sdk) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.
¿Es seguro usar LayerCall/layercall-sdk?
+
LayerCall/layercall-sdk aún no ha sido auditado por nuestro agente de seguridad. Revisa el repositorio original en GitHub antes de usarlo en producción.
¿Quién mantiene LayerCall/layercall-sdk?
+
LayerCall/layercall-sdk es mantenido por LayerCall. La última actividad registrada en GitHub es de today, con 0 issues abiertos.
¿Hay alternativas a layercall-sdk?
+
Sí. En ClaudeWave puedes explorar tools similares en /categories/tools, ordenados por popularidad o actividad reciente.
Despliega layercall-sdk en tu cloud
Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.
¿Mantienes este repo? Añade un badge a tu README
Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.
[](https://claudewave.com/repo/layercall-layercall-sdk)<a href="https://claudewave.com/repo/layercall-layercall-sdk"><img src="https://claudewave.com/api/badge/layercall-layercall-sdk" alt="Featured on ClaudeWave: LayerCall/layercall-sdk" width="320" height="64" /></a>Más Tools
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
An AI SKILL that provide design intelligence for building professional UI/UX multiple platforms
🪨 why use many token when few token do trick — Claude Code skill that cuts 65% of tokens by talking like caveman
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies
The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
A collection of notebooks/recipes showcasing some fun and effective ways of using Claude.