Phishing Domain Checker API - Ruby Gem
Phishing Domain Checker verifies whether a domain or URL appears in a comprehensive database of known phishing sites. Updated every 6 hours with 850,000+ active phishing domains.
Installation
Add this line to your application's Gemfile:
gem 'apiverve_phishingcheck'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install apiverve_phishingcheck
Getting Started
Get your API key at APIVerve
Basic Usage
require 'apiverve_phishingcheck'
# Initialize the client
client = APIVerve::Phishingcheck::Client.new(api_key: "YOUR_API_KEY")
# Make a request
response = client.execute({ url: "https://secure-banking-login.suspicious-domain.com/auth" })
# Print the response
puts response
Error Handling
begin
response = client.execute({ url: "https://secure-banking-login.suspicious-domain.com/auth" })
puts response["data"]
rescue APIVerve::Phishingcheck::ValidationError => e
puts "Validation error: #{e.errors.join(', ')}"
rescue APIVerve::Phishingcheck::APIError => e
puts "API error: #{e.}"
puts "Status code: #{e.status_code}"
end
Debug Mode
# Enable debug logging
client = APIVerve::Phishingcheck::Client.new(
api_key: "YOUR_API_KEY",
debug: true
)
Example Response
{
"status": "ok",
"error": null,
"data": {
"domain": "secure-banking-login.suspicious-domain.com",
"isPhishing": true,
"matchedDomain": "suspicious-domain.com",
"inputType": "url",
"originalInput": "https://secure-banking-login.suspicious-domain.com/auth",
"isPunycode": false,
"isIpAddress": false,
"riskScore": 85,
"riskLevel": "high"
}
}
Documentation
For more information, visit the API Documentation.
Support
- Website: https://apiverve.com/marketplace/phishingcheck?utm_source=ruby&utm_medium=readme
- Email: hello@apiverve.com
License
This gem is available under the MIT License.