---------------------------------------------------------------------
Scamadviser API

API Version: 3.4.3

API Endpoints:

  * GET https://api.scamadviser.com/api/ping/
  * POST https://api.scamadviser.com/api/batch/
  * GET https://api.scamadviser.com/api/status/
  * GET https://api.scamadviser.com/api/download/

---------------------------------------------------------------------

Status Types:

  * QUEUED
  * PROCESSING
  * DONE
  * ERROR

---------------------------------------------------------------------

GET https://api.scamadviser.com/api/ping/

  # inputs: None

  # example response:

    {
      "time": "2019-11-27 20:00:00",
      "ip": "127.0.0.1",
      "api_version": "3.4.3"
    }

---------------------------------------------------------------------

POST https://api.scamadviser.com/api/batch/

  # example input payload:

    {
      "key": "TEST",
      "batch": [
        "scamadviser.com",
        "https://www.pinterest.com/"
      ]
    }
  
  # example send batch:

    curl \
      --data '{"key":"TEST", "batch":["scamadviser.com", "https://www.pinterest.com/"]}' \
      --header 'Content-Type: application/json' \
      --header 'Accept: application/json' \
      --request POST https://api.scamadviser.com/api/batch/

  # example send batch from file 'batch.json'

    curl \
      --data '@batch.json' \
      --header 'Content-Type: application/json' \
      --header 'Accept: application/json' \
      --request POST https://api.scamadviser.com/api/batch/

  # example return:
   
  {
    "batch": 123,
    "url_download":"https://api.scamadviser.com/api/download/?key=TEST&batch=2",
    "url_status":"https://api.scamadviser.com/api/status/?key=TEST&batch=2",
    "url_status_full":"https://api.scamadviser.com/api/status/?key=TEST&full=1&batch=2",
    "batch_size": 2,
    "received_ok": 2,
    "received_errors": 0,
    "saved_ok": 2,
    "saved_errors": 0,
    "queued_ok": 2,
    "queued_errors": 0,
    "errors": "",
    "time": "2019-11-27 20:15:05",
    "ip": "127.0.0.1",
    "api_version": "3.4.3"
  }
  
-------------------------------------------------------------------

GET https://api.scamadviser.com/api/status/  (List all Batches)

  # input:
    key = API Access Key (string)
      
  # https://api.scamadviser.com/api/status/?key=TEST

  # example return:

  {
    "batch_count": 2,
    "batches": {
      "1": {
        "status": "DONE",
        "url_download": "https://api.scamadviser.com/api/download/?key=TEST&batch=1",
        "url_status": "https://api.scamadviser.com/api/status/?key=TEST&batch=1",
        "url_status_full": "https://api.scamadviser.com/api/status/?key=TEST&full=1&batch=1",
        "created": "2019-11-27 10:00:00",
        "updated": "2019-11-27 10:10:00"
      },
      "2": {
        "status": "QUEUED",
        "url_download": "https://api.scamadviser.com/api/download/?key=TEST&batch=2",
        "url_status": "https://api.scamadviser.com/api/status/?key=TEST&batch=2",
        "url_status_full": "https://api.scamadviser.com/api/status/?key=TEST&full=1&batch=2",
        "created": "2019-11-27 12:01:01",
        "updated": "2019-11-27 12:01:01"
      }
    },
    "time": "2019-11-27 12:10:00",
    "ip": "192.168.100.1",
    "api_version": "3.4.3"
  }
-------------------------------------------------------------------

GET https://api.scamadviser.com/api/status/  (Batch Status)

  # input:

    key   = API Access Key (string)
    batch = Batch ID (int)
    full  = Show queries (int) 1/0

  # example return - Batch Status summary
  # https://api.scamadviser.com/api/status/?key=TEST&batch=2

  {
    "batch": 2,
    "url_download": "https://api.scamadviser.com/api/download/?key=TEST&batch=2",
    "url_status": "https://api.scamadviser.com/api/status/?key=TEST&batch=2",
    "url_status_full": "https://api.scamadviser.com/api/status/?key=TEST&full=1&batch=2",
    "id": "2",
    "key": "TEST",
    "request_ip": "127.0.0.1",
    "file": "",
    "note": null,
    "created": "2019-11-27 12:15:05",
    "updated": "2019-11-27 12:15:05",
    "error": null,
    "total": "2",
    "done": "0",
    "queued": "2",
    "processing": "0",
    "errors": "0",
    "status": "QUEUED",
    "time": "2019-11-27 20:21:20",
    "ip": "127.0.0.1",
    "api_version": "3.4.3"
  }

  # example return - Batch Status with Query Status
  # https://api.scamadviser.com/api/status/?key=TEST&full=1&batch=2

  {
    "batch": 2,
    "url_download": "https://api.scamadviser.com/api/download/?key=TEST&batch=2",
    "url_status": "https://api.scamadviser.com/api/status/?key=TEST&batch=2",
    "url_status_full": "https://api.scamadviser.com/api/status/?key=TEST&full=1&batch=2",
    "id": "2",
    "key": "TEST",
    "request_ip": "127.0.0.1",
    "note": null,
    "created": "2019-11-27 12:15:05",
    "updated": "2019-11-27 12:25:45",
    "error": null,
    "total": "2",
    "done": "2",
    "queued": "0",
    "processing": "0",
    "errors": "0",
    "status": "DONE",
    "query_count": 2,
    "queries": {
      "scamadviser.com": {
        "domain": "scamadviser.com",
        "status": "DONE",
        "rating": "100",
        "code": "200",
        "error": "",
        "created": "2019-11-27 12:15:05",
        "updated": "2019-11-27 12:24:17"
      },
      "https://www.pinterest.com/": {
        "domain": "pinterest.com",
        "status": "DONE",
        "rating": "100",
        "code": "200",
        "error": "",
        "created": "2019-11-27 12:15:05",
        "updated": "2019-11-27 12:25:31"
      }
    },
    "time": "2019-11-27 20:27:41",
    "ip": "192.168.100.1",
    "api_version": "3.4.3"
  }

---------------------------------------------------------------------

GET https://api.scamadviser.com/api/download/

  # inputs:

    key   = API Access Key (string)
    batch = Batch ID (int)

  # https://api.scamadviser.com/api/download/?key=TEST&batch=2
  # response:

  Sends File (json format)
  
    {
      "batch": "2",
      "total": 2,
      "done": 2,
      "queued": 0,
      "processing": 0,
      "error": 0,
      "results": {
        "scamadviser.com": {
            "url": "scamadviser.com",
            "raw_query": "scamadviser.com",
            "status": "DONE",
            "SiteResponse": "200",
            "error": "",
            "rating": "100",
            "cached": "Y",
            "update_timestamp": "March 17, 2020, 5:40 am",
            "SiteTitle": "Scamadviser.com | check a website for risk | check if fraudulent | website trust reviews |check website is fake or a scam",
            "SiteDescription": "Check if a website is a scam website or a legit website. Scamadviser helps identify if a webshop is fraudulent or infected with malware, or conducts phishing, fraud, scam and spam activities. Use our free trust and site review checker.",
            "SiteKeywords": [
                "reviews",
                "stores",
                "verified reviews",
                "ratings",
                "trust reputation",
                "consumer reviews",
                "feedback",
                "customer ratings",
                "scam reviews",
                "compare",
                "hoax",
                "website",
                "fraud"
            ],
            "redirect": "",
            "ip": "104.20.150.25",
            "ipcountry": "us",
            "ipcountry_name": "United States",
            "parentDomain": "",
            "registrar": "Eurodns S.A.",
            "domainage": "8 Years, 256 Days",
            "domaincreated": "2011-07-05 02:00:00",
            "domainmodified": "",
            "domainexpires": "",
            "domainavailable": "0",
            "domainlife": 0,
            "likely_country": "lu",
            "location_latitude": "37.751",
            "location_longitude": "-97.822",
            "why": {
                "26": {
                    "code": "26",
                    "why": "HIGH Alexa",
                    "data": "5682",
                    "value": "-180.00"
                },
                "20": {
                    "code": "20",
                    "why": "Low ping ",
                    "data": "1850",
                    "value": "5.00"
                },
                "48": {
                    "code": "48",
                    "why": "SSL found",
                    "data": "",
                    "value": 0
                },
                "933": {
                    "code": "933",
                    "why": "Domain age is ",
                    "data": "8 Years, 256 Days",
                    "value": -10
                },
                "905": {
                    "code": "905",
                    "why": "More than 1 country",
                    "data": 3,
                    "value": 4
                },
                "956": {
                    "code": "956",
                    "why": "High BackLinks",
                    "data": "1183",
                    "value": -25
                }
            },
            "override": {
                "rating": "100",
                "source": "ADJ",
                "type": "M",
                "updated": "2019-10-21 08:01:25"
            }
        },
        "https://www.pinterest.com/": {
            "url": "pinterest.com",
            "raw_query": "https://www.pinterest.com/",
            "status": "DONE",
            "SiteResponse": "200",
            "error": "",
            "rating": "100",
            "cached": "Y",
            "update_timestamp": "March 17, 2020, 5:41 am",
            "SiteTitle": "Pinterest",
            "SiteDescription": "Discover recipes, home ideas, style inspiration and other ideas to try.",
            "SiteKeywords": [],
            "redirect": "",
            "ip": "151.101.64.84",
            "ipcountry": "us",
            "ipcountry_name": "United States",
            "parentDomain": "",
            "registrar": "MarkMonitor, Inc.",
            "domainage": "10 Years, 111 Days",
            "domaincreated": "2009-11-26 20:21:23",
            "domainmodified": "",
            "domainexpires": "",
            "domainavailable": "0",
            "domainlife": 0,
            "likely_country": "ca",
            "location_latitude": "37.751",
            "location_longitude": "-97.822",
            "why": {
                "26": {
                    "code": "26",
                    "why": "HIGH Alexa",
                    "data": "147",
                    "value": "-950.00"
                },
                "27": {
                    "code": "27",
                    "why": "WOT TRust Rating good ",
                    "data": ",59 ,92",
                    "value": "-10.00"
                },
                "41": {
                    "code": "41",
                    "why": "Trust Pilot ",
                    "data": "3.4",
                    "value": "0.00"
                },
                "48": {
                    "code": "48",
                    "why": "SSL found",
                    "data": "",
                    "value": 0
                },
                "933": {
                    "code": "933",
                    "why": "Domain age is ",
                    "data": "10 Years, 111 Days",
                    "value": -10
                },
                "905": {
                    "code": "905",
                    "why": "More than 1 country",
                    "data": 2,
                    "value": 2
                }
            }
        }
      },
      "time": "2019-11-27 20:25:45",
      "ip": "",
      "api_version": "3.4.3"
  }

---------------------------------------------------------------------