CribScore
Back to docs

Examples

TypeScript Example for the Childcare API

TypeScript teams can start with raw `fetch`, then layer in the OpenAPI contract or MCP depending on the integration style.

Serverless and app backends

This pattern fits Next.js server components, route handlers, queue workers, and internal API adapters.

TypeScript Trust Read

const response = await fetch("https://api.cribscore.co/v1/trust/jurisdictions?limit=25", {
  headers: {
    Authorization: "Bearer YOUR_API_KEY",
  },
});

const trust = await response.json();
console.log(trust);

Related guides