NewConnect Claude, Gemini, ChatGPT, and other AI agents to API Ninjas via our MCP server

Hobbies API

The Hobbies API provides thousands of interesting hobby ideas for all types of environments.

(4.3)

From 9,519 users

2,900+

Applications using this API

API Status

Online - All Systems Operational

API Response Times

Average
P50
P75
P90
P95
416ms435ms465ms854ms1328ms

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

  • category  optional

    Possible values are: general, sports_and_outdoors, education, collection, competition, observation.

Headers

  • X-Api-Key  required

    API Key associated with your account.

Response

A JSON object with the following fields or an error if the request is unsuccessful.

  • hobby

    Name of the hobby.

  • link

    URL to a Wikipedia page about the hobby.

  • category

    Category of the hobby (e.g., general, sports_and_outdoors, education).

Sample Request Live Demo!

category

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=general

Headers

X-Api-KeyLog in or sign up to get your API Key

Sample Response

JSON
{
    hobby:"Acroyoga",
    link:"https://wikipedia.org/wiki/Acroyoga",
    category:"general"
}

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

  • 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.
  • Sign up for a free account to instantly get your API key, then pass it in the X-Api-Key header on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.
  • 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.
  • 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.
  • Pass the optional category parameter to the /v1/hobbies endpoint, choosing from general, sports_and_outdoors, education, collection, competition, or observation; omitting it returns a random hobby from any category. Browse other inspiration APIs in the API catalog.
  • Each call returns a JSON object with three fields: hobby (the name of the hobby), link (a URL to a Wikipedia page about it), and category (the hobby's category). For more discovery-style ideas, pair it with the Bucket List API.
  • Yes, the sports_and_outdoors category surfaces active hobby ideas, and the link field provides a Wikipedia reference for each one. To build structured workouts alongside it, combine it with the Exercises API.
  • The Hobbies API draws from thousands of hobby ideas spanning the six supported categories, with each result linked to a corresponding Wikipedia page via the link field. For other fact-style content, see the Facts API.