Redocly API Block - External API Example

Load OpenAPI specifications from external URLs and customize typography for brand consistency.

Overview

The Redocly API Block can load OpenAPI specifications from:

This flexibility allows you to document APIs hosted elsewhere or maintain specifications in a centralized location.

You can also customize the typography to match your brand. The default font stack includes system fonts for optimal rendering across platforms.

Syntax

<RedoclyAPIBlock 
    src='https://example.com/openapi.yaml' 
    typography='fontFamily: `"Source Sans Pro", sans-serif`' 
/>

Parameters

Example

This example loads an API specification from an external registry:

data-src=https://petstore3.swagger.io/api/v3/openapi.json
data-typography=fontFamily: `"Source Sans Pro", sans-serif`