Skip to content

API

Browse the API endpoints available on this site.

Public endpoints

Open a link to view its GET response. Most endpoints return JSON; the social preview endpoint returns a JPEG image.

  • /api/hello

    Returns sample people as JSON for the data-fetching demo.

  • /api/og

    Returns a social preview image. Customize it with title, description, and path query parameters.

  • /api/params/one/two

    Returns the URL path segments as JSON. Replace one/two with your own segments.

  • /api/search-index

    Returns the pages and content used by the site search.

  • /api/searchWithApi

    Returns up to ten sample users. Add a q query parameter to search by name.