API Reference
Font Serving
Serve fonts directly to websites and applications.
CSS Endpoint
GET
/api/serve/:fontId/cssReturns a CSS stylesheet with @font-face declarations.
<link rel="stylesheet" href="https://needfont.app/api/serve/abc123/css?key=YOUR_KEY">Direct Font File
GET
/api/serve/:fontId/fileReturns the raw font file with appropriate Content-Type headers.
Query Parameters
format- Desired format (woff2, woff, ttf, otf)key- Your API key
CORS & Caching
Font serving endpoints include appropriate CORS headers for cross-origin requests and caching headers for optimal performance. Fonts are cached for 1 year with immutable cache-control directives.
Usage Tracking
Each font request is tracked against your API key. View usage statistics in Settings → API Keys → Usage. Rate limits apply based on your plan.