get/ip

Get client geolocation

Resolves the approximate location of the requesting client from its IP address, together with the locations where age restricted content is gated or unavailable.

get_client_geolocation

Responses

200

Success

json
{
  "type": "object",
  "properties": {
    "countryCode": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "ISO 3166-1 alpha-2 country code resolved for the client, or null when it cannot be resolved"
    },
    "regionCode": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "ISO 3166-2 subdivision code resolved for the client, or null when it cannot be resolved"
    },
    "latitude": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Approximate latitude of the client, or null when it cannot be resolved"
    },
    "longitude": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Approximate longitude of the client, or null when it cannot be resolved"
    },
    "ageRestrictedGeos": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/GeoEntry"
      },
      "description": "Locations where age restricted content requires an age check"
    },
    "ageBlockedGeos": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/GeoEntry"
      },
      "description": "Locations where age restricted content is unavailable"
    }
  },
  "required": [
    "countryCode",
    "regionCode",
    "latitude",
    "longitude",
    "ageRestrictedGeos",
    "ageBlockedGeos"
  ]
}
400

Bad Request - The request was malformed or contained invalid data

json
{
  "type": "object",
  "properties": {
    "code": {
      "$ref": "#/components/schemas/APIErrorCode"
    },
    "message": {
      "type": "string",
      "description": "Human-readable error message"
    },
    "errors": {
      "type": "array",
      "description": "Field-specific validation errors",
      "items": {
        "$ref": "#/components/schemas/ValidationErrorItem"
      }
    }
  },
  "required": [
    "code",
    "message"
  ]
}
429

Too Many Requests - You are being rate limited

json
{
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "enum": [
        "RATE_LIMITED"
      ]
    },
    "message": {
      "type": "string"
    },
    "retry_after": {
      "type": "number",
      "description": "Seconds to wait before retrying"
    },
    "global": {
      "type": "boolean",
      "description": "Whether this is a global rate limit"
    }
  },
  "required": [
    "code",
    "message",
    "retry_after"
  ]
}
500

Internal Server Error - An unexpected error occurred

json
{
  "type": "object",
  "properties": {
    "code": {
      "$ref": "#/components/schemas/APIErrorCode"
    },
    "message": {
      "type": "string",
      "description": "Human-readable error message"
    },
    "errors": {
      "type": "array",
      "description": "Field-specific validation errors",
      "items": {
        "$ref": "#/components/schemas/ValidationErrorItem"
      }
    }
  },
  "required": [
    "code",
    "message"
  ]
}