Skip to main content
POST
/
mixedcontent
cURL
curl --request POST \
  --url https://api.geekflare.com/mixedcontent \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "url": "https://example.com",
  "followRedirect": false,
  "proxyCountry": "us"
}
'
{
  "timestamp": 1763372588297,
  "apiStatus": "success",
  "apiCode": 200,
  "message": "Mixed content(s) found.",
  "meta": {
    "url": "https://example.com",
    "test": {
      "id": "mxqx9v9y0742lap6altwdteqd28t23nq"
    },
    "proxyCountry": "United States",
    "followRedirect": true,
    "redirectedURL": "https://example.com/"
  },
  "data": [
    "https://example.com/",
    "https://example.com/style.css",
    "https://example.com/script.js"
  ]
}

Authorizations

x-api-key
string
header
required

API Key required for all endpoints

Body

application/json
url
string
required

Target URL

Example:

"https://example.com"

followRedirect
boolean
default:false

Whether to follow redirects when checking site status

Example:

false

proxyCountry
string

Proxy country code to route the request

Example:

"us"

Response

Site status retrieved successfully

timestamp
number
required

Timestamp of the request in milliseconds

Example:

1763372588297

apiStatus
enum<string>
required

API status message

Available options:
success,
failure
Example:

"success"

apiCode
number
required

API status code

Example:

200

message
string
required

Indicates whether mixed content found or not. It can either be "Mixed content(s) found." or "No mixed content found."

Example:

"Mixed content(s) found."

meta
object
required

Metadata about the mixed content test

data
required

Contains either an array of all resources (when no mixed content) or an object with insecure/secure arrays (when mixed content found)

Example:
[
"https://example.com/",
"https://example.com/style.css",
"https://example.com/script.js"
]