Skip to main content
This section provides working examples for integrating the Scanurl.ai API into your application. All examples use the same request:
  • Endpoint: /url-scan
  • Method: POST
  • Header: x-api-key
  • Body: { "url": "..." }

cURL Example

JavaScript (Fetch API)

JavaScript (Axios)

Python (Requests)

Security Note

  • Do not expose your API key in frontend applications
  • Always make API calls from your backend/server in production
  • Rotate your API key if it is compromised

Summary

These examples demonstrate how to integrate Scanurl.ai using common tools and languages.
You can directly use them as a starting point in your application.