{"openapi":"3.1.0","info":{"title":"Spindlo API","version":"1.0.0","summary":"Read-only catalog of local service prices, providers, sources and freshness.","description":"All endpoints are read-only, need no authentication and are rate limited. Also available as an MCP server at /mcp (search + execute tools). See /llms.txt.","contact":{"name":"Spindlo","email":"hello@spindlo.com","url":"https://www.spindlo.com"}},"servers":[{"url":"https://www.spindlo.com"}],"paths":{"/api/v1/categories":{"get":{"operationId":"listCategories","summary":"List all service categories (canonical slug, localized slug and name, parent) with the cities that have active providers in each category and the service count per city. Current categories: tyre-change, mens-haircut, car-inspection.","parameters":[{"name":"locale","in":"query","required":false,"description":"Language of category names and localized slugs.","schema":{"type":"string","enum":["et","ru","en"],"default":"en"}}],"responses":{"200":{"description":"List of categories with the cities that have services in them.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"description":"List of categories with the cities that have services in them."}}}}}},"422":{"description":"Invalid query parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Rate limit exceeded."}}}},"/api/v1/services":{"get":{"operationId":"searchServices","summary":"Find services and where they are offered. Filter on facts first: language spoken, walk-in, online booking, open on a weekday, district. Each item has the location facts (languages, walk_in, online_booking, parking, card_payment, open_days, opening_hours); an unknown fact is null, not false, and never matches a fact filter. Price is optional and a missing price is normal: price.status is listed, from, on_request or missing. Compare prices only within the same price.unit: per_job is a fixed standard job described by price.job_spec, per_hour is an hourly rate. Items also carry provider contacts, category attributes (e.g. rim_sizes, tyre_hotel, includes_beard, vehicle_category), source_url and verified_at. Sorted by price unit (per_hour, per_job, unpriced last), cheapest first within each unit.","parameters":[{"name":"city","in":"query","required":false,"description":"City name or slug, e.g. \"Tallinn\" or \"tallinn\".","schema":{"type":"string","maxLength":100}},{"name":"category","in":"query","required":false,"description":"Canonical category slug from list_categories, e.g. \"tyre-change\". Also matches its direct subcategories.","schema":{"type":"string","maxLength":100}},{"name":"country","in":"query","required":false,"description":"ISO 3166-1 alpha-2 country code, lowercase.","schema":{"type":"string","enum":["ee"]}},{"name":"district","in":"query","required":false,"description":"District name or slug within the city, e.g. \"Kesklinn\".","schema":{"type":"string","maxLength":100}},{"name":"language","in":"query","required":false,"description":"ISO 639-1 code of a language the staff serve customers in, e.g. \"ru\".","schema":{"type":"string","pattern":"^[a-z]{2}$"}},{"name":"walk_in","in":"query","required":false,"description":"true: no appointment needed. false: appointment required.","schema":{"type":"boolean"}},{"name":"online_booking","in":"query","required":false,"description":"true: can be booked online. false: cannot.","schema":{"type":"boolean"}},{"name":"open_on","in":"query","required":false,"description":"Open on this weekday, e.g. \"sat\" for Saturday.","schema":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"]}},{"name":"price_unit","in":"query","required":false,"description":"Only prices in this unit: per_job (fixed standard job, see price.job_spec) or per_hour.","schema":{"type":"string","enum":["per_job","per_hour"]}},{"name":"max_price","in":"query","required":false,"description":"Only services whose lowest price is at most this amount. Drops unpriced services; combine with price_unit.","schema":{"type":"number","minimum":0}},{"name":"q","in":"query","required":false,"description":"Free text matched against service name, canonical service slug and provider name.","schema":{"type":"string","maxLength":200}},{"name":"tag","in":"query","required":false,"description":"Service tag.","schema":{"type":"string","maxLength":100}},{"name":"limit","in":"query","required":false,"description":"Maximum number of items.","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"locale","in":"query","required":false,"description":"Language of category names and localized slugs.","schema":{"type":"string","enum":["et","ru","en"],"default":"en"}}],"responses":{"200":{"description":"Object with count, limit and items (services with price, provider, location, source_url, verified_at).","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"description":"Object with count, limit and items (services with price, provider, location, source_url, verified_at)."}}}}}},"422":{"description":"Invalid query parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Rate limit exceeded."}}}},"/api/v1/providers/{slug}":{"get":{"operationId":"getProvider","summary":"Get one provider by slug: registry code, contacts, booking URL, every location with its facts (languages, walk_in, online_booking, parking, card_payment, open_days, opening_hours, accessibility) and services, and the sources with fetched_at and verified_at.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","maxLength":200}},{"name":"locale","in":"query","required":false,"description":"Language of category names and localized slugs.","schema":{"type":"string","enum":["et","ru","en"],"default":"en"}}],"responses":{"200":{"description":"The provider with locations, services and sources.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"description":"The provider with locations, services and sources."}}}}}},"422":{"description":"Invalid query parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"429":{"description":"Rate limit exceeded."},"404":{"description":"No active provider with this slug."}}}},"/mcp":{"post":{"operationId":"mcp","summary":"Model Context Protocol endpoint (Streamable HTTP, stateless, JSON responses). Protocol 2026-07-28, legacy initialize handshake (2025-11-25, 2025-06-18, 2025-03-26) also accepted. Tools: search, execute.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"One JSON-RPC 2.0 request or notification.","required":["jsonrpc","method"],"properties":{"jsonrpc":{"const":"2.0"},"id":{"type":["string","integer"]},"method":{"type":"string"},"params":{"type":"object"}}}}}},"responses":{"200":{"description":"JSON-RPC response.","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Notification accepted, no body."},"400":{"description":"Malformed JSON-RPC, header mismatch or unsupported protocol version."}}}}},"components":{"schemas":{"ValidationError":{"type":"object","properties":{"message":{"type":"string"},"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}}}}}}