{
  "openapi": "3.0.1",
  "info": {
    "title": "Scam Website Checker API: Website Trust Score and Domain Risk",
    "description": "Scam website checker on your own ScamAdviser API key: get a 0 to 100 trust score for any URL or domain, with blacklist status, WHOIS age, SSL, hosting, phishing and DNS threat counts, reviews and score adjustments. Cache first, live lookup when needed, or read the data feed. Bring your own key.",
    "version": "0.1",
    "x-build-id": "ZvE7Qnz4mqyO4WeWk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nabeelbaghoor~scam-website-checker-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nabeelbaghoor-scam-website-checker-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/nabeelbaghoor~scam-website-checker-api/runs": {
      "post": {
        "operationId": "runs-sync-nabeelbaghoor-scam-website-checker-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/nabeelbaghoor~scam-website-checker-api/run-sync": {
      "post": {
        "operationId": "run-sync-nabeelbaghoor-scam-website-checker-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "What to do",
            "enum": [
              "urlTrust",
              "domainTrust",
              "dataFeed"
            ],
            "type": "string",
            "description": "URL trust check looks up full web addresses (Trust API v3). Domain trust check looks up domain names (Trust API v2). Data feed reads the domain records ScamAdviser publishes every 5 minutes, hourly and daily, if your key includes the feed.",
            "default": "urlTrust"
          },
          "urls": {
            "title": "URLs",
            "type": "array",
            "description": "URL trust check only. One URL or domain per line, up to 1000 a run. Defanged values such as shop[.]example and hxxps:// are restored first. A URL that redirects is scored as the site it lands on.",
            "items": {
              "type": "string"
            }
          },
          "domains": {
            "title": "Domains",
            "type": "array",
            "description": "Domain trust check only. One domain per line, up to 1000 a run. A pasted URL is cut down to its domain, without www.",
            "items": {
              "type": "string"
            }
          },
          "lookup": {
            "title": "Lookup",
            "enum": [
              "cacheThenLive",
              "cacheOnly",
              "liveOnly"
            ],
            "type": "string",
            "description": "URL and domain checks. ScamAdviser asks callers to try its 30 day cache first; a live lookup takes up to 25 seconds and runs only when the cache has nothing or only data older than 30 days. Each call counts against your key's monthly quota.",
            "default": "cacheThenLive"
          },
          "concurrency": {
            "title": "Lookups at once",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "URL and domain checks. How many sites are looked up at the same time. Live lookups take up to 25 seconds each, so a few at once keeps a long list moving.",
            "default": 3
          },
          "includeWhoisContacts": {
            "title": "Keep WHOIS contact details",
            "type": "boolean",
            "description": "Keeps the registrant, administrative and technical WHOIS contacts (names, addresses, emails, phones) in the stored record. Off by default because they are personal data; the registrar and registration dates are always kept.",
            "default": false
          },
          "feedType": {
            "title": "Feed type",
            "enum": [
              "5-minute",
              "hourly",
              "daily"
            ],
            "type": "string",
            "description": "Data feed only. Which feed files to read: the 5-minute update files, or their hourly or daily aggregates.",
            "default": "5-minute"
          },
          "feedFrom": {
            "title": "Feed files from",
            "type": "string",
            "description": "Data feed only. Lists files from this date (YYYY-MM-DD). Left empty, the last 24 hours are listed. Feed files are kept for 180 days."
          },
          "feedTo": {
            "title": "Feed files to",
            "type": "string",
            "description": "Data feed only. Lists files up to this date (YYYY-MM-DD). Left empty, up to now."
          },
          "maxFiles": {
            "title": "Feed files to read",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Data feed only. How many of the newest listed files to read, newest first.",
            "default": 1
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The most rows this run returns: sites checked, or domain records read from the feed.",
            "default": 100
          },
          "apiKey": {
            "title": "API key",
            "type": "string",
            "description": "Your own ScamAdviser API key, issued by the ScamAdviser product team. Stored as a secret, sent only to api.scamadviser.cloud, and never logged or stored with the results. You can instead set the DATA_API_KEY environment secret."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}