Xiaomi website screenshot

Xiaomi

Xiaomi is a multinational technology company headquartered in Beijing, China, that designs, develops, and sells a wide range of consumer electronics and related software services. The company is known for its smartphones, laptops, smart home devices, and other innovative products. Xiaomi offers developer APIs for IoT device control, cloud storage (Galaxy FDS), account/identity (Open API), machine learning (Cloud-ML), and AI language models (MiMo).

3 APIs 0 Features
Consumer ElectronicsIoTSmart HomeMobileArtificial IntelligenceCloud StorageMachine Learning

APIs

Xiaomi Open API

The Xiaomi Open API provides OAuth 2.0 based access to user profile data, contact information, friend lists, and identity verification for Xiaomi account holders. It enables thi...

Xiaomi Galaxy FDS API

Xiaomi Galaxy File Data Storage (FDS) is a cloud object storage service offering a RESTful API for storing, retrieving, and managing objects and buckets. It supports multipart u...

Xiaomi MiMo AI API

The Xiaomi MiMo AI API provides OpenAI-compatible access to Xiaomi's MiMo large language models, including reasoning, coding, multimodal, and text-to-speech variants. Developers...

Collections

Pricing Plans

Xiaomi Plans Pricing

1 plans

PLANS

Rate Limits

Xiaomi Rate Limits

1 limits

RATE LIMITS

FinOps

Xiaomi Finops

FINOPS

Semantic Vocabularies

Xiaomi Context

20 classes · 2 properties

JSON-LD

API Governance Rules

Xiaomi API Rules

8 rules · 5 warnings 3 info

SPECTRAL

JSON Structure

Xiaomi User Profile Structure

0 properties

JSON STRUCTURE

Example Payloads

Resources

🔗
LinkedIn
LinkedIn
🔗
Website
Website
🌐
DeveloperPortal
DeveloperPortal
👥
GitHubOrganization
GitHubOrganization
📦
SDKs
SDKs
📦
SDKs
SDKs
🔗
JSONSchema
JSONSchema
🔗
JSONSchema
JSONSchema
🔗
JSONLDContext
JSONLDContext
🔗
Vocabulary
Vocabulary

Sources

Raw ↑
opencollection: 1.0.0
info:
  name: Xiaomi Open API
  version: 1.0.0
request:
  auth:
    type: oauth2
    flow: authorization_code
    authorizationUrl: https://account.xiaomi.com/oauth2/authorize
    accessTokenUrl: https://account.xiaomi.com/oauth2/token
    credentials:
      clientId: '{{clientId}}'
      clientSecret: '{{clientSecret}}'
items:
- info:
    name: User
    type: folder
  items:
  - info:
      name: Get User Profile
      type: http
    http:
      method: GET
      url: https://open.account.xiaomi.com/user/profile
      params:
      - name: clientId
        value: ''
        type: query
        description: The allocated application client ID.
      - name: token
        value: ''
        type: query
        description: The OAuth 2.0 access token.
    docs: Retrieves the authenticated user's profile information including nickname, user ID, and profile picture URL. Requires
      OAuth scope 1.
  - info:
      name: Get User OpenID
      type: http
    http:
      method: GET
      url: https://open.account.xiaomi.com/user/openidV2
      params:
      - name: clientId
        value: ''
        type: query
        description: The allocated application client ID.
      - name: token
        value: ''
        type: query
        description: The OAuth 2.0 access token.
    docs: Retrieves the authenticated user's unique OpenID for the application. Requires OAuth scope 3.
  - info:
      name: Get User Phone and Email
      type: http
    http:
      method: GET
      url: https://open.account.xiaomi.com/user/phoneAndEmail
      params:
      - name: clientId
        value: ''
        type: query
        description: The allocated application client ID.
      - name: token
        value: ''
        type: query
        description: The OAuth 2.0 access token.
    docs: Retrieves the authenticated user's phone number and email address. Fields may be empty if the user has not provided
      them. Requires OAuth scope 4 or 6.
  - info:
      name: Get User Friend List
      type: http
    http:
      method: GET
      url: https://open.account.xiaomi.com/user/relation
      params:
      - name: clientId
        value: ''
        type: query
        description: The allocated application client ID.
      - name: token
        value: ''
        type: query
        description: The OAuth 2.0 access token.
    docs: Retrieves the authenticated user's MiChat friend list. Requires OAuth scope 2.
- info:
    name: Authentication
    type: folder
  items:
  - info:
      name: Verify User Password
      type: http
    http:
      method: GET
      url: https://open.account.xiaomi.com/checkPassword
      params:
      - name: clientId
        value: ''
        type: query
        description: The allocated application client ID.
      - name: xmUserId
        value: ''
        type: query
        description: The Xiaomi user ID to verify.
      - name: callback
        value: ''
        type: query
        description: HTTPS callback URL for receiving the verification result.
    docs: Triggers a password verification flow for the specified Xiaomi user. Sends a callback to the provided HTTPS URL
      with the verification result and authorization code.
bundled: true