Developer REST API

Automate link creation and monetization directly within your apps and bots.

🤖 Open Telegram Bot
Publisher CPM ● Guaranteed
₹500.00
$6.00 Fixed Global Rate
Min Payout Threshold
$1.00 (₹85)
Instant UPI & USDT
Active Pipeline
3-Step Gateway
MultiTag & Smartlink
Reward Per Visit
₹0.50
Per Verified Download

🔑 Personal Authentication Secret

Keep confidential. Use this API secret token to authenticate all programmatic link generation requests.

28e663a3d60714d93beafb02f92856187bae54ab

🌐 Programmatic GET Endpoint Request

Pass your authentication token and long destination URL as standard query parameters.

GET REQUEST STRUCTURE
https://primegate.pages.dev/api?api=28e663a3d60714d93beafb02f92856187bae54ab&url=https://destination.com&alias=custom-slug
STANDARD JSON RESPONSE SCHEMA
{
  "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.

JAVASCRIPT / NODE.JS (FETCH API)
// 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 BACKEND
<?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

₹85.50

Eligible for instant $1.00 USD cashout

VERIFIED CONVERSIONS

171 Clicks

Rate: ₹0.50 / complete 3-step visit

📦 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.

HTML DOWNLOAD ANCHOR
<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.

EMBED CODE FOR <HEAD>
<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.

https://t.me/FILE_STOREB_BOT?start=ref_8644980176

⚙️ Publisher Account Configuration

Configure your Telegram synchronization and payment accounts.