Get Service Details

By using the service's ID or alias, you can obtain detailed information about a specific service, including pricing rules, associated API lists, etc.

This interface does not require authentication.

Interface Description

  • Request Method: GET
  • Request URL: https://platform.acedata.cloud/api/v1/services/{id_or_alias}/
  • Request Headers:
    • accept: application/json

Where {id_or_alias} can be the service's UUID or the service's alias, such as midjourney, claude, suno, etc.

CURL Request Example

Query by alias:

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

Query by UUID:

curl -X GET \
  -H "accept: application/json" \
  "https://platform.acedata.cloud/api/v1/services/d87e5e99-b797-4ade-9e73-b896896b0461/"

Return Result Example

{
  "id": "d87e5e99-b797-4ade-9e73-b896896b0461",
  "alias": "midjourney",
  "name": "Midjourney",
  "type": "Api",
  "description": "Midjourney image generation service",
  "cost": [
    {
      "conditions": {
        "==": [{ "var": ["path", ""] }, "/v1/midjourney/imagine"]
      },
      "consumption": 4.95
    }
  ],
  "unit": "Count",
  "free_amount": 0,
  "api_ids": ["a1b2c3d4-e5f6-7890-abcd-ef1234567890"],
  "proxy_ids": [],
  "applied": false,
  "rank": 10,
  "tags": ["image", "ai"],
  "metadata": {},
  "created_at": "2024-01-01T00:00:00.000000Z",
  "updated_at": "2024-08-01T00:00:00.000000Z"
}

Return Field Description

Field Type Description
id string Unique identifier for the service (UUID)
alias string Service alias
name string Service name
type string Service type: Api / Proxy / Integration / Dataset / Introduction / Agent
cost array Pricing rules (JsonLogic format), including conditions and consumption amount
unit string Measurement unit
free_amount number Free quota
api_ids array List of associated API IDs
proxy_ids array List of associated proxy IDs
applied boolean Whether the current user has applied

Code Example

Python:

import requests

# Get service details by alias
url = "https://platform.acedata.cloud/api/v1/services/midjourney/"
headers = {"accept": "application/json"}

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

print(f"Service Name: {service['name']}")
print(f"Service Type: {service['type']}")
print(f"Measurement Unit: {service['unit']}")
print(f"Free Quota: {service['free_amount']}")
print(f"Number of APIs: {len(service['api_ids'])}")