Developer REST API
Automate link creation and monetization directly within your apps and bots.
🔑 Personal Authentication Secret
Keep confidential. Use this API secret token to authenticate all programmatic link generation requests.
🌐 Programmatic GET Endpoint Request
Pass your authentication token and long destination URL as standard query parameters.
https://primegate.pages.dev/api?api=28e663a3d60714d93beafb02f92856187bae54ab&url=https://destination.com&alias=custom-slug
{
"status": "success",
"shortenedUrl": "https://primegate.pages.dev/step1.html?code=xyz123&u=8644980176",
"message": "URL shortened successfully"
}
💻 Developer Integrations
Ready-to-use snippets for Node.js bots, Python workers, and PHP backends.
// Node.js / JavaScript Fetch
const apiToken = "28e663a3d60714d93beafb02f92856187bae54ab";
const targetUrl = encodeURIComponent("https://t.me/FILE_STOREB_BOT?start=file123");
fetch(`https://primegate.pages.dev/api?api=${apiToken}&url=${targetUrl}`)
.then(res => res.json())
.then(data => {
if (data.status === "success") {
console.log("High-CPM Link:", data.shortenedUrl);
} else {
console.error("API Error:", data.message);
}
});
<?php
// PHP cURL / file_get_contents Integration
$api_token = "28e663a3d60714d93beafb02f92856187bae54ab";
$long_url = urlencode("https://example.com/file");
$api_url = "https://primegate.pages.dev/api?api={$api_token}&url={$long_url}";
$response = @file_get_contents($api_url);
$data = json_decode($response, true);
if ($data && $data['status'] === 'success') {
echo "Shortened: " . $data['shortenedUrl'];
} else {
echo "Error: " . ($data['message'] ?? 'Connection Failed');
}
?>
📈 Publisher Performance & Payout Readiness
Real-time analytics for verified impressions generated through your Telegram bot and links.
TOTAL ACCOUNT BALANCE
Eligible for instant $1.00 USD cashout
VERIFIED CONVERSIONS
Rate: ₹0.50 / complete 3-step visit
⚡ Instant URL Shrinker
Create a monetized 3-step high-CPM link for any long URL or Telegram deep link.
📦 Mass URL Shrinker
Shorten up to 20 URLs at once (enter one URL per line).
🚀 Quick Redirect Gateway (`/st`)
Direct HTML embed link. Does not require JSON parsing. Place directly inside website buttons.
<a href="https://primegate.pages.dev/step1.html?dest=https://google.com&u=8644980176"> Download Stored Resource </a>
🌐 Full Page Script (FPS) Generator
Monetize 100% of outbound download links on your blog or website automatically.
<script type="text/javascript">
var primegate_token = '28e663a3d60714d93beafb02f92856187bae54ab';
var primegate_domains = ['drive.google.com', 'mega.nz', 't.me'];
(function() {
document.querySelectorAll('a').forEach(function(a) {
if(primegate_domains.some(d => a.href.includes(d))) {
a.href = 'https://primegate.pages.dev/step1.html?code=' + encodeURIComponent(a.href) + '&u=8644980176';
}
});
})();
</script>
💸 Cashout & Withdrawals ($1 / ₹85 Minimum)
Instant UPI & Polygon USDT transfers. Processed automatically within 12–24 hours.
👥 10% Lifetime Referral Network
Share your publisher invite link and earn 10% of your friends' link revenues for life.
⚙️ Publisher Account Configuration
Configure your Telegram synchronization and payment accounts.