OpenMLBB SDK Docs

OpenMLBB Endpoint

SDK call mapping, request requirements, and Python example.

Every card documents the SDK call from OpenMLBB and mirrors API path/query/body requirements.

GET Check IP address location details

/openmlbb/addon/ip

Open Only This

API Path: /api/addon/ip

Retrieves geographic information associated with a given IP address. No parameters required.

The response includes IP location data:

  • code: Response code (e.g., 0).
  • msg: Status message (e.g., 'ok').
  • data:
      • city: City name (e.g., 'Yogyakarta').
      • state: State or region (e.g., 'Yogyakarta').
      • country: Country code (e.g., 'id').
      • lang: Language code (e.g., 'en').

This endpoint is useful for:

  • Identifying approximate geographic location of an IP address.
  • Supporting analytics and personalization.
  • Performing security checks and contextual validation.

Python Example

from OpenMLBB import OpenMLBB

client = OpenMLBB()
response = client.addon.ip()
print(response)