← Back to API Ninjas
Get a random dad joke
Returns one or more random dad jokes; `limit` returns up to 100 jokes in a 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/dadjokes"
});
console.log(output);Query parameters
limit
number
How many jokes to return. Must be between 1 and 100. Default is 1. (Default: 1)