Retrieve your mureka.ai account information and remaining credits

December 2, 2024

Table of contents

  1. Request Headers
  2. Query Parameters
  3. Responses
  4. Model
  5. Examples
  6. Try It

https://api.useapi.net/v1/mureka/profile/?…

Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
Query Parameters
  • account is optional when only one account configured. However, if you have multiple accounts configured, this parameter becomes required.
Responses
  • 200 OK

    {
        "user": {
            "id": "987654321",
            "user_id": 987654321,
            "stage_name": "useapi.net",
            "profile_image": "https://static-cos.mureka.ai/cos-prod/image/default.png",
            "is_vip": true,
            "vip_level": 7,
            "created_on": 123456789,
            "sid": 123456789,
            "register_ip": "192.168.0.1",
            "vip_start": 123456789,
            "vip_end": 123456789,
            "vip_name": "Pro Plan",
            "vip_level_name": "pro",
            "vip_period_name": "yearly",
            "created_on_UTC": "2024-10-27T16:09:54.000Z",
            "vip_start_UTC": "2024-10-27T16:23:15.000Z",
            "vip_end_UTC": "2024-11-27T22:23:15.000Z"
        },
        "credits": 15879,
        "feed_list_count": 9272
    }
    
  • 400 Bad Request

    {
        "error": "<Error message>",
        "code": 400
    }
    
  • 401 Unauthorized

    {
      "error": "Unauthorized",
      "code": 401
    }
    
Model
{ // TypeScript, all fields are optional
    user: {
        id: string
        user_id: number
        stage_name: string
        profile_image: string
        is_vip: boolean
        vip_level: number
        created_on: number
        sid: number
        register_ip: string
        vip_start: number
        vip_end: number
        vip_name: string
        vip_level_name: string
        vip_period_name: string
    }
    credits: number
    feed_list_count: number
}
Examples
  • curl "https://api.useapi.net/v1/mureka/profile/?account=account" \
       -H "Accept: application/json" \
       -H "Authorization: Bearer …" 
    
  • const token = "API token";
    const account = "Previously configured account"; 
    const apiUrl = `https://api.useapi.net/v1/mureka/profile/?account=${account}`; 
    const response = await fetch(apiUrl, {
      headers: {
        "Authorization": `Bearer ${token}`,
      },
    });
    const result = await response.json();
    console.log("response", {response, result});
    
  • import requests
    token = "API token"
    account = "Previously configured account"
    apiUrl = f"https://api.useapi.net/v1/mureka/profile/?account={account}"
    headers = {
        "Content-Type": "application/json", 
        "Authorization" : f"Bearer {token}"
    }
    response = requests.get(apiUrl, headers=headers)
    print(response, response.json())
    
Try It