클라이언트 접속 국가 정보 조회

개요

클라이언트 유저의 국가 정보를 반환하는 RESTful API로 Geo Location 기반 요청자의 국가 정보를 요청자에게 다시 반환합니다.

  • 국가 코드 (ISO 3166-1 A2 표준의 2자리 국가코드)

  • Client IP

사용

Endpoint

Request

  • Method: GET

Response

  • Content-type: application/json;charset=UTF-8

Web 환경에서 CORS 이슈는 최소화 하기 위해 아래 Header 가 추가됩니다.

  • access-control-allow-origin: *

예시

$ curl -X GET https://location.games.hybeim.com/
{"country":"KR", "ip":"000.000.000.000"}

Last updated