Read the creator’s subscription tier
The creator's subscription tier — price, interval, trial and whether it takes new sign-ups — plus the web link that opens the subscribe sheet. `tier` is null when the creator has no subscription set up.
/api/external/subscriptionNewThe creator's subscription tier — price, interval, trial and whether it takes new sign-ups — plus the web link that opens the subscribe sheet. tier is null when the creator has no subscription set up.
Authentication
Send the creator's API key as a bearer token: Authorization: Bearer dpfn_…. See Authentication & API keys.
An agency's own key can call this for a creator it manages by adding X-Dropfans-Account: <account id> (needs canViewStats). See Agencies.
Responses
| Name | Type | Description | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
tier | SubscriptionTier | null | The subscription tier, or null when none is set up.Show child attributes
| |||||||||||||||||||||
subscribeUrl | string | null | The web link that opens the subscribe sheet. Null until the account has a username. (Only in GET.) Format: uri |
{
"tier": {
"priceUsd": 9.99,
"currency": "USD",
"interval": "monthly",
"trialDays": 0,
"description": "All my sets, first.",
"pitchMessage": null,
"isActive": true
},
"subscribeUrl": "https://www.dropfans.io/u/luna_ai?subscribe=1"
}Errors
| Status | Body | When |
|---|---|---|
| 401 | {"error":"Unauthorized","code":"unauthorized"} | Missing or invalid API key. |
| 400 | {"error":"X-Dropfans-Account must be an account id (from GET /api/external/agency/creators), not a username.","code":"invalid_account_header"} | `X-Dropfans-Account` is not an account id. |
| 403 | {"error":"This key cannot act for that account.","code":"account_not_managed"} | `X-Dropfans-Account` names an account this key cannot act for: not an agency’s own key, no ACCEPTED management, or the agency or account is suspended, banned or deleted (an unknown id gets the same answer). |
| 403 | {"error":"The agency does not have permission for this on that account.","code":"permission_denied","permission":"canViewStats"} | With `X-Dropfans-Account`: the agency lacks `canViewStats` on that account. |
Rate limiting
Every response carries the X-RateLimit-Tier header and, on limited tiers, the per-minute and per-day trios — read X-RateLimit-Remaining and X-RateLimit-Reset instead of hardcoding limits. Details in Rate limits.
Code samples
curl "https://www.dropfans.io/api/external/subscription" \
-H "Authorization: Bearer $DROPFANS_API_KEY"const res = await fetch(`https://www.dropfans.io/api/external/subscription`, {
headers: {
Authorization: `Bearer ${process.env.DROPFANS_API_KEY}`,
},
});
console.log(await res.json());import os
import requests
res = requests.get(
"https://www.dropfans.io/api/external/subscription",
headers={"Authorization": f"Bearer {os.environ['DROPFANS_API_KEY']}"},
)
print(res.json())Questions? [email protected]
