Skip to content

AWMC Gateway Public API (Billing Info)

For users: How to call the open APIs, and when Tokens will be charged. This document does not discuss internal implementation.

Platform URL

Platform URL: https://api.awmc.cc

Requires AWMC Passport login.

Authentication

Business requests must include in the request header:

Authorization: Bearer <token>

  • JWT obtained after browser login, or a gw_ long-term token generated on the website (do not leak).

Purchase Tokens

Buy quota: https://store.awmc.cc/item?id=98

1. Service URL and Paths

All business paths are appended after the gateway base URL, prefixed with /v1.

  • GET: Parameters go in URL Query, must be URL encoded.
  • POST: Use Query or JSON Body as required by each endpoint; when sending JSON, add Content-Type: application/json.

2. Token Billing Rules

  • The "Consumption" column below indicates: the number of Tokens deducted from the account when the request succeeds at HTTP level and business logic determines success; 0 means no charge.
  • Whether business succeeds is determined by the response JSON, common examples:
EndpointBilling Condition (Summary)
get_previewUserID is valid and not -1 / "-1"
upload_b50 / upload_lx_b50UploadStatus === true
get_chargeChargeStatus === true
mai_pingSuccess response (e.g., returnCode === 1), not failure like result: "down"
  • When balance is insufficient, 403 is returned. You need to top up your account first.

3. Open API Testing

Fill in a valid token in the Auth Settings below, then enter parameters to test endpoints online.

3.1 Connectivity Test (mai_ping)

GETConnectivity Test
/v1/mai_ping

3.2 User Info & Task Submission (Billed)

The following endpoints consume Tokens when business succeeds.

GETUser Info Preview
/v1/get_preview

3.3 Task Status Query (No Charge)

After submitting upload tasks, use the following endpoints to poll progress.

GETDiving Fish Task Status (by User)
/v1/get_b50_task_status

3.4 Ticket Acquisition (Billed)

Acquire function tickets (multiplier tickets). This endpoint uses Query parameters, and consumes 10 Tokens on business success.

POSTAcquire Function Ticket (Multiplier)
/v1/get_ticket

3.5 Manual Operation Endpoints (Billed / JSON Body)

The following endpoints are all POST with JSON request body. The gateway will perform approximately 60 seconds of security wait (queue/risk control) on the business side. Please be patient after clicking "Run" in the browser.

Fill in a valid token in Auth Settings, enter parameters as shown in the table, then run (level_range should be a JSON array literal, e.g., [0,1,2,3]).

POSTManual Single Score Upload
/v1/upload_score_manual

3.6 Delete Single Score (Billed / JSON Body)

Delete the score record of a specified song. This endpoint uses JSON Body parameters.

POSTManual Delete Single Score
/v1/delete_score_manual

4. Public JSON Directory

http
GET https://api.awmc.cc/api/docs

Returns paths, methods, consumption, and brief descriptions for each endpoint, convenient for script consumption.

5. Common Errors

HTTPDescription
401Token missing or invalid
403Insufficient balance, etc.
404Path or resource not found
5xxService error, retry later

Recommendation

First call /v1/mai_ping (no charge) to confirm the URL and token, then call billed endpoints. For upload tasks, always save the task_id and use query endpoints to track progress.

Released under the MIT License.