> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scanurl.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Integration Examples

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

```text theme={null}
curl -X POST "https://useradminapi.dash.scanurl.ai/api/apikey/v1/url-scan" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
  "url": "https://www.example.com/"
}'
```

## JavaScript (Fetch API)

```text theme={null}
const response = await fetch("https://useradminapi.dash.scanurl.ai/api/apikey/v1/url-scan", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "x-api-key": "YOUR_API_KEY"
  },
  body: JSON.stringify({
    url: "https://www.example.com/"
  })
});

const result = await response.json();
console.log(result);
```

## JavaScript (Axios)

```text theme={null}
import axios from "axios";

const response = await axios.post(
  "https://useradminapi.dash.scanurl.ai/api/apikey/v1/url-scan",
  {
    url: "https://www.example.com/"
  },
  {
    headers: {
      "Content-Type": "application/json",
      "x-api-key": "YOUR_API_KEY"
    }
  }
);

console.log(response.data);
```

## Python (Requests)

```text theme={null}
import requests

url = "https://useradminapi.dash.scanurl.ai/api/apikey/v1/url-scan"

headers = {
    "Content-Type": "application/json",
    "x-api-key": "YOUR_API_KEY"
}

data = {
    "url": "https://www.example.com/"
}

response = requests.post(url, json=data, headers=headers)

print(response.json())
```

## 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.
