logo
translate Englishattach_moneyUSDQuick AI Login
emoji_food_beverage Explore Automationscategory Free SVG Collectionsimportant_devices Static SSRtravel_explore Dynamic SEOwebhook API Docs

PageRun SSR API Documentation

No matter how fast your web pages are, when Google has to render your pages it'll still negatively affect your page speed scores and Core Web Vitals (CWV). SSR generates a fully rendered and functional HTML version of your URLs and serves them to search engines in 0.01 seconds on average. This boost in loading speed gets your CWV scores to near perfect.

Below are the endpoints for accessing web pages. Learn how to integrate the API into your application.

Authorization:

  • privateId *Specify privateId for site
    (e.g., "Bearer example^com-SomeIdString").

Query Parameters:

  • park *Set TestPark/OmniPark redirection duration
    (e.g., "1000ms | 10000ms | 100000ms | 1000000ms | 10000000ms | 100000000ms | 1000000000ms | 10000000000ms | 1m | hour | day | week | bimonthly | month | triannual | quarter | biannual | year").
  • api *Does page include external api call
    (e.g., "NO|YES").
  • path Default path=api if !path passed
    (e.g., "api") to wait for "/api/" has to be flat single word.

Route Parameters:

  • :region *Please check location table here
    (e.g., "WEST_3|ARAB_1|EAST_3|NORD_6").

Body Parameters:

  • agent Track agent activity with FREE record keeping
    Optional (e.g., "agent" = req.headers['user-agent'])
  • task *Specify which process to run
    (e.g., "render"|"screenshot"|"serialize").
  • link *Specify which page url to load
    (e.g., "https://svgtile.com/static-rendering").
  • key *Pagerun relies on html class as Anchor key
    (e.g., "iAmRandomSelectorClassPublicKey") where class="iAmRandomSelectorClassPublicKey".

POST

check_boxNoAuthcheck_box_outline_blankLoyaltycheck_box_outline_blankEnterprise

This endpoint provides rendered html for the requested url for page.

JavaScript
Python
Php
Java
c#
Ruby
Go
Swift
using System;
using System.Net.Http;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;

public class ApiClient
{
    private static readonly string BaseUrl = "https://pagerun.api.svgtile.com/v1";
    private static readonly string PrivateId = "<privateId>";
    
    static async Task Main(string[] args)
    {
        try
        {
            var result = await FetchDataAsync();
            Console.WriteLine(JsonSerializer.Serialize(result, new JsonSerializerOptions 
            { 
                WriteIndented = true 
            }));
        }
        catch (Exception ex)
        {
            Console.WriteLine($"Error: {ex.Message}");
        }
    }
    
    private static async Task<object> FetchDataAsync()
    {
        using var client = new HttpClient();
        
        // Build URL
        var parameters = new Dictionary<string, string>
        {
            { "region", "YOUR_REGION" }  // Replace with actual region value
        };
        
        var urlBuilder = new StringBuilder(BaseUrl);
        foreach (var param in ["region"])
        {
            urlBuilder.Append($"/{Uri.EscapeDataString(parameters[param])}");
        }
        
        // Add query parameters
        var queryParams = {"api":"NO","park":"month"};
        urlBuilder.Append("?");
        foreach (var param in queryParams)
        {
            urlBuilder.Append($"{param.Key}={Uri.EscapeDataString(param.Value)}&");
        }
        
        // Set headers
        client.DefaultRequestHeaders.Add("Authorization", $"Bearer {PrivateId}");
        
        // Create request
        var request = new HttpRequestMessage(new HttpMethod("POST"), urlBuilder.ToString());
        
        if ("POST" == "POST" || "POST" == "PUT")
        {
            var content = JsonSerializer.Serialize({"task":"render|screenshot|serialize","key":"<selector-here>","link":"<url-here>"});
            request.Content = new StringContent(content, Encoding.UTF8, "application/json");
        }
        
        // Send request
        var response = await client.SendAsync(request);
        
        if (!response.IsSuccessStatusCode)
        {
            throw new HttpRequestException($"HTTP error! status: {response.StatusCode}");
        }
        
        var responseContent = await response.Content.ReadAsStringAsync();
        return JsonSerializer.Deserialize<object>(responseContent);
    }
}

Suggested Selector for interface stealth

<div class="iAmRandomSelectorClassPublicKey" 
  style="line-height: 8px; font-size: 3px; padding: 0 4px; background: transparent; display: inline-block; position: absolute; bottom: 0; left: 28px;">
  <a href="https://svgtile.com/pagerun" style="color: transparent;">PageRun SSR</a>
</div>

Explore integration

Site Rendering
Education

Web Page Rendering know-how

Pagerun
Free Course

List Free Online Courses

Official
Certifications

List Official Certificates

Validate
Accreditation

Verify Certification Status