{"uid":"cap_3_HxJVLEaB1bgg4QMh3gr","slug":"spain-tax-id-validator-dni-nif-nie-cif-c6794e0f","name":"Spain Tax ID Validator (DNI/NIF, NIE, CIF)","description":"244 pay-per-call data APIs for AI agents: official statistics and economy (ECB, Fed, Eurostat, World Bank, SEC, BOE, INE), crypto prices and sentiment, Spanish public data, compliance (sanctions, VAT, IBAN, LEI), science, weather, web and developer tools and local AI text tools. Pay in USDC via x402.","url":"https://api.vextorium.com/v1/spain-tax-id-validate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value":{"type":"string","description":"DNI, NIE or CIF"}}},"responseSchema":{"type":"json","example":{"type":"CIF persona juridica","valid":true,"value":"B12****74","reason":null}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_sJJI8HzWSYws27kTtwMYX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates Spanish tax identifiers (DNI/NIF, NIE, NIE, and company CIF) with check-digit verification, computed locally without storing the ID.","exampleAgentPrompt":"Can you check whether the Spanish company tax ID B12345674 is valid and tell me what type it is?","exampleUseCases":[{"title":"Onboarding Spanish customer KYC check","prompt":"I need to verify this Spanish ID before onboarding the user — can you check if '12345678Z' is a valid DNI/NIF?"},{"title":"Validating foreign resident NIE","prompt":"A customer provided their NIE as X1234567L — can you confirm whether that's a valid Spanish NIE and that the check letter is correct?"},{"title":"Company CIF validation before invoice","prompt":"Before I process this invoice, can you check whether the Spanish company CIF 'B87654321' is valid and what category of legal entity it corresponds to?"}],"resultDescription":"Returns a JSON object with: 'valid' (boolean indicating whether the ID passes check-digit verification), 'type' (string identifying the ID category, e.g. 'CIF persona juridica', 'DNI', 'NIE'), 'value' (partially masked version of the input), and 'reason' (null on success or an error explanation on failure).","failureModes":["Invalid format returns valid=false with a reason string explaining the failure","Malformed or empty 'value' field returns an error","Unrecognized ID type (not DNI/NIE/CIF) returns valid=false with reason","Check-digit mismatch returns valid=false with reason"],"whenToPreferThis":"Use this endpoint when you need to verify the syntactic and algorithmic correctness of Spanish tax identifiers (DNI/NIF for individuals, NIE for foreign residents, CIF for companies) before submitting them to Spanish tax authorities, processing invoices, or onboarding customers. It runs the check locally so the ID is never stored, making it suitable for privacy-sensitive workflows. Prefer this over manual regex checks because it handles all three ID types and performs full check-digit algorithm verification.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T12:39:46.655Z","isFirstParty":false,"canonicalSlug":"spain-tax-id-validator-dni-nif-nie-cif-c6794e0f"}