← Back to API Ninjas
Get a random hobby
Returns a random hobby suggestion, optionally restricted to a `category` such as general, sports_and_outdoors or education.
API Ninjas·$0.001 per call
Example code
// Using @orth/sdk - The simplest way to call APIs
// Install: npm install @orth/sdk
import Orthogonal from "@orth/sdk";
const orthogonal = new Orthogonal({
apiKey: process.env.ORTHOGONAL_API_KEY,
});
const output = await orthogonal.run({
api: "api-ninjas",
path: "/v1/hobbies"
});
console.log(output);Query parameters
category
string
Filter hobbies by category. Possible values are: general, sports_and_outdoors, education, collection, competition, observation. (Allowed: general, sports_and_outdoors, education, collection, competition, observation)