Serpdog's Documentation
HomeLoginSupport
  • Getting Started
  • Account API
  • Web Scraping API
  • Yelp Search API
  • Walmart Scraper API
  • Amazon Scraper API
  • LinkedIn Jobs API
  • YouTube Search API
  • Bing Search API
  • Google Search API
  • Google Maps API
    • Google Maps Posts API
    • Google Maps Photos API
    • Google Maps Reviews API
  • Google News API
  • Google Finance API
  • Google Videos API
  • Google Images API
  • Google Autocomplete API
  • Google Shopping API
  • Google Product API
  • Google Scholar API
    • Google Scholar Author Profile API
  • Google Jobs API
Powered by GitBook
On this page

Account API

The Serpdog Account API will allow users to get information about their account, including email address, plan name, quota, number of requests left, etc.

Use this API to get info about your account. Here is the list of default parameters to be used with this API:

Parameter
Description

api_key required

This is your API key.

API Example:

cURL "https://api.serpdog.io/account_info?api_key=APIKEY"
const axios = require('axios');

axios.get('https://api.serpdog.io/account_info?api_key=APIKEY')
  .then(response => {
    console.log(response.data);
  })
  .catch(error => {
    console.log(error);
  });
import requests
payload = {'api_key': 'APIKEY'}
resp = requests.get('https://api.serpdog.io/account_info', params=payload)
print (resp.text)
try {
 String url = "https://api.serpdog.io/account_info?api_key=APIKEY";
 URL urlForGetRequest = new URL(url);
 String readLine = null;
 HttpURLConnection conection = (HttpURLConnection) urlForGetRequest.openConnection();
 conection.setRequestMethod("GET");
 int responseCode = conection.getResponseCode();
 if (responseCode == HttpURLConnection.HTTP_OK) {
 BufferedReader in = new BufferedReader(new InputStreamReader(conection.getInputStream()));
 StringBuffer response = new StringBuffer();
 while ((readLine = in.readLine()) != null) {
 response.append(readLine);
 }
 in.close();
 System.out.println(response.toString());
} else {
 throw new Exception("Error in API Call");
 }
} catch (Exception ex) {
 ex.printStackTrace();
}
require 'net/http'
require 'json'
params = {
 :api_key => "APIKEY"
}
uri = URI('https://api.serpdog.io/account_info')
uri.query = URI.encode_www_form(params)
website_content = Net::HTTP.get(uri)
print(website_content)
<?php
$url = "https://api.serpdog.io/account_info?api_key=APIKEY";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$response = curl_exec($ch);
curl_close($ch);
print_r($response);
{
  "user_name": "John Doe",
  "api_key": "630010e6797faba0b15e4678",
  "email": "test@gmail.com",
  "plan": "free",
  "quota": 100,
  "requests": 0,
  "requests_left": 100,
  "billing_history": [{
   "date": "2023-10-26T14:43:13.872Z",
   "plan": "LITE",
   "amount": "30$",
   "invoice": "Stripe Invoice Link"
  }]
}
PreviousGetting StartedNextWeb Scraping API

Last updated 11 months ago