Get Platform Configuration

Through this interface, you can obtain the global configuration information of the Ace Data Cloud platform, including parameters such as the X402 payment discount.

This interface does not require authentication.

Interface Description

  • Request Method: GET
  • Request URL: https://platform.acedata.cloud/api/v1/config/
  • Request Headers:
    • accept: application/json

CURL Request Example

curl -X GET \
  -H "accept: application/json" \
  "https://platform.acedata.cloud/api/v1/config/"

Example of Returned Result

{
  "x402_discount": 0.9
}

Description of Returned Fields

Field Type Description
x402_discount number X402 cryptocurrency payment discount coefficient (e.g., 0.9 indicates a 10% discount)

Code Example

Python:

import requests

url = "https://platform.acedata.cloud/api/v1/config/"
headers = {"accept": "application/json"}

response = requests.get(url, headers=headers)
config = response.json()

print(f"X402 payment discount: {config['x402_discount']}")