Release Notes Index Lookups API

On-demand resolution helpers.

GitHub OpenAPI

Operations 5

POST /lookups On-demand GitHub source materialization #
GET /lookups/source-by-slug Resolve a bare source slug to its canonical org-scoped home #
GET /lookups/source-by-coordinate Resolve a GitHub owner/repo coordinate to an indexed source (read-only, no… #
GET /lookups/product-by-slug Resolve a bare product slug to its canonical org-scoped home #
GET /lookups/by-domain Resolve a domain to its owning org and any matching products #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/releases-sh:releases-sh-lookups-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

releases-sh-lookups-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Releases Lookups API
  description: 'REST API for the Releases changelog registry — orgs, products, sources, releases, and search.


    **Links:** releases.sh · Narrative docs · Errors · MCP server'
  version: 1.0.0
servers:
- url: https://api.releases.sh/v1
  description: Production
tags:
- name: Lookups
  description: On-demand resolution helpers.
paths:
  /lookups:
    post:
      operationId: postLookups
      tags:
      - Lookups
      summary: On-demand GitHub source materialization
      description: 'Resolves a GitHub `org/repo` coordinate to a registry source. Idempotent — if the source already exists, returns it with `status: "existing"`; otherwise probes GitHub, inserts a hidden `on_demand` source row (and a new `on_demand` org when no curated org claims the segment), and ingests up to 100 releases.


        Negative results (`not_found`, `empty`) are cached in KV (24h and 6h respectively) so repeat probes don''t re-hit GitHub. `deferred` outcomes (rate-limit, 5xx) are not cached and let the next cron pass retry.


        Body requires `provider: "github"` — other providers are explicitly rejected, not silently accepted. Coordinate must match `{org}/{repo}` (case-insensitive; URLs are deduped via `LOWER(sources.url)`).'
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                provider:
                  type: string
                  const: github
                coordinate:
                  type: string
                  pattern: ^[^/\s]+\/[^/\s]+$
              required:
              - provider
              - coordinate
      responses:
        '200':
          description: Lookup result. Inspect `status` to disambiguate outcomes.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                    - indexed
                    - existing
                    - empty
                    - not_found
                    - deferred
                  source:
                    type: object
                    properties:
                      id:
                        type: string
                      slug:
                        type: string
                      name:
                        type: string
                      type:
                        type: string
                      url:
                        type: string
                      orgId:
                        type:
                        - string
                        - 'null'
                      productId:
                        type:
                        - string
                        - 'null'
                      isHidden:
                        type:
                        - boolean
                        - 'null'
                      discovery:
                        type: string
                        enum:
                        - curated
                        - agent
                        - on_demand
                      metadata:
                        type:
                        - string
                        - 'null'
                      stars:
                        anyOf:
                        - type: integer
                          minimum: 0
                          maximum: 9007199254740991
                        - type: 'null'
                      starsFetchedAt:
                        type:
                        - string
                        - 'null'
                      createdAt:
                        type: string
                    required:
                    - id
                    - slug
                    - name
                    - type
                    - url
                    - orgId
                    - productId
                    - metadata
                    additionalProperties: {}
                  releases:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        sourceId:
                          type: string
                        version:
                          type:
                          - string
                          - 'null'
                        title:
                          type: string
                        url:
                          type:
                          - string
                          - 'null'
                        publishedAt:
                          type:
                          - string
                          - 'null'
                      required:
                      - id
                      - sourceId
                      - version
                      - title
                      - url
                      - publishedAt
                      additionalProperties: {}
                  relatedOrg:
                    anyOf:
                    - type: object
                      properties:
                        org:
                          type: object
                          properties:
                            id:
                              type: string
                            slug:
                              type: string
                            name:
                              type: string
                          required:
                          - id
                          - slug
                          - name
                          additionalProperties: false
                        sources:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                              slug:
                                type: string
                              name:
                                type: string
                              url:
                                type: string
                            required:
                            - id
                            - slug
                            - name
                            - url
                            additionalProperties: false
                      required:
                      - org
                      - sources
                      additionalProperties: false
                    - type: 'null'
                required:
                - status
                - relatedOrg
                additionalProperties: false
        '400':
          description: Missing JSON body, unsupported provider, or malformed coordinate
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      x-releases-visibility: public
  /lookups/source-by-slug:
    get:
      operationId: getLookupsSourceBySlug
      tags:
      - Lookups
      summary: Resolve a bare source slug to its canonical org-scoped home
      description: 'Translation aid for clients holding a bare source slug. Returns the org-scoped tuple `{ sourceId, sourceSlug, orgSlug }` so callers can rewrite to the canonical `/v1/orgs/:orgSlug/sources/:sourceSlug` path before the bare API path stops resolving slugs (#698 final piece).


        A slug owned by one org returns that row and carries `Sunset: Sun, 01 Nov 2026 00:00:00 GMT`. A slug owned by more than one org returns 409 with `details.candidates` (`org/slug` + `src_` id) instead of picking a row (#2525).'
      parameters:
      - name: slug
        in: query
        required: true
        schema:
          type: string
        description: Bare source slug to resolve.
      responses:
        '200':
          description: Canonical home for the slug
          content:
            application/json:
              schema:
                type: object
                properties:
                  sourceId:
                    type: string
                  sourceSlug:
                    type: string
                  orgSlug:
                    type: string
                required:
                - sourceId
                - sourceSlug
                - orgSlug
                additionalProperties: false
          headers:
            Sunset:
              description: RFC 8594 sunset date for this resolution shape
              schema:
                type: string
        '400':
          description: Missing `slug` query parameter
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: No source matches the slug
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '409':
          description: Slug matches more than one org
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      x-releases-visibility: public
      security:
      - {}
      - bearerAuth: []
  /lookups/source-by-coordinate:
    get:
      operationId: getLookupsSourceByCoordinate
      tags:
      - Lookups
      summary: Resolve a GitHub owner/repo coordinate to an indexed source (read-only, no…
      description: 'Read-only counterpart to `POST /v1/lookups`: given `coordinate=owner/repo` (optionally `github:owner/repo`), returns the canonical org-scoped tuple `{ sourceId, sourceSlug, orgSlug }` for a matching **visible** catalog source, or 404 when the repo isn''t indexed. Unlike the POST, it never probes GitHub or materializes a hidden stub. Matches `sources.url` case-insensitively; on a multi-row case collision it prefers the exact-case row, then the oldest by `(createdAt, id)`.'
      parameters:
      - name: coordinate
        in: query
        required: true
        schema:
          type: string
        description: GitHub coordinate, e.g. "honojs/hono" or "github:honojs/hono".
      responses:
        '200':
          description: Canonical home for the indexed repo
          content:
            application/json:
              schema:
                type: object
                properties:
                  sourceId:
                    type: string
                  sourceSlug:
                    type: string
                  orgSlug:
                    type: string
                required:
                - sourceId
                - sourceSlug
                - orgSlug
                additionalProperties: false
        '400':
          description: Missing `coordinate`, or not a parseable github owner/repo coordinate
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: No visible source matches the coordinate
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      x-releases-visibility: public
      security:
      - {}
      - bearerAuth: []
  /lookups/product-by-slug:
    get:
      operationId: getLookupsProductBySlug
      tags:
      - Lookups
      summary: Resolve a bare product slug to its canonical org-scoped home
      description: 'Same semantics as `/v1/lookups/source-by-slug` but for products. Returns `{ productId, productSlug, orgSlug }` when one org owns the slug, with `Sunset: Sun, 01 Nov 2026 00:00:00 GMT`. A slug owned by more than one org returns 409 with `details.candidates` (#2525).'
      parameters:
      - name: slug
        in: query
        required: true
        schema:
          type: string
        description: Bare product slug to resolve.
      responses:
        '200':
          description: Canonical home for the slug
          content:
            application/json:
              schema:
                type: object
                properties:
                  productId:
                    type: string
                  productSlug:
                    type: string
                  orgSlug:
                    type: string
                required:
                - productId
                - productSlug
                - orgSlug
                additionalProperties: false
          headers:
            Sunset:
              description: RFC 8594 sunset date for this resolution shape
              schema:
                type: string
        '400':
          description: Missing `slug` query parameter
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: No product matches the slug
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '409':
          description: Slug matches more than one org
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      x-releases-visibility: public
      security:
      - {}
      - bearerAuth: []
  /lookups/by-domain:
    get:
      operationId: getLookupsByDomain
      tags:
      - Lookups
      summary: Resolve a domain to its owning org and any matching products
      description: 'Normalizes the input domain (lowercased, no scheme/path/www), exact-matches against `organizations.domain` (primary) and `domain_aliases.domain` (alias for either an org or a product), and returns whatever it finds.


        On a complete miss, when `listing-self-serve-enabled` is on, the handler may probe `https://{domain}/.well-known/releases.json` in-request and materialize a stub org (basis: declared) via the same core as the listing activate path and the domain-demand cron. Probe budget is per-domain (a few attempts per ~10 min rolling window) plus a per-IP rate limit on the outbound branch; budget exhaustion returns 404 (not 429). Misses still record `domain_demand` for the nightly sweep backstop.


        Products can be populated even when `org` is null — a product alias may point at a domain its parent org doesn''t claim as primary.'
      parameters:
      - name: domain
        in: query
        required: true
        schema:
          type: string
        description: Hostname to resolve. Server normalizes (lowercases, strips scheme/path/www).
      responses:
        '200':
          description: Resolved org and/or product matches (including a just-materialized stub)
          content:
            application/json:
              schema:
                type: object
                properties:
                  domain:
                    type: string
                  org:
                    anyOf:
                    - type: object
                      properties:
                        id:
                          type: string
                        slug:
                          type: string
                        name:
                          type: string
                        domain:
                          type:
                          - string
                          - 'null'
                        description:
                          type:
                          - string
                          - 'null'
                        category:
                          type:
                          - string
                          - 'null'
                        avatarUrl:
                          type:
                          - string
                          - 'null'
                        matchedVia:
                          type: string
                          enum:
                          - primary
                          - alias
                        status:
                          type: string
                          enum:
                          - stub
                          - tracked
                        locations:
                          type: array
                          items:
                            type: object
                            properties:
                              url:
                                type: string
                              feed:
                                type: string
                              github:
                                type: string
                              appstore:
                                type: string
                              file:
                                type: string
                              title:
                                type:
                                - string
                                - 'null'
                              canonical:
                                type: boolean
                              basis:
                                type: string
                                enum:
                                - curator
                                - declared
                                - detected
                                - generated
                              productId:
                                type:
                                - string
                                - 'null'
                              sourceId:
                                type:
                                - string
                                - 'null'
                              publish:
                                type: string
                                const: push
                              path:
                                type: string
                            required:
                            - canonical
                            - basis
                            - productId
                            - sourceId
                            additionalProperties: false
                      required:
                      - id
                      - slug
                      - name
                      - domain
                      - description
                      - category
                      - avatarUrl
                      - matchedVia
                      additionalProperties: false
                    - type: 'null'
                  products:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        slug:
                          type: string
                        name:
                          type: string
                        orgId:
                          type: string
                        orgSlug:
                          type: string
                        orgName:
                          type: string
                        category:
                          anyOf:
                          - type: string
                            enum:
                            - ai
                            - cloud
                            - commerce
                            - crm
                            - database
                            - design
                            - developer-tools
                            - devops
                            - finance
                            - framework
                            - infrastructure
                            - observability
                            - productivity
                            - security
                          - type: 'null'
                        kind:
                          anyOf:
                          - type: string
                            enum:
                            - platform
                            - sdk
                            - mobile
                            - desktop
                            - docs
                            - integration
                            - tool
                          - type: 'null'
                      required:
                      - id
                      - slug
                      - name
                      - orgId
                      - orgSlug
                      - orgName
                      - category
                      additionalProperties: false
                required:
                - domain
                - org
                - products
                additionalProperties: false
        '400':
          description: Missing or invalid `domain` query parameter
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: Domain doesn't match any registered org or product (and JIT found no valid manifest)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Per-IP rate limit on the outbound JIT probe branch
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      x-releases-visibility: public
      security:
      - {}
      - bearerAuth: []
components:
  schemas:
    ErrorEnvelope:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Stable, specific machine code (e.g. `not_found`, `rate_limited`). Never reworded once shipped, but open-ended — branch defensively on codes you don't recognize.
            type:
              type: string
              enum:
              - validation
              - unauthorized
              - forbidden
              - insufficient_scope
              - not_found
              - conflict
              - too_large
              - rate_limited
              - upstream
              - unavailable
              - internal
              description: Coarse category from a fixed set; determines the HTTP status. Safe to switch on.
            message:
              type: string
              description: Human-readable explanation. May change; do not parse.
            details:
              description: Optional structured context carried by select codes (e.g. `database_not_initialized`).
          required:
          - code
          - type
          - message
      required:
      - error
      description: Standardized error response — every non-2xx response uses this shape. Switch on `error.type` (fixed set → HTTP status) or match `error.code` (specific, stable). See https://releases.sh/docs/api/errors.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: relk_… | relu_… | OAuth JWT
      description: Machine/operator tokens use the relk_ prefix; self-serve read-only user keys use relu_; Sign in with Releases supplies an OAuth access token. Required scope depends on the endpoint.