More specifically, I've taken the OpenAPI Directoryopens in a new tab - an amazing project that has collected the OpenAPI specifications for thousands of popular APIs, from AWS to Stripe to GitHub - and built a tiny & fast index to query it, for every single API endpoint listed (all 226,379 of them) For each spec: Create an initially empty list of prefixes unique to this spec Loop through the endpoints in this spec, and build a list of common prefixes: If a prefix for this spec already covers this endpoint, we're good, skip it. If we can't, push this specific path as a prefix for this spec Build an index that maps these prefixes to this spec Take any sets of still-conflicting prefixes in this index (i.e.