← Back to API Ninjas
GET/v1/advice

Get a random piece of advice

Returns one random piece of life advice, drawn from a set of over 5000 entries. Takes no parameters and returns a different result each call.

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/advice" }); console.log(output);
    Orthogonal - Giving AI agents the tools they need.