Server IP Whitelist (Required) & Access Control

Base URL: https://api.superwin365.tech/api/v1 · Real Matches Only (Virtual Filtered) · CORS & Mobile Ready

1. Server IP Whitelist (Required)

Every API key created inside Dashboard → API Keys requires a valid Server IP address (IPv4, IPv6, or CIDR subnet such as 103.21.45.0/24). Requests coming from an un-whitelisted IP receive 403 IP_NOT_ALLOWED along with the exact detected_ip seen by the gateway.

Field / ParameterRequirementSupported Formats & Rules
Server IP (allowed_ips) Required Exact IPv4 (103.21.45.10), IPv6, or CIDR (103.21.45.0/24). Separate multiple server IPs with commas. Wildcards (*) are not permitted for user keys.
X-API-Key Header Required Send in X-API-Key, Authorization: Bearer, or ?api_key= (or ask Admin to bind your whitelisted server IP directly to your key).
IPv4-Mapped IPv6 Auto-Normalized Dual-stack servers sending ::ffff:x.x.x.x are automatically normalized to standard IPv4.

2. Check Your Server's Outbound IP (GET /api/v1/my-ip)

Cloud servers (AWS, DigitalOcean, cPanel, Cloudflare) often have a different outbound IP than the domain's DNS IP. Run this endpoint from your backend server to confirm the exact IP you must enter in your API key settings:

cURL — Check Outbound Server IP & Whitelist Status
curl -X GET "https://api.superwin365.tech/api/v1/my-ip" -H "Accept: application/json"
PHP — Check Outbound Server IP
<?php
$res = file_get_contents("https://api.superwin365.tech/api/v1/my-ip");
print_r(json_decode($res, true));
Sample Response (200 OK)
{
  "success": true,
  "detected_ip": "103.21.45.10",
  "remote_addr": "103.21.45.10",
  "access_status": "whitelisted"
}

3. Fixing OpenSSL SSL_connect: Connection reset by peer

If your backend server sees SSL_connect: Connection reset by peer on port 443, it is caused by IPv6/HTTP2 mismatch or hosting WAF/Cloudflare dropping bare cURL handshakes. Use these exact PHP cURL options (IPv4 + HTTP/1.1 + TLS 1.2+ + User-Agent):

Recommended Production PHP cURL Client (Zero SSL Reset)
<?php
$ch = curl_init("https://api.superwin365.tech/api/v1/cricket/matches");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_IPRESOLVE      => CURL_IPRESOLVE_V4,
    CURLOPT_HTTP_VERSION   => CURL_HTTP_VERSION_1_1,
    CURLOPT_SSLVERSION     => CURL_SSLVERSION_TLSv1_2,
    CURLOPT_SSL_VERIFYPEER => true,
    CURLOPT_SSL_VERIFYHOST => 2,
    CURLOPT_CONNECTTIMEOUT => 5,
    CURLOPT_TIMEOUT        => 10,
    CURLOPT_HTTPHEADER     => [
        "X-API-Key: sk_live_YOUR_KEY",
        "Accept: application/json",
        "User-Agent: SportPulseClient/1.0 (+https://your-domain.com)",
    ],
]);
$res = curl_exec($ch);
curl_close($ch);
print_r(json_decode($res, true));
  • Call GET https://api.superwin365.tech/api/v1/my-ip from the remote server and copy the exact detected_ip.
  • Save that exact IP under Dashboard → API Keys (required field) or ask Admin to whitelist it in /admin/api-keys.
  • Ask your hosting/Cloudflare admin to whitelist the partner server IP in Imunify360 / ModSecurity / Cloudflare WAF (and disable Bot Fight Mode for /api/v1/*).
  • Append ?fresh=1 on live match detail / score calls if you want an immediate uncached live fetch.