Hobbies API
The Hobbies API provides thousands of interesting hobby ideas for all types of environments.
From 9,519 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 416ms | 435ms | 465ms | 854ms | 1328ms |
Similar APIs
Didn't find what you were looking for? Suggest an improvement
/v1/hobbies GET
https://api.api-ninjas.com/v1/hobbies
Returns a random hobby and a Wikipedia link detailing the hobby.
Parameters
categoryoptionalPossible values are:
general,sports_and_outdoors,education,collection,competition,observation.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
A JSON object with the following fields or an error if the request is unsuccessful.
hobbyName of the hobby.
linkURL to a Wikipedia page about the hobby.
categoryCategory of the hobby (e.g.,
general,sports_and_outdoors,education).
Sample Request Live Demo!
Try our APIs in the API playground
Sign up for a free API key to get started — no credit card required.
https://api.api-ninjas.com/v1/hobbies?category=generalHeaders
X-Api-KeyLog in or sign up to get your API KeySample Response
Code Examples
1
2
curl -X GET "https://api.api-ninjas.com/v1/hobbies" \
-H "X-Api-Key: YOUR_API_KEY"If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.
Frequently Asked Questions
Can I use the Hobbies API for commercial purposes?
Yes, but you must have a premium subscription. Commercial use of the Hobbies API is not permitted on the free tier. See our pricing page to choose a plan that fits your needs.How do I get an API key and start using the Hobbies API?
Sign up for a free account to instantly get your API key, then pass it in theX-Api-Keyheader on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.What happens if I exceed my quota for the month?
Your API requests will simply be denied once you hit your monthly quota — you will never be charged more than the plan you signed up for. To increase your quota, you can upgrade your plan any time on our pricing page.What happens if a request to the Hobbies API fails?
The API responds with a standard HTTP status code and a JSON error message describing the problem. See our error codes reference for the full list of codes and how to resolve each one, or contact support if you need help.How do I get a hobby idea from a specific category?
Pass the optionalcategoryparameter to the/v1/hobbiesendpoint, choosing fromgeneral,sports_and_outdoors,education,collection,competition, orobservation; omitting it returns a random hobby from any category. Browse other inspiration APIs in the API catalog.What fields does the Hobbies API response include?
Each call returns a JSON object with three fields:hobby(the name of the hobby),link(a URL to a Wikipedia page about it), andcategory(the hobby's category). For more discovery-style ideas, pair it with the Bucket List API.Can I use the Hobbies API to suggest active outdoor pursuits?
Yes, thesports_and_outdoorscategory surfaces active hobby ideas, and thelinkfield provides a Wikipedia reference for each one. To build structured workouts alongside it, combine it with the Exercises API.How many hobby ideas does the API cover and what is the source?
The Hobbies API draws from thousands of hobby ideas spanning the six supported categories, with each result linked to a corresponding Wikipedia page via thelinkfield. For other fact-style content, see the Facts API.