{"uid":"cap_yZ1KQsSaCPdhHRWaYufEo","slug":"spain-tax-id-validator-dni-nie-cif-0ae5490f","name":"Spain Tax ID Validator (DNI/NIE/CIF)","description":"Pay-per-call Spain and EU utilities for AI agents over x402 (USDC). No accounts, no API keys. Public open data, live official checks (EU VIES) and offline computation; nothing is stored.","url":"https://es.redtapeapi.com/v1/es/tax-id/validate?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"The DNI, NIE or CIF"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"type":"CIF","valid":true,"normalized":"B12345674"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NaxcSTteBrNoRuoxVe8Z2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates and normalizes a Spanish tax identifier (DNI, NIE, or CIF) and identifies its type","exampleAgentPrompt":"Can you check whether B12345674 is a valid Spanish tax ID and tell me what type it is?","exampleUseCases":[{"title":"Invoice validation before payment","prompt":"Before we wire payment to this Spanish supplier, can you check if their tax ID B98765432 is valid and what kind of entity it corresponds to?"},{"title":"Onboarding KYC for Spanish user","prompt":"A new user just signed up with the NIE X1234567L — can you verify that it's a legitimate Spanish tax identifier?"},{"title":"Bulk order form preflight check","prompt":"A customer filled in their DNI as 12345678Z on the checkout form — please confirm it's a valid Spanish DNI before we process the order."}],"resultDescription":"A JSON object indicating whether the submitted ID is valid (boolean), its type (DNI, NIE, or CIF), and a normalized canonical form of the identifier (e.g. {\"type\":\"CIF\",\"valid\":true,\"normalized\":\"B12345674\"}).","failureModes":["Invalid or malformed ID string returns valid=false with type still identified where possible","Missing required 'id' query parameter returns a 400-level error","Ambiguous IDs that don't match any known Spanish format may return valid=false without a type","Network or upstream service errors may return 5xx responses"],"whenToPreferThis":"Use this endpoint when you need a lightweight, no-account, pay-per-call check of any Spanish fiscal identifier (DNI for individuals, NIE for foreign residents, CIF for companies). It is ideal for agent workflows that encounter Spanish tax IDs at runtime and need instant validation without maintaining API credentials. Prefer it over EU VIES-based checks for individual (non-VAT) Spanish IDs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T01:10:20.981Z","isFirstParty":false,"canonicalSlug":"spain-tax-id-validator-dni-nie-cif-0ae5490f"}