Skip to content
GuidesChecked 21 November 2026

136,064 openapi.yaml files on GitHub

45.3 in 100 OpenAPI files on GitHub declare a security scheme, counted on 21 November 2026.

Free for one project and 100 votes. Paid plans start with a 14 day trial, no card.

File names

Eight numbers on the five file names that hold an API description and how they split.

136,064 files have openapi.yaml in the name, and YAML spec files outnumber JSON ones 1.4 to 1.

The current name leads the older one, and YAML leads JSON by a small margin.

API description file names
StatisticNumber
openapi.yaml files136,064
openapi.yml files15,520
openapi.json files86,016
swagger.yaml files89,984
swagger.json files76,160
Spec file names read403,744
YAML to JSON names1.4 to 1
openapi to older names1.4 to 1

Security

Eight numbers on how API descriptions declare who may call them.

A security scheme is in 45.3 in 100 of openapi.yaml files, and bearer outnumbers API key 1.2 to 1.

Fewer than half declare any scheme, and OAuth 2 is named in only 9.0 in 100.

Security schemes
StatisticNumber
Security scheme files61,696
Security scheme share45.3 in 100
Bearer files35,392
Bearer share26.0 in 100
apiKey files28,608
Bearer to apiKey1.2 to 1
oauth2 files12,256
oauth2 share9.0 in 100

Behavior

Eight numbers on pagination, retries, webhooks and rate limits in API descriptions.

Pagination is named in 12.0 in 100 of openapi.yaml files, and a rate limit field in only 1.4 in 100.

Offset paging is named more often than cursor paging, and webhooks are rare.

Paging, retries and limits
StatisticNumber
pagination files16,320
pagination share12.0 in 100
cursor files10,184
offset files14,528
offset to cursor1.4 to 1
webhooks files4,936
Retry-After files7,344
x-ratelimit files1,900

Documentation

Eight numbers on the fields that make an API description readable by people and tools.

An operation id is in 57.7 in 100 of openapi.yaml files, and the word example in 55.9 in 100.

Summaries and servers are near universal, and links to outside documentation are rare.

Documentation fields
StatisticNumber
operationId files78,464
operationId share57.7 in 100
Summary share79.6 in 100
Example files76,032
Examples files25,024
Servers share73.9 in 100
Tag share64.5 in 100
externalDocs files12,096

Error codes

Eight numbers on which error codes API descriptions list.

A 404 is in 46.9 in 100 of openapi.yaml files, and a 429 for too many requests in 14.8 in 100.

Missing and unauthorized answers are the usual pair, and rate limit answers are listed in one file in seven.

Error status codes
StatisticNumber
404 files63,872
404 share46.9 in 100
401 files47,616
401 share35.0 in 100
403 files33,728
500 files45,376
429 files20,096
429 share14.8 in 100

What is in the file

Forty numbers in one file

Every figure has its own CSV row, with a group and a unit.

Five groups

File names, security, behavior, documentation fields and error codes.

Counts, not APIs

The file holds totals, shares and ratios, and names no API, vendor or author.

Easy to cite

Quote a single figure or the full set, and name this page and the read date.

How the files were counted

One code search for each word, inside files with the same name.

Fix the file name

Each of 43 word searches was limited to files with openapi.yaml in the name, so every share has the same base.

Pace the requests

The public code search got one request at a time, with seven seconds or more between them.

Repeat a partial answer

A result flagged as partial was asked for again, up to three more times.

Work out shares in code

Shares and ratios were computed from the counts, and each published figure was asserted first.

What an API description should hold

A spec worth reading carries a summary on each operation, as 79.6 in 100 files do, with servers in 73.9 in 100 and an operationId in 57.7. Security schemes are in 45.3 in 100 files, mostly Bearer at 26.0 against oauth2 at 9.0.

Errors are named unevenly, with 404 in 46.9 in 100 files, 401 in 35.0 and 429 in 14.8, and Retry-After is in 7,344 files. A spec that documents the rate limit response and the paging style covers ground that pagination, in 12.0 in 100 files, shows few files cover.

What these numbers leave out

  • These are files and not APIs, and a description copied into many projects counts once for each copy.
  • A word is matched anywhere in the file, so a description that mentions pagination adds a file even without a paging rule.
  • Status codes are numbers, and a number can also sit in an example value, so the error shares are an upper reading.
  • Large counts come back rounded, so a gap under 10 percent is no gap.
  • Only files with these names are read, so descriptions kept under other names are missing.
  • Code search cannot be limited by date, so old descriptions stay in every total.
  • The searched words are English, so a description written in another language is undercounted for the documentation fields.
  • A template and a finished description count alike, so hand written and generated files are not told apart.
  • The page names no API, vendor or author, and each figure is a count read on 21 November 2026.
  • A file name search matches any name that contains the text, so openapi.yaml also counts longer names around it.

API description file questions

How many API description files are public?

136,064 have openapi.yaml in the name, and 403,744 carry one of the five common names.

YAML or JSON?

YAML files outnumber JSON files 1.4 to 1 across the five names.

How many declare a security scheme?

61,696 files, which is 45.3 in 100 of the openapi.yaml files.

Bearer tokens or API keys?

Bearer token schemes are named in 35,392 files and API key schemes in 28,608, which is 1.2 to 1.

How common is OAuth 2 in API descriptions?

It is named in 12,256 files, 9.0 in 100.

Offset or cursor paging?

The word offset is in 14,528 files and cursor in 10,184, which is 1.4 to 1.

How many describe webhooks?

Only 4,936 files carry a webhooks section.

How many list a rate limit answer?

The code 429 is in 20,096 files, which is 14.8 in 100.

How many give each operation an id?

78,464 files, which is 57.7 in 100.

How many files list a servers section?

A servers list is in 73.9 in 100 of the openapi.yaml files, so most name at least one address.

How many link to outside documentation?

Only 12,096 files carry a link to documentation kept elsewhere.

May a page quote these figures?

Yes, with this page named and the read date. Every figure is one of the 40 rows in openapi-file-statistics-2026-11.csv, so a reader can check it.

Ship the release, then ask what is next

Your first board is free, with one project and 100 votes. The 14 day trial of Lite or Pro needs no card.