Skip to main content

Geography & Location

getCleanCountryName​

You can use this service to get a clean country name from a raw country value. For example, "AF" → "Afghanistan".

URL:

https://api.rightwave.com/rdn/api/ss/getCleanCountryName?rawCountry={Marketo token for rawCountry}

Headers:

Key NameValueDescription
auth-key62m-8db697ee26b6eb4e17876775Use for authentication
Content-Typeapplication/jsonHeader for Content-Type

Query Parameters:

Parameter NameData TypeDescription
rawCountryStringFirst input for getCleanCountryName

Output:

{
"success": true,
"input": {
"rawCountry": "AF"
},
"result": {
"output": "Afghanistan"
},
"requestId": "21666676345885609"
}

Example:

curl -X GET \
-H 'Content-Type: application/json' \
-H 'auth-key: 62m-8db697ee26b6eb4e17876775' \
"https://api.rightwave.com/rdn/api/ss/getCleanCountryName?rawCountry=AF"

getStateCodeFromCountry​

To get the state code from a country and state. For example, country "United States" and state "Alaska" → state code "AK".

URL:

https://api.rightwave.com/rdn/api/ss/getStateCodeFromCountry?country={Marketo token for country}&state={Marketo token for state}

Headers:

Key NameValueDescription
auth-key62m-8db697ee26b6eb4e17876775Use for authentication
Content-Typeapplication/jsonHeader for Content-Type

Query Parameters:

Parameter NameData TypeDescription
countryStringFirst input for getStateCodeFromCountry
stateStringSecond input for getStateCodeFromCountry

Output:

{
"success": true,
"input": {
"country": "United States",
"state": "Alaska"
},
"result": {
"output": "AK"
},
"requestId": "21666676345885609"
}

Example:

curl -X GET \
-H 'Content-Type: application/json' \
-H 'auth-key: 62m-8db697ee26b6eb4e17876775' \
"https://api.rightwave.com/rdn/api/ss/getStateCodeFromCountry?country=United States&state=Alaska"

Get IP Details​

The Get Lead IP Details service gives us demographic information about the leads. It accepts the IPv4 format of IP address.

URL:

https://api.rw001.com/rdn/api/ss/getLeadIPDetails?ip={Marketo token for ip}

Headers:

Key NameValueDescription
auth-key6tv-8c34fa6bb63d3ad59cff6467Use for authentication
Content-Typeapplication/jsonaccept application/json

Query Parameters:

Parameter NameData TypeDescription
ipStringValid IPv4 address

Output:

{
"success": true,
"input": {
"input": "117.217.15.6"
},
"result": {
"output": {
"ip": "117.217.15.6",
"country": "India",
"country_code": "IN",
"state": "West Bengal",
"state_code": "WB",
"city": "Dalkhola",
"isisp": "Y",
"latitude": "25.8719",
"longitude": "87.8358",
"zip": "733201",
"organization": "BSNL"
}
},
"requestId": "21666676345885609"
}

Example:

curl -X GET \
-H 'Content-Type: application/json' \
-H 'auth-key: 6tv-8c34fa6bb63d3ad59cff6467' \
"https://api.rw001.com/rdn/api/adv/getLeadIPDetails?ip=117.217.15.6"