
π Documentation & Examples
Everything you need to integrate with URLScan.io
π Quick Start Examples
// URLScan.io API Example
const response = await fetch('https://urlscan.io/about-api/', {
method: 'GET',
headers: {
'Content-Type': 'application/json'
}
});
const data = await response.json();
console.log(data);
The "Scan and Analyse URLs" API allows users to conduct in-depth analysis of web pages and their contents, helping to identify security threats and understand web activity. By leveraging this powerful tool, developers and cybersecurity professionals can get detailed insights into how a specific URL interacts with the internet, uncovering information about the siteβs resources, network behavior, and potential risks associated with the URL. The API provides a comprehensive interface for retrieving scan results, enabling users to make informed decisions based on exhaustive data analysis.
Utilizing the Scan and Analyse URLs API offers numerous advantages. It enhances security by identifying phishing attempts and malicious content, reduces the risk of data breaches through proactive monitoring, delivers valuable insights into site behavior for better web management, streamlines investigations into suspicious activities, and improves overall threat intelligence. This versatility makes the API an essential tool for anyone looking to enhance their understanding of web security and behavior.
- Enhances security by detecting phishing and malicious sites
- Reduces data breach risks through proactive URL monitoring
- Provides valuable insights for effective web management
- Streamlines investigations into suspicious web activities
- Improves overall threat intelligence and situational awareness
Here is a JavaScript code example to call the API:
const axios = require('axios');
async function scanUrl(url) {
const apiKey = 'YOUR_API_KEY';
try {
const response = await axios.post('https://urlscan.io/api/v1/scan/', {
url: url
}, {
headers: {
'API-Key': apiKey,
'Content-Type': 'application/json'
}
});
console.log('Scan initiated successfully:', response.data);
} catch (error) {
console.error('Error initiating scan:', error.response ? error.response.data : error.message);
}
}
scanUrl('https://example.com');
Security Assessment
π 30-Day Uptime History
Daily uptime tracking showing online vs offline minutes