{
"priority":"high",
"tasks":[
{
"keyword":"botox",
"search_engine":"google",
"localization_code":"us"
}
]
}
With the SERP API you can collect
google/bing results and integrate
the data in your own application.
{
"priority":"high",
"tasks":[
{
"keyword":"botox",
"search_engine":"google",
"localization_code":"us"
}
]
}
{
"Tasks":[
{
"localization_code":"us",
"localization_zip":"",
"task_id":"yourTaskId",
"keyword":"botox",
"search_engine":"google",
"status":"ok"
}
]
}
{
"task_ids":[
"yourTaskId"
]
}
{
"tasks":[
{
"yourTaskId":
{
"localization_code":"United States",
"error_msg":"",
"localization_zip":"",
"ready":"true",
"organic_results":
[
{
"rank":"1" ,
"url":"https://www.botoxcosmetic.com"
},
{
"rank":"2" ,
"url":"https://www.botox.com"
}
...
],
"keyword":"botox",
"search_engine":"google",
"num_results":"100",
"status":"ok"
}
}
]
}
We have two pricing options. If you don’t want to commit to monthly payment, you can just pay for an amount of credits.
This is called “Pay Per Use”.
Or, if you are willing to commit for a monthly payment, you can get better pricing with our “Monthly Plans”.
See below to get an idea of how much that would cost.
try {
String request = "{\"priority\":\"high\",\"tasks\":[{\"keyword\":\"seo\",\"search_engine\":\"google\",\"localization_code\":\"us\"}]}";
URL url = new URL("https://www.sheerseo.com/seo/api/serp-submit?apiKey=yourAPIKey");
HttpsURLConnection con = (HttpsURLConnection)url.openConnection();
con.setRequestMethod("POST");
con.setRequestProperty("Content-Type", "application/json; charset=UTF-8");
con.setDoOutput(true);
// Send post request
con.connect();
PrintWriter pw = new PrintWriter(new OutputStreamWriter(con.getOutputStream()));
pw.write(request);
pw.close();
System.out.println("Response Code : " + con.getResponseCode()+". Response Message: "+con.getResponseMessage());
//read the response - we need the task_id for next step
BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println("The response is: "+response.toString());
} catch (Exception e) {e.printStackTrace();}
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://sheerseo.com/seo/api/serp-submit?apiKey=yourAPIKey",
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{'priority':'high','tasks':[{'keyword':'seo','search_engine':'google','localization_code':'us'}]}",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"content-type: application/json"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
#pip install requests
import requests
apiKey="yourAPIKey"
url = "https://sheerseo.com/seo/api/serp-submit?apiKey="+apiKey
payload ="{\"priority\":\"high\",\"tasks\":[{\"keyword\":\"seo\",\"search_engine\":\"google\",\"localization_code\":\"us\"}]}"
response = requests.request("POST", url, data=payload)
print(response.text)
try {
String request= "{\"task_ids\":[\"the task ids you got from as a response sending serp task\"]}" ;
URL url = new URL("https://www.sheerseo.com/seo/api/serp-collect?apiKey=yourAPIKey");
HttpsURLConnection con = (HttpsURLConnection)url.openConnection();
con.setRequestMethod("POST");
con.setRequestProperty("Content-Type", "application/json; charset=UTF-8");
con.setDoOutput(true);
// Send post request
con.connect();
PrintWriter pw = new PrintWriter(new OutputStreamWriter(con.getOutputStream()));
pw.write(request);
pw.close();
System.out.println("Response Code : " + con.getResponseCode()+". Response Message: "+con.getResponseMessage());
//read the response - we need the task_id for next step
BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println("The response is: "+response.toString());
} catch (Exception e) {e.printStackTrace();}
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://sheerseo.com/seo/api/serp-collect?apiKey=yourAPIKey",
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\"task_ids\":[\"the task ids you got from as a response sending serp task\"]}",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"content-type: application/json"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
#pip install requests
import requests
apiKey="yourAPIKey"
url = "https://sheerseo.com/seo/api/serp-collect?apiKey="+apiKey
payload ="{\"task_ids\":[\"the task ids you got from as a response sending serp task\"]}"
response = requests.request("POST", url, data=payload)
print(response.text)