{"openapi":"3.1.0","info":{"title":"BBCode API","version":"1.0.0","description":"Render BBCode — the [b]…[/b] markup used by forums, bulletin boards, game communities and many comment systems — into clean HTML, or strip it down to plain text. Supports bold, italic, underline, strikethrough, lists, quotes, code blocks, links, images, colour and size. Dangerous URL schemes (javascript:, data:, vbscript:) in links and images are neutralised, so the HTML is safe to display. The to-text endpoint removes all markup for previews, search indexes, notifications and excerpts. Powered by the bbob parser. Pure local computation — no key, no third-party service, instant; send large posts via POST. Live, nothing stored. 3 endpoints. Distinct from Markdown rendering and HTML-to-Markdown conversion.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/bbcode-api","description":"oanor gateway"}],"tags":[{"name":"BBCode"},{"name":"Meta"}],"components":{"securitySchemes":{"oanorKey":{"type":"apiKey","in":"header","name":"x-oanor-key","description":"Get your key at https://www.oanor.com/developer/keys"}}},"security":[{"oanorKey":[]}],"paths":{"/v1/to-html":{"get":{"operationId":"get_v1_to_html","tags":["BBCode"],"summary":"Render BBCode to HTML","description":"","parameters":[{"name":"bbcode","in":"query","required":true,"description":"BBCode markup","schema":{"type":"string"},"example":"[b]Hello[/b] [url=https://oanor.com]oanor[/url] [i]world[/i]"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"html":"<span style=\"font-weight: bold;\">Hello</span> <a href=\"https://oanor.com\">oanor</a> <span style=\"font-style: italic;\">world</span>"},"meta":{"timestamp":"2026-06-03T01:09:49.939Z","request_id":"c3b26232-85ef-4fc1-a1b8-3abc5d88ddb7"},"status":"ok","message":"BBCode to HTML","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/to-text":{"get":{"operationId":"get_v1_to_text","tags":["BBCode"],"summary":"Strip BBCode to plain text","description":"","parameters":[{"name":"bbcode","in":"query","required":true,"description":"BBCode markup","schema":{"type":"string"},"example":"[b]Hello[/b] [url=https://oanor.com]oanor[/url] [i]world[/i]"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"text":"Hello oanor world"},"meta":{"timestamp":"2026-06-03T01:09:50.042Z","request_id":"9389b7aa-adb1-4720-8e79-ac4327c765e0"},"status":"ok","message":"BBCode to plain text","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/meta":{"get":{"operationId":"get_v1_meta","tags":["Meta"],"summary":"Spec","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"name":"BBCode API","notes":"javascript:, data: and vbscript: URLs in links/images are neutralised. Send large input via POST. Nothing is stored.","version":"v1","endpoints":[{"path":"/v1/to-html","params":{"bbcode":"BBCode markup (required)"},"returns":"rendered HTML (dangerous URL schemes neutralised)"},{"path":"/v1/to-text","params":{"bbcode":"BBCode markup (required)"},"returns":"plain text with tags removed"},{"path":"/v1/meta","params":[],"returns":"this document"}],"description":"Convert BBCode — the [b]…[/b] markup used by forums, bulletin boards and many comment systems — into safe HTML, or strip it down to plain text. Supports bold, italic, underline, strikethrough, lists, quotes, code, url, img, color and size tags. Powered by bbob. Pure local, no key."},"meta":{"timestamp":"2026-06-03T01:09:50.138Z","request_id":"2dd59f97-bf42-4518-b0d8-01f910751048"},"status":"ok","message":"Meta","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}}},"x-oanor-pricing":[{"slug":"free","name":"Free","price_cents_month":0,"monthly_call_quota":760,"rps_limit":2,"hard_limit":true},{"slug":"starter","name":"Starter","price_cents_month":110,"monthly_call_quota":6100,"rps_limit":8,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":1900,"monthly_call_quota":125000,"rps_limit":20,"hard_limit":true},{"slug":"mega","name":"Mega","price_cents_month":5500,"monthly_call_quota":645000,"rps_limit":50,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/bbcode-api"}