PageRank API Tutorial: Track Your Traffic with PageRankCafe

jAIdyn June 3, 2026 8 min read 5 views


developer workspace with laptop showing terminal and API response data for a pagerank api integration

The PageRankCafe API gives developers free programmatic access to their traffic exchange account — credits, link performance, banner analytics, press release stats, and more. If you've been searching for a PageRank API to track how your site is performing in a traffic network, or you want to automate your PRC campaigns, this is the guide.

Quick clarification up front: the PRC API is focused on your own account data within the PageRankCafe traffic exchange. It's not an endpoint where you pass in any domain and get back a raw score. What it does give you — for free — is real engagement data about how your site is actually performing, with enough depth to build dashboards, set up alerts, and automate your campaigns.

TL;DR

  • The PRC API uses Bearer token auth; generate your key at /apiKeys in your dashboard.
  • Free members get full read access. Paid members can create and activate campaigns via API.
  • Key endpoints: /api/credits, /api/links, /api/banners, /api/press-releases.
  • Works with any HTTP client — curl, Python, JavaScript, PHP.
  • The API launched April 2026 and is actively documented at pagerankcafe.com/api/docs.

Why I Started Using the PageRank API from PageRankCafe

I've been running a few sites through PageRankCafe's traffic exchange for a while now. At some point I got tired of logging in every day to manually check whether my credit balance was healthy, whether my link ads were still getting views, or whether a press release I posted was actually performing. I wanted to pull that data into a spreadsheet — or eventually, a monitoring script — without clicking through the UI each time.

That's exactly what the API is designed for. And since read access is free, there's no reason not to wire it up regardless of what plan you're on.

What the API Gives You

The read endpoints are available to all members, free and paid. Here's what each returns:

  • Account healthGET /api/health: confirms your key is valid, returns your username and membership level.
  • Credit balanceGET /api/credits: available credits, available post points, links viewed today, links remaining today.
  • Link ad performanceGET /api/links: your active link ads with view counts and post point usage.
  • Banner analyticsGET /api/banners: impressions, clicks, and CTR for each banner campaign.
  • Press release statsGET /api/press-releases: views and post counts for your published articles.
  • YouTube ad dataGET /api/youtube-ads: views and post counts for your video ads.
  • Referral trackingGET /api/referral-stats: signups you've referred, broken down by today / 7 days / 30 days / all time.

Paid members (Bronze at $4.95/mo, Silver at $9.95/mo, or Gold at $15.95/mo) also get write access — creating banners, uploading images, and posting press releases all via API.

Step 1: Get Your API Key

You need a PageRankCafe account. Once you're logged in, go to /apiKeys in your account dashboard and generate a key. Copy it somewhere safe — it won't be shown again after you navigate away.

Every API request passes the key in the Authorization header:

Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

Step 2: Test Authentication with a Health Check

The simplest call is the health endpoint. Run this in your terminal:

curl -X GET https://pagerankcafe.com/api/health \
  -H "Authorization: Bearer YOUR_API_KEY"

You should get back something like:

{
  "status": "ok",
  "user": "yourUsername",
  "membership": "upgraded"
}

If you see a 401, the key is wrong or expired. If "membership" says "free", that means write endpoints will return 403 until you upgrade — but all read endpoints still work.

Step 3: Check Your Credit Balance with Python

Here's a simple Python script that pulls your current credit balance and flags when you're running low. I run this in a cron job every morning:

import requests

API_KEY = "YOUR_API_KEY"
BASE_URL = "https://pagerankcafe.com"

headers = {
    "Authorization": f"Bearer {API_KEY}",
    "Content-Type": "application/json"
}

resp = requests.get(f"{BASE_URL}/api/credits", headers=headers)
data = resp.json()

print(f"Available credits:    {data['available_credits']}")
print(f"Available post pts:   {data['available_posts']}")
print(f"Links viewed today:   {data['links_viewed']}")
print(f"Links remaining:      {data['links_remaining']}")

if data['available_credits'] < 100:
    print("Low credits — consider surfing some links.")

The links_remaining field is particularly useful if you're automating surfing logic — you know exactly how much earning capacity you have left in the day without guessing.

Step 4: Monitor Link Ad and Banner Performance

Pulling performance data for your campaigns is one line per endpoint:

# Link ads — views and post point usage
resp = requests.get(f"{BASE_URL}/api/links", headers=headers)
for link in resp.json():
    print(f"{link['title']}: {link['views']} views, {link['link_post_count']} post pts")

# Banner ads — impressions, clicks, CTR
resp = requests.get(f"{BASE_URL}/api/banners", headers=headers)
for banner in resp.json():
    print(f"{banner['title']}: {banner['impressions']} imp, {banner['clicks']} clicks, CTR={banner['ctr']}")

If a link has lots of post points spent but low views, the title might need work. If a banner has high impressions but near-zero CTR, the creative or destination URL is the problem. Getting this data programmatically means you can track trends over time — log it to a CSV daily, and within a week you'll see clear patterns.

Creating Campaigns via API (Paid Members)

If you're on a paid tier, write endpoints let you spin up campaigns without touching the UI. Here's how to create and activate a banner:

# Step 1: Create the banner
payload = {
    "title": "My Banner",
    "url": "https://example.com",
    "url_target": "https://example.com/landing"
}
resp = requests.post(f"{BASE_URL}/api/banners/create", json=payload, headers=headers)
banner_id = resp.json()["banner"]["id"]
print(f"Created banner id: {banner_id}")

# Step 2: Activate it (costs 10 credits/day)
requests.post(
    f"{BASE_URL}/api/banners/post",
    json={"banner_id": banner_id, "days": 1},
    headers=headers
)

The same create ? post pattern applies to press releases. Full parameter docs, including supported banner dimensions and the image upload endpoint, are at pagerankcafe.com/api/docs.

What This API Isn't: Arbitrary Domain Scoring

If you landed here from a "PageRank API" or "Google PageRank API" search — quick context. Google deprecated its public PageRank toolbar API back in 2016 and has never offered a replacement for mass domain scoring. Tools like Moz, Ahrefs, and SEMrush offer domain authority APIs, but they're paid and expensive for bulk use.

The PageRankCafe API is a different use case: it's about managing and monitoring your own campaigns within a traffic exchange. If you're using PRC as part of your traffic strategy — which I've found genuinely useful for early-stage site promotion — this API lets you automate and track that work programmatically.

FAQ

Is the PageRankCafe API free?

Read access is completely free for all members. You can query your credits, link performance, banner CTR, press release stats, and referral data at no cost. Write endpoints — creating and posting campaigns — require a paid membership starting at $4.95/month for Bronze.

What can I build with it?

Practically: a credit balance monitor that alerts you before you run dry, a daily campaign performance log you can chart over time, a script that automatically activates a new press release post when the last one expires, or a referral dashboard that tracks how your affiliate efforts compound week over week. The API is straightforward REST — anything you can imagine building in a few hours of Python is doable.

Do I need to know Python to use it?

No. The examples above use Python because it's readable, but the API is standard REST over HTTPS with JSON. Curl from the command line works fine for testing. JavaScript's fetch(), PHP curl, Go's net/http — anything that can make an HTTP request and parse JSON works.

Where do I find my API key after I generate it?

If you navigate away after generating, you'll need to revoke the old key and generate a new one — there's no "show me my existing key" view by design. Keep it in an environment variable or a secrets manager, not hardcoded in your script.

Ready to get started? The full endpoint reference is at pagerankcafe.com/api/docs. If you want write access to automate campaign creation, check the membership tiers — Bronze at $4.95/month unlocks all write endpoints and gives you a 2x credit multiplier on top.

https://pagerankcafe.com/pressRelease/blog/pagerank-api-tutorial

Share this article

𝕏 Post Facebook LinkedIn Email

Related Articles