Back to reseller API documentation

REST API, built for resellers.

Build custom integrations on top of Orphilia. Stocks, key info, upgrades, renewals — JSON in, JSON out, one API key.

Base URL
https://orphilia-backend.onrender.com
Auth
X-API-Key: your_api_key

Send your key on every request as a header.

Rate limit
60 req / minute / key

Need more? Contact support.

Key features

  • Secure API-key authentication.
  • RESTful design, JSON responses.
  • Real-time stock availability.
  • Comprehensive key status tracking.
  • Automatic upgrade processing.
  • Renewal flow integrated.
  • Multi-country support.
  • Detailed error messages.

Endpoints

Response

{
  "success": true,
  "data": [
    { "country": "United States", "countryCode": "US", "available": 150 },
    { "country": "United Kingdom", "countryCode": "GB", "available": 89 }
  ]
}

Request body

{
  "key": "your-orphkey-here"
}

Response

{
  "success": true,
  "data": {
    "key": "ORPH-XXXX-XXXX-XXXX",
    "status": "active",
    "purchaseDate": "2025-01-01",
    "iterations": 2,
    "lastUsed": "2025-01-13"
  }
}

Request body

{
  "key": "your-orphkey-here",
  "login": "spotify-email",
  "password": "spotify-password",
  "country": "US"
}

Response

{
  "success": true,
  "message": "Account upgraded successfully",
  "data": {
    "accountEmail": "spotify email/username",
    "country": "US",
    "premiumUntil": "2025-02-13"
  }
}

Request body

{
  "key": "your-orphkey-here",
  "login": "spotify-email",
  "password": "spotify-password",
  "country": "US"   // optional
}

Response

{
  "success": true,
  "message": "Account renewed successfully",
  "data": {
    "accountEmail": "spotify email/username",
    "premiumExtendedUntil": "2025-03-13"
  }
}

Code examples

// Get stock availability
fetch('https://orphilia-backend.onrender.com/api/v3/re/stocks', {
  headers: { 'X-API-Key': 'your_api_key_here' }
})
  .then(r => r.json())
  .then(console.log);

// Upgrade an account
fetch('https://orphilia-backend.onrender.com/api/v3/re/upgrade', {
  method: 'POST',
  headers: {
    'X-API-Key': 'your_api_key_here',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    key: 'your-key-here',
    login: 'username',
    password: 'password',
    country: 'US'
  })
})
  .then(r => r.json())
  .then(console.log);
import requests

headers = { 'X-API-Key': 'your_api_key_here' }

# Stock availability
r = requests.get(
    'https://orphilia-backend.onrender.com/api/v3/re/stocks',
    headers=headers
)
print(r.json())

# Upgrade
r = requests.post(
    'https://orphilia-backend.onrender.com/api/v3/re/upgrade',
    headers={ **headers, 'Content-Type': 'application/json' },
    json={
        'key': 'your-key-here',
        'login': 'username',
        'password': 'password',
        'country': 'US'
    }
)
print(r.json())
<?php
// Stock availability
$ch = curl_init('https://orphilia-backend.onrender.com/api/v3/re/stocks');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'X-API-Key: your_api_key_here' ]);
$stocks = json_decode(curl_exec($ch), true);
curl_close($ch);

// Upgrade
$ch = curl_init('https://orphilia-backend.onrender.com/api/v3/re/upgrade');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
    'key' => 'your-key-here',
    'login' => 'username',
    'password' => 'password',
    'country' => 'US'
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'X-API-Key: your_api_key_here',
    'Content-Type: application/json'
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
?>
const axios = require('axios');

// Stock availability
axios.get(
  'https://orphilia-backend.onrender.com/api/v3/re/stocks',
  { headers: { 'X-API-Key': 'your_api_key_here' } }
).then(r => console.log(r.data));

// Upgrade
axios.post(
  'https://orphilia-backend.onrender.com/api/v3/re/upgrade',
  {
    key: 'your-key-here',
    login: 'username',
    password: 'password',
    country: 'US'
  },
  {
    headers: {
      'X-API-Key': 'your_api_key_here',
      'Content-Type': 'application/json'
    }
  }
).then(r => console.log(r.data));

Need developer support?

API integration help, troubleshooting, custom endpoints, rate-limit bumps.

Building on the API? Other devs hang out in #api-and-developers on Slack . Direct line to Orphilia engineering.

Lock in Lifetime Premium - From $25.99