import json with open("vertexdc_openapi.json", "r") as f: data = json.load(f) for path in data.get("paths", {}): if "/api/users" in path: print(path)