Find Similar APIs
find_similar_apisFind replacements or similar Apple APIs for a given documentation URL by checking deprecation notes, See Also groups, and topic siblings.
Instructions
Alternatives to one API, read from its page's JSON: for a deprecated API, first the pages its deprecation note names (Apple's replacements, scored 10/10), then its See Also group (8/10) and, with searchDepth "medium" or "deep", its Topics groups (6/10); "deep" also reads the See Also of the first results. The scores come from where an API was found, not from comparing APIs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiUrl | Yes | Starting API URL. Example: "https://developer.apple.com/documentation/uikit/uialertview" (finds modern alternatives) | |
| searchDepth | No | How thoroughly to search. "shallow" = direct recommendations only, "medium" = topic siblings, "deep" = full relationship analysis. Default: "medium" | medium |
| filterByCategory | No | Focus on specific functionality like "Animation", "Navigation", "Data". Keeps the See Also and Topics groups whose title contains it, in any case. | |
| includeAlternatives | No | Include functionally similar APIs that might be better choices. Default: true |