# Kuaishou API

**Canonical:** https://apis.io/apis/kuaishou/kuaishou-api/  
**Provider:** Kuaishou — https://apis.io/providers/kuaishou/  
**Base URL:** https://open.kuaishou.com  
**Documentation:** https://open.kuaishou.com/docs/develop/server/code2Session.html

Kuaishou API is one of 4 APIs that [Kuaishou](https://apis.io/providers/kuaishou/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 1 JSON Schema definition. The published artifact set on APIs.io includes an OpenAPI specification and 1 JSON Schema.

Kuaishou API as documented publicly. Contract generated from the documentation by API Evangelist (2026-11-27); not the provider's own document.

## Operations (1)

| Method | Path | Summary |
|---|---|---|
| POST | `/oauth2/mp/code2session` | 小程序使用 js_code 置换 session_key 和 open_id。 |

## Machine-readable artifacts (2)

- **OpenAPI** — https://artifacts.apis.io/kuaishou/openapi/_ae-authored/kuaishou-openapi-generated.yml
- **JSONSchema** — https://artifacts.apis.io/kuaishou/json-schema/kuaishou-post-oauth2-mp-code2-session-response-schema.json

## Other Kuaishou APIs (3)

- [Kuaishou Open Platform API](https://apis.io/apis/kuaishou/open-platform/)
- [Kwai for Business Marketing API](https://apis.io/apis/kuaishou/kwai-for-business/)
- [Kling AI API](https://apis.io/apis/kuaishou/kling-ai/)

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/kuaishou` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/kuaishou/kuaishou-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/kuaishou/.
