{
  "name": "Lightning Tools",
  "version": "1.0.0",
  "description": "Pay-per-call tools for AI agents. Buy credits with Bitcoin Lightning.",
  "openapi": "https://lightningapi.tools/.well-known/openapi.json",
  "services": [
    {
      "id": "email-validator",
      "name": "Validate an email address",
      "description": "Validates an email address and returns a comprehensive quality signal including syntax, DNS, MX, disposable check, role account detection, free provider detection, domain age, and a 0-1 quality score.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/email-validator",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 2
    },
    {
      "id": "calculator",
      "name": "Evaluate a mathematical expression",
      "description": "Evaluates arithmetic, algebra, trigonometry, logarithms, unit conversions, and natural language math.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/calculator",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 1
    },
    {
      "id": "qr-code",
      "name": "Generate a QR code",
      "description": "Generates a QR code as a base64 PNG string or SVG string.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/qr-code",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 1
    },
    {
      "id": "extract-text",
      "name": "Extract text from a URL",
      "description": "Fetches a URL and extracts clean readable text using Mozilla Readability.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/extract-text",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 2
    },
    {
      "id": "phone-validator",
      "name": "Validate a phone number",
      "description": "Validates and parses a phone number using libphonenumber-js.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/phone-validator",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 1
    },
    {
      "id": "feels-like",
      "name": "Apparent temperature",
      "description": "Calculates the apparent (feels-like) temperature using heat index or wind chill.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/feels-like",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 1
    },
    {
      "id": "sunrise-sunset",
      "name": "Solar times",
      "description": "Calculates sunrise, sunset, solar noon, and day length for a given location and date.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/sunrise-sunset",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 1
    },
    {
      "id": "age-in-units",
      "name": "Age calculator",
      "description": "Calculates age in multiple units from a birthdate.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/age-in-units",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 1
    },
    {
      "id": "loan-payoff",
      "name": "Amortisation calculator",
      "description": "Calculates loan payoff schedule including months to payoff, total interest, and total paid.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/loan-payoff",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 1
    },
    {
      "id": "compound-interest",
      "name": "Compound interest calculator",
      "description": "Calculates compound interest with year-by-year breakdown.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/compound-interest",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 1
    },
    {
      "id": "elo-rating",
      "name": "Elo chess rating calculator",
      "description": "Calculates new Elo ratings after a match.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/elo-rating",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 1
    },
    {
      "id": "password-entropy",
      "name": "Password strength analyser",
      "description": "Calculates password entropy and estimated crack time.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/password-entropy",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 1
    },
    {
      "id": "boiling-point",
      "name": "Boiling point at altitude",
      "description": "Calculates the boiling point of water at a given altitude.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/boiling-point",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 1
    },
    {
      "id": "horizon-distance",
      "name": "Horizon distance calculator",
      "description": "Calculates the distance to the geometric and radio horizons from a given height.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/horizon-distance",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 1
    },
    {
      "id": "speed-of-sound",
      "name": "Speed of sound calculator",
      "description": "Calculates the speed of sound in a given medium at a given temperature.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/speed-of-sound",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 1
    },
    {
      "id": "circuits",
      "name": "Resource reality check",
      "description": "Checks whether a URL is reachable and gathers signals about DNS, HTTP, SSL, and content.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/circuits/resource-reality-check",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 3
    },
    {
      "id": "circuits",
      "name": "Scam signal check",
      "description": "Analyses domain age, MX configuration, email deliverability, and payment method for scam signals.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/circuits/scam-signal-check",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 4
    },
    {
      "id": "circuits",
      "name": "Data freshness check",
      "description": "Checks URL reachability, domain update recency, SSL validity, and content word count for data freshness signals.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/circuits/data-freshness-check",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 5
    },
    {
      "id": "date-utils",
      "name": "Get current date and time info",
      "description": "Returns the current date, day of week, UTC offset, DST status, working day status, week number, quarter, days until month/quarter end, next working day, and upcoming holidays.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/date-utils/today",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 1
    },
    {
      "id": "date-utils",
      "name": "Convert datetime between timezones",
      "description": "Converts an ISO 8601 datetime from one IANA timezone to another, including UTC offset and DST info.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/date-utils/convert-time",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 1
    },
    {
      "id": "date-utils",
      "name": "Check if a date is a working day",
      "description": "Returns whether a date is a working day for a given country, including holiday details if not.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/date-utils/is-working-day",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 1
    },
    {
      "id": "date-utils",
      "name": "Find next or previous working day",
      "description": "Finds the next (or previous) working day after a given date, skipping weekends and public holidays.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/date-utils/next-working-day",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 1
    },
    {
      "id": "date-utils",
      "name": "Add working days to a date",
      "description": "Adds N working days to a date (negative = backward), skipping weekends and public holidays.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/date-utils/add-working-days",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 1
    },
    {
      "id": "date-utils",
      "name": "Count working days in a date range",
      "description": "Counts working days between start and end (inclusive), excluding weekends and public holidays.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/date-utils/count-working-days",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 1
    },
    {
      "id": "date-utils",
      "name": "Find days all countries are available",
      "description": "Returns working day availability for 2-5 countries over a date range (max 90 days), identifying days when all countries are simultaneously available.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/date-utils/meeting-windows",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 2
    },
    {
      "id": "date-utils",
      "name": "Find overlapping working hours across timezones",
      "description": "Finds the UTC window where all specified timezones are simultaneously within working hours.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/date-utils/timezone-overlap",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 1
    },
    {
      "id": "domain-intelligence",
      "name": "DNS lookup for a domain",
      "description": "Returns A, AAAA, MX, TXT, NS records and derived signals: spf_present, dmarc_present, mx_count.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/domain-intelligence/dns",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 1
    },
    {
      "id": "domain-intelligence",
      "name": "WHOIS / RDAP lookup for a domain",
      "description": "Returns registrar, registration date, expiry date, domain age in days, and days until expiry.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/domain-intelligence/whois",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 1
    },
    {
      "id": "domain-intelligence",
      "name": "HTTP probe — status, redirects, content type, response time",
      "description": "Follows redirects (max 10), records the full chain, and returns final status code, content type, and response time in ms.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/domain-intelligence/http",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 1
    },
    {
      "id": "domain-intelligence",
      "name": "TLS/SSL certificate inspection",
      "description": "Inspects the TLS certificate for a domain: validity, expiry date, days remaining, issuer, SANs, and hostname match.",
      "endpoint": "https://api.lightningapi.tools",
      "path": "/domain-intelligence/ssl",
      "openapi": "https://lightningapi.tools/.well-known/openapi.json",
      "price": 1
    }
  ],
  "payment": {
    "endpoint": "https://api.lightningapi.tools/api/v1/credits",
    "protocol": "Lightning",
    "network": "Lightning",
    "rates": "1 sat = 1 credit"
  },
  "authentication": {
    "type": "token",
    "header": "Authorization",
    "format": "Bearer <token>",
    "description": "API key from POST /api/v1/credits/verify after paying Lightning invoice"
  }
}