Docs/Fonts

GET/v1/fonts5 credits

Fonts

The real typography a site loads. Resolves the page's full CSS cascade (linked stylesheets, @import, inline styles) and returns every @font-face file with its family, weight, style and format, Google Fonts links, preloaded files - plus a grouped per-family summary answering "what fonts does this site use, in which weights?" in one look.

  • Match a brand's typography in emails, ads, or PDFs.
  • Download the actual woff2 files a site serves.
  • Detect which fonts a competitor loads.
Parameters
urlrequiredThe page to extract from. With or without protocol (https:// is assumed).
fieldsoptionalComma-separated list of fields to return (e.g. fields=families). Omit for the full object. url is always included. Trims the response only - the credit cost is unchanged. see the fields table below
fields values
fontsEvery font source found: @font-face files (with weight/style/format), Google Fonts declarations, preloads.
familiesGrouped per-family summary: weights, styles and file count per family.
googleFontsLinksRaw Google Fonts <link> hrefs found on the page.
countTotal number of font sources found.

Build a request

GEThttps://miromiro.app/api/v1/v1/fonts?url=stripe.com

urlrequired
fields

Nothing selected returns the full response.

Options at their default are left out of the URL - the API assumes them. Auth isn't shown here: send your key as an Authorization: Bearer header (see the example below).

Response

Authorization: Bearer mm_live_…
Response fields
urlstringThe resolved URL that was extracted.
families[]arrayGrouped per-family summary - what most callers want. Each family with the weights and styles it ships and how many files serve it.
fonts[]arrayEach { source, family, url, weight, style, format }. source ∈ font-face, google-fonts, preload. weight can be a variable-font range like "100 900"; format ∈ woff2, woff, ttf, otf, eot.
googleFontsLinks[]string[]Raw Google Fonts <link> hrefs found on the page.
countnumberTotal number of font sources found.
usageobjectMetering for this call: credits spent this month, your monthly cap (null = unlimited), credits remaining, what this call cost (0 on cache hits), and whether it was served from the 24-hour cache.

Example request

https://miromiro.app/api/v1/extract?url=stripe.com&access_key=mm_live_…