Get Product Details
Retrieves live price, stock availability, and delivery metadata for a single ACTIVE product.
Notice: if the product ID does not exist or is no longer ACTIVE, the backend returns 409 PRODUCT_UNAVAILABLE.
- cURL
- JavaScript (fetch)
- Python (requests)
- PHP
curl -sS -X GET "https://api.example.com/api/v1/catalog/products/prod_win11_pro" \
-H "x-api-key: YOUR_API_KEY" \
-H "Accept: application/json"
const res = await fetch("https://api.example.com/api/v1/catalog/products/prod_win11_pro", {
method: "GET",
headers: {
"x-api-key": process.env.GPKEYS_API_KEY ?? "YOUR_API_KEY",
Accept: "application/json",
},
});
if (!res.ok) {
const err = await res.json().catch(() => ({}));
throw new Error(`HTTP ${res.status}: ${JSON.stringify(err)}`);
}
const data = await res.json();
console.log(data);
import os
import requests
headers = {
"x-api-key": os.environ.get("GPKEYS_API_KEY", "YOUR_API_KEY"),
"Accept": "application/json",
}
resp = requests.get("https://api.example.com/api/v1/catalog/products/prod_win11_pro", headers=headers, timeout=15)
resp.raise_for_status()
print(resp.json())
<?php
$apiKey = getenv('GPKEYS_API_KEY') ?: 'YOUR_API_KEY';
$ch = curl_init('https://api.example.com/api/v1/catalog/products/prod_win11_pro');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 15,
CURLOPT_HTTPHEADER => [
'x-api-key: ' . $apiKey,
'Accept: application/json',
],
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
echo "HTTP {$status}\n" . ($body) . "\n";
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
productId | string | Yes | Active product identifier. |
Success Response (200 OK)
{
"product": {
"id": "prod_win11_pro",
"title": "Windows 11 Pro Retail Key",
"slug": "windows-11-pro-retail-key",
"shortDescription": "Instant activation key for 1 PC",
"description": "Global retail license delivered immediately after purchase.",
"price": "12.000000",
"priceUsdt": "12.000000",
"originalPriceUsdt": null,
"discountPercent": null,
"warranty": "Lifetime activation warranty",
"deliveryTime": "Instant",
"isFeatured": true,
"iconEmoji": null,
"currency": "USDT",
"deliveryType": "LICENSE_KEY",
"availableUnits": 25,
"coverImageUrl": null,
"salesCount": 142,
"categoryId": "cat_os",
"category": {
"id": "cat_os",
"name": "Operating Systems",
"slug": "operating-systems"
}
}
}
Error Responses
| HTTP | error.code | Cause |
|---|---|---|
401 | UNAUTHORIZED | Invalid, revoked, or expired key |
403 | FORBIDDEN / FRAUD_DETECTED | Disabled key, suspended user, or fraud block |
409 | PRODUCT_UNAVAILABLE | Product missing, draft, or archived |
429 | RATE_LIMITED | General rate limit exceeded |
500 | INTERNAL_ERROR | Unexpected server error |
{
"error": {
"code": "PRODUCT_UNAVAILABLE",
"message": "That product is no longer available"
}
}