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.
Request Parameters:
- privateId *Specify privateId for site
(e.g., "svgmine^com-SomeIdString"). - render *Specify which framework to process
(e.g., "vanilla|angular|react|vue|ember|node|svelte|nginx"). - task *Specify which process to run
(e.g., "render"|"screenshot"|"serialize"). - park *Set AutoPark/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 no value passed
(e.g., "api") to wait for "/api/" has to be flat single word. - capacity Default capacity=2GB_1CPU if no value passed.
(e.g., "2GB_1CPU" | "4GB_2CPU" | "8GB_2CPU" | "16GB_4CPU" | "32GB_8CPU") Auto-Redirects 32GB 8CPU to GroupM nearby. - link *Specify which page url to load
(e.g., "https://svgmine.com/static-rendering").
Route Parameters:
- /:region *Please check location table here
(e.g., "WEST_3|ARAB_1|EAST_3|NORD_6").
Selector Key Requirements:
- Key Anchor *Pagerun relies on html class as key
(e.g., "iAmRandomSelectorClassPublicKey") where class="iAmRandomSelectorClassPublicKey".
This endpoint provides rendered html for the requested url for page.
package main import ( "fmt" "io/ioutil" "net/http" ) func main() { response, err := http.Get("https://pagerun.api.svgmine.com/NORD_1?privateId=<privateId>&api=NO&park=month&task=render&render=vanilla&key=<iAmRandomSelectorClassPublicKey>&capacity=2GB_1CPU&link=https://svgmine.com/static-rendering") if err != nil { fmt.Println(err) } defer response.Body.Close() body, _ := ioutil.ReadAll(response.Body) fmt.Println(string(body)) }
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://svgmine.com/pagerun" style="color: transparent;">PageRun SSR</a>
</div>