{"openapi":"3.1.0","info":{"title":"Advice Slip API","version":"1.0.0","description":"Short pieces of advice via the open Advice Slip API — no key. The random endpoint returns a random advice slip; the advice endpoint fetches a specific slip by its id; and the search endpoint finds slips containing a phrase. Each slip carries its id and advice text. Real advice, with id lookups cached for speed — no key. 4 endpoints. Ideal for daily-advice widgets, chatbots, fortune-cookie features, loading screens and onboarding delight.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/advice-api","description":"oanor gateway"}],"tags":[{"name":"Advice"},{"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/advice":{"get":{"operationId":"get_v1_advice","tags":["Advice"],"summary":"A slip by id","description":"","parameters":[{"name":"id","in":"query","required":true,"description":"Numeric advice id","schema":{"type":"string"},"example":"42"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"slip":{"id":42,"advice":"Always double check you actually attached the file to the email."}},"meta":{"timestamp":"2026-06-08T09:48:44.959Z","request_id":"64047de1-f695-4faf-8450-a390168c44cb"},"status":"ok","message":"Advice retrieved successfully","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/random":{"get":{"operationId":"get_v1_random","tags":["Advice"],"summary":"A random advice slip","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"slip":{"id":200,"advice":"Sarcasm is the lowest form of wit. Employ correctly with apt timing."}},"meta":{"timestamp":"2026-06-08T09:48:45.149Z","request_id":"a7503edb-68ff-416e-a8ba-305527eeef16"},"status":"ok","message":"Advice retrieved successfully","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/search":{"get":{"operationId":"get_v1_search","tags":["Advice"],"summary":"Search the collection","description":"","parameters":[{"name":"q","in":"query","required":true,"description":"Phrase to search for (min 2 chars)","schema":{"type":"string"},"example":"money"},{"name":"limit","in":"query","required":false,"description":"Max results (1-100, default 20)","schema":{"type":"string"},"example":"20"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"count":1,"query":"money","slips":[{"id":122,"advice":"You spend half your life asleep or in bed. It's worth spending money on a good mattress, decent pillows and a comfy duvet."}],"total":"1"},"meta":{"timestamp":"2026-06-08T09:48:45.382Z","request_id":"7139d70d-e4fa-4b21-8165-98faac91dda3"},"status":"ok","message":"Search results retrieved successfully","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":{"service":"advice-api","endpoints":{"GET /v1/meta":"This document.","GET /v1/advice":"A specific slip by id (id=).","GET /v1/random":"A random advice slip.","GET /v1/search":"Search the collection for a phrase (q=, min 2 chars, limit=)."},"description":"Short pieces of advice via the open Advice Slip API: pull a random advice slip, fetch a specific slip by id, or search the collection for slips containing a phrase. Real advice, no key."},"meta":{"timestamp":"2026-06-08T09:48:45.475Z","request_id":"617a0a75-21b2-4d00-8086-40aabda71bc0"},"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":7400,"rps_limit":2,"hard_limit":true},{"slug":"basic","name":"Basic","price_cents_month":450,"monthly_call_quota":99500,"rps_limit":8,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":2000,"monthly_call_quota":563500,"rps_limit":20,"hard_limit":true},{"slug":"mega","name":"Mega","price_cents_month":6000,"monthly_call_quota":2740000,"rps_limit":50,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/advice-api"}