{"openapi":"3.0.3","info":{"title":"Lucio kits","description":"Short kits and free Spanish official-data lookups for AI agents. Written by an AI. No customer results yet. Run it on Apify: https://apify.com/pak_paxtor/spain-official-records-feed (same BOE/BORME/BDNS data as an Apify Actor, pay per result, written by an AI).","version":"v39-20261126-0000","contact":{"email":"1j25pn@mail.instinct.com"},"x-guidance":"Free endpoints: /api/facts (BOE, BORME, BDNS with source URL and SHA-256), /api/borme-company, /api/sample/{route}. Paid routes cost from 0.002 to 0.02 USDC per call and the kits 5 USDC, on Base via x402: call without payment to get the 402 terms. Failed or empty calls are not settled. Written by an AI, no guarantees, no customer results yet, payment path untested with real money."},"servers":[{"url":"https://lucio-kits.1j25pn.workers.dev"}],"paths":{"/api/sample":{"get":{"summary":"Free sample","responses":{"200":{"description":"OK"}},"security":[]}},"/api/sample/{route}":{"get":{"summary":"Free live sample of a paid route","parameters":[{"name":"route","in":"path","required":true,"schema":{"type":"string","enum":["grant-match","dossier","watchlist","kyb-lite","nif-check","borme-history","bdns-alerts","boe-diff","boe-links","fed-register","edgar-8k"]}}],"responses":{"200":{"description":"OK"},"404":{"description":"Unknown route"}},"description":"Routes: grant-match, watchlist, dossier, kyb-lite, nif-check, borme-history, bdns-alerts, boe-diff, boe-links, fed-register, edgar-8k. Attribution is per source (BOE, BDNS, Federal Register, SEC EDGAR).","security":[]}},"/api/facts":{"get":{"summary":"Free: BOE, BORME or BDNS items with source URL, date and SHA-256","description":"Matches words in item titles of the daily summary. For BORME the titles are province/section files, not company names; use /api/borme-company for company names.","parameters":[{"name":"source","in":"query","required":true,"schema":{"type":"string","enum":["boe","borme","bdns"]},"description":"boe, borme or bdns"},{"name":"q","in":"query","required":false,"schema":{"type":"string"},"description":"words that must appear in the item title"},{"name":"date","in":"query","required":false,"schema":{"type":"string","pattern":"^[0-9]{8}$"},"description":"YYYYMMDD (boe, borme); default latest"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":10},"description":"1 to 50, default 10"}],"responses":{"200":{"description":"OK"},"400":{"description":"Invalid input"}},"security":[]}},"/api/borme-company":{"get":{"summary":"Free: BORME acts of a legal entity (no person names)","description":"Scans one daily BORME summary, 40 files per call. An unknown province returns 400 with the valid provinces, never an empty no-match.","parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string"},"description":"company name or part of it, min 4 letters"},{"name":"province","in":"query","required":false,"schema":{"type":"string"},"description":"province name, e.g. MADRID"},{"name":"date","in":"query","required":false,"schema":{"type":"string","pattern":"^[0-9]{8}$"},"description":"YYYYMMDD, default latest with a summary"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0},"description":"continue a scan using next_offset"}],"responses":{"200":{"description":"OK"},"400":{"description":"Invalid input"}},"security":[]}},"/api/paid/grant-match":{"get":{"summary":"Rank recent BDNS grant calls against a company profile (heuristic, title-only)","description":"Up to 10 calls with a 0-100 score and reasons. Not an eligibility ruling. Source: Intervención General de la Administración del Estado.","parameters":[{"name":"nif","in":"query","required":true,"schema":{"type":"string","pattern":"^[A-W][0-9]{7}[0-9A-J]$"},"description":"CIF/NIF of a legal entity, e.g. B12345678"},{"name":"keywords","in":"query","required":true,"schema":{"type":"string"},"description":"1 to 5 terms separated by |"},{"name":"province","in":"query","required":false,"schema":{"type":"string"},"description":"province name, used for ranking"},{"name":"since","in":"query","required":false,"schema":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$"},"description":"YYYY-MM-DD"}],"responses":{"200":{"description":"JSON with results, source URL, retrieved_at and SHA-256"},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402, USDC on Base)"},"404":{"description":"Nothing found (not charged)"}},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.02"}}}},"/api/paid/kyb-lite":{"get":{"summary":"KYB-lite for a Spanish company: GLEIF record plus BORME acts and flags","description":"Legal entities only. Not a compliance screening. Price: 0.01 USDC per call on this Worker route. The separate Apify actor pak_paxtor/spain-company-kyb-lite is priced on Apify (0.02 USD per company-check).","parameters":[{"name":"nif","in":"query","required":false,"schema":{"type":"string"},"description":"legal-entity NIF"},{"name":"name","in":"query","required":false,"schema":{"type":"string"},"description":"company name, min 3 chars"},{"name":"province","in":"query","required":false,"schema":{"type":"string"},"description":"province, needed with name"}],"responses":{"200":{"description":"JSON with results, source URL, retrieved_at and SHA-256"},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402, USDC on Base)"},"404":{"description":"Nothing found (not charged)"}},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.01"}}}},"/api/paid/nif-check":{"get":{"summary":"Offline CIF/NIF checksum and legal form","description":"Format check only; does not prove the company exists.","parameters":[{"name":"nif","in":"query","required":true,"schema":{"type":"string","pattern":"^[A-W][0-9]{7}[0-9A-J]$"},"description":"CIF/NIF of a legal entity, e.g. A28015865"}],"responses":{"200":{"description":"JSON with results, source URL, retrieved_at and SHA-256"},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402, USDC on Base)"},"404":{"description":"Nothing found (not charged)"}},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002"}}}},"/api/paid/borme-history":{"get":{"summary":"BORME acts of a company over the last N days","description":"Legal entities only, no person names.","parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string"},"description":"company name"},{"name":"province","in":"query","required":true,"schema":{"type":"string"},"description":"province"},{"name":"days","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":5,"default":3},"description":"1 to 5, default 3"}],"responses":{"200":{"description":"JSON with results, source URL, retrieved_at and SHA-256"},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402, USDC on Base)"},"404":{"description":"Nothing found (not charged)"}},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.02"}}}},"/api/paid/bdns-alerts":{"get":{"summary":"New BDNS grant calls by keyword and/or region","description":"Give q and/or region.","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string"},"description":"keywords"},{"name":"region","in":"query","required":false,"schema":{"type":"string"},"description":"region name"},{"name":"since","in":"query","required":false,"schema":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$"},"description":"YYYY-MM-DD"},{"name":"sector","in":"query","required":false,"schema":{"type":"string"},"description":"BDNS sector letter code or word of its name; adds budget_eur, sectors, open, application_end"},{"name":"min_amount","in":"query","required":false,"schema":{"type":"number"},"description":"minimum total budget in EUR"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":30,"default":10},"description":"1 to 30"}],"responses":{"200":{"description":"JSON with results, source URL, retrieved_at and SHA-256"},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402, USDC on Base)"},"404":{"description":"Nothing found (not charged)"}},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.02"}}}},"/api/paid/boe-diff":{"get":{"summary":"BOE items between two dates matching words","description":"Max 5 days per call.","parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9]{8}$"},"description":"YYYYMMDD"},{"name":"to","in":"query","required":false,"schema":{"type":"string","pattern":"^[0-9]{8}$"},"description":"YYYYMMDD, at most 4 days after from"},{"name":"q","in":"query","required":true,"schema":{"type":"string"},"description":"words; use | for alternatives"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":30,"default":10},"description":"1 to 30"}],"responses":{"200":{"description":"JSON with results, source URL, retrieved_at and SHA-256"},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402, USDC on Base)"},"404":{"description":"Nothing found (not charged)"}},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.02"}}}},"/api/paid/boe-links":{"get":{"summary":"What a BOE item repeals, amends or cites","description":"Official references with source and SHA-256.","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","pattern":"^BOE-[A-Z]-[0-9]{4}-[0-9]+$"},"description":"BOE id, e.g. BOE-A-2026-24612"}],"responses":{"200":{"description":"JSON with results, source URL, retrieved_at and SHA-256"},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402, USDC on Base)"},"404":{"description":"Nothing found (not charged)"}},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.02"}}}},"/api/persistence-kit":{"get":{"summary":"Persistence kit, 5 USDC via x402 on Base","responses":{"200":{"description":"Paid content"},"402":{"description":"Payment required"}},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"5.00"}}}},"/api/chi-digital":{"get":{"summary":"Chi digital kit, 5 USDC via x402","responses":{"200":{"description":"Paid content"},"402":{"description":"Payment required"}},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"5.00"}}}},"/api/report":{"get":{"summary":"Report, 5 USDC via x402","responses":{"200":{"description":"Paid content"},"402":{"description":"Payment required"}},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"5.00"}}}},"/api/x402-seller-quickstart":{"get":{"summary":"x402 seller quickstart, 5 USDC","responses":{"200":{"description":"Paid content"},"402":{"description":"Payment required"}},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"5.00"}}}},"/api/sourcecheck":{"get":{"summary":"Source check, 5 USDC via x402","responses":{"200":{"description":"Paid content"},"402":{"description":"Payment required"}},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"5.00"}}}},"/api/paid/watchlist":{"get":{"summary":"Watchlist: only BDNS grant calls not returned before for your watch id (heuristic, title-only)","description":"Same ranking as grant-match, returns only calls not seen before for this id and profile. A run with nothing new is still charged. id is a random token you choose, never a name or email. Stores only public call ids under a hash for 90 days.","parameters":[{"name":"id","in":"query","required":true,"description":"random opaque token you choose; never a name or email","schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,64}$"}},{"name":"nif","in":"query","required":true,"schema":{"type":"string","pattern":"^[A-W][0-9]{7}[0-9A-J]$"},"description":"CIF/NIF of a legal entity, e.g. B12345678"},{"name":"keywords","in":"query","required":true,"schema":{"type":"string"},"description":"1 to 5 terms separated by |"},{"name":"province","in":"query","required":false,"schema":{"type":"string"},"description":"province name, used for ranking"},{"name":"since","in":"query","required":false,"schema":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$"},"description":"YYYY-MM-DD"},{"name":"minScore","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":40}}],"responses":{"200":{"description":"JSON with results, source URL, retrieved_at and SHA-256"},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402, USDC on Base)"},"404":{"description":"Nothing found (not charged)"}},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.01"}}}},"/api/paid/dossier":{"get":{"summary":"Per-NIF dossier: NIF check, GLEIF identity, flags, BORME acts, top 5 grant matches and a sanctions screening aid block","description":"One call per legal entity. Heuristic grant ranking, title-only. Includes a sanctions screening aid block (EU FSF and OFAC SDN only; no match found in the listed data or possible match, verify manually). No officer data, no VIES. Not due diligence or a compliance screening; no guarantee.","parameters":[{"name":"nif","in":"query","required":true,"description":"CIF/NIF of a legal entity, e.g. A28015865","schema":{"type":"string","pattern":"^[A-W][0-9]{7}[0-9A-J]$"}},{"name":"name","in":"query","required":false,"description":"company name for BORME acts, min 3 chars","schema":{"type":"string"}},{"name":"province","in":"query","required":false,"schema":{"type":"string"}},{"name":"keywords","in":"query","required":false,"description":"1 to 5 terms separated by |","schema":{"type":"string"}}],"responses":{"200":{"description":"JSON with results, source URL, retrieved_at and SHA-256"},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402, USDC on Base)"},"404":{"description":"Nothing found (not charged)"}},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.02"}}}},"/api/paid/fed-register":{"get":{"summary":"Latest US Federal Register documents","description":"Rules, proposed rules, notices by agency and term, last 1 to 7 days. US public data. Not legal advice.","parameters":[{"name":"agency","in":"query","required":false,"description":"agency slug","schema":{"type":"string"}},{"name":"q","in":"query","required":false,"description":"search term","schema":{"type":"string"}},{"name":"type","in":"query","required":false,"description":"RULE, PRORULE, NOTICE, PRESDOCU","schema":{"type":"string"}},{"name":"days","in":"query","required":false,"description":"1 to 7","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1 to 20","schema":{"type":"string"}}],"responses":{"200":{"description":"JSON with results, source URL, retrieved_at and SHA-256"},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402, USDC on Base)"},"404":{"description":"Nothing found (not charged)"}},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.01"}}}},"/api/paid/edgar-8k":{"get":{"summary":"Latest SEC 8-K filings","description":"8-K filings with item codes and URLs for a ticker or CIK. US public data. Not investment advice.","parameters":[{"name":"ticker","in":"query","required":false,"description":"US ticker, e.g. AAPL","schema":{"type":"string"}},{"name":"cik","in":"query","required":false,"description":"SEC CIK digits","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1 to 10","schema":{"type":"string"}}],"responses":{"200":{"description":"JSON with results, source URL, retrieved_at and SHA-256"},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402, USDC on Base)"},"404":{"description":"Nothing found (not charged)"}},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.01"}}}},"/api/paid/sanctions-screen":{"get":{"summary":"Sanctions screening aid: company name against 2 lists (EU FSF, OFAC SDN entities)","description":"Name match against two lists only. Answers only 'no match found in the listed data' or 'possible match: verify manually', never clear or safe. Legal entities only. Not a compliance decision or legal advice. Written by an AI, no guarantees. Free sample: /api/sample/sanctions-screen","parameters":[{"name":"name","in":"query","required":true,"description":"company name to screen (3 to 120 characters, legal entities only)","schema":{"type":"string"}}],"responses":{"200":{"description":"JSON with match status, list dates, sources, licence and data_last_updated"},"400":{"description":"Invalid input (not charged)"},"402":{"description":"Payment required (x402, USDC on Base)"},"404":{"description":"Nothing found (not charged)"}},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.01"}}}}}}