Read Directly

import httpx

spec = httpx.get("https://docs.h3hub.cn/openapi.public.json").json()
for path, methods in spec["paths"].items():
    print(path, ",".join(methods.keys()))

Generate a Client

Use an OpenAPI generator:

npx @openapitools/openapi-generator-cli generate \
  -i https://docs.h3hub.cn/openapi.public.json \
  -g python \
  -o ./h3hub-client

Or let an agent read the JSON directly to write calls.

Note

The public OpenAPI only contains external developer endpoints; /internal/* and /admin/* are excluded.