Real-time

POST rt.serpmaster.com
curl -u username:password 'https://rt.serpmaster.com/' -d '{"scraper": "google_search", "q": "lorem ipsum", "domain": "com"}' -H "Content-Type: application/json"
import requests
  from pprint import pprint
 
  headers = {
    'Content-Type': 'application/json'
  }

  job_params = {
    'scraper': 'google_search',
    'domain': 'com',
    'q': 'lorem ipsum',
    'parse': 'json',
  }

  response = requests.post(
    'https://rt.serpmaster.com/',
    headers = headers,
    json = job_params,
    auth = ('user', 'pass1')
  )
<?php

$ch = curl_init();

$data = [
    "scraper" => "google_search",
    "domain" => "com",
    "q" => "lorem ipsum",
    "parse" => "json"
];

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_USERPWD, "user" . ":" . "pass1");
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_URL, "https://rt.serpmaster.com/");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type: application/json"]);

$response = curl_exec($ch);
curl_close($ch);

$json = json_decode($response);

var_dump($json);
?>
const axios = require('axios')

const params = {
  'scraper': 'google_search',
  'domain': 'com',
  'q': 'lorem ipsum',
  'parse': 'json',
  'access_token': '1234abcd'
}

axios.get('https://rt.serpmaster.com/', {
  params: params
})
  .then(response => console.log(response))
  .catch(error => console.log(error))

Real-time is a simple integration method that requires keeping an open HTTPS connection for data transfers.

  • Average retrieval time: 8s.
  • Send a POST to the SERPMaster’s system.
  • Maintain an open connection while we fetch your SERP.
  • Receive the data. Connection can then be closed.

If the connection is closed before the job is completed, the data is lost.