Returns timezone information for one or more North America phone numbers
curl --request POST \
--url https://dataapi.dncscrub.com/v1.5/GeoScrub/GetTimeZoneInfo \
--header 'Content-Type: application/json' \
--data '
{
"PhoneList": [
"<string>"
],
"OverwriteTodaysTime": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://dataapi.dncscrub.com/v1.5/GeoScrub/GetTimeZoneInfo"
payload = {
"PhoneList": ["<string>"],
"OverwriteTodaysTime": "2023-11-07T05:31:56Z"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({PhoneList: ['<string>'], OverwriteTodaysTime: '2023-11-07T05:31:56Z'})
};
fetch('https://dataapi.dncscrub.com/v1.5/GeoScrub/GetTimeZoneInfo', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dataapi.dncscrub.com/v1.5/GeoScrub/GetTimeZoneInfo",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'PhoneList' => [
'<string>'
],
'OverwriteTodaysTime' => '2023-11-07T05:31:56Z'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://dataapi.dncscrub.com/v1.5/GeoScrub/GetTimeZoneInfo"
payload := strings.NewReader("{\n \"PhoneList\": [\n \"<string>\"\n ],\n \"OverwriteTodaysTime\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://dataapi.dncscrub.com/v1.5/GeoScrub/GetTimeZoneInfo")
.header("Content-Type", "application/json")
.body("{\n \"PhoneList\": [\n \"<string>\"\n ],\n \"OverwriteTodaysTime\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dataapi.dncscrub.com/v1.5/GeoScrub/GetTimeZoneInfo")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"PhoneList\": [\n \"<string>\"\n ],\n \"OverwriteTodaysTime\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body[
{
"PhoneNumber": "<string>",
"TZName": "<string>",
"StateProvince": "<string>",
"UTCOffset": "<string>",
"UTCOffsetInMinutes": 123,
"HasDST": true,
"NextStartDateDST": "2023-11-07T05:31:56Z",
"EndStartDateDST": "2023-11-07T05:31:56Z",
"LATA": "<string>",
"RateCenterLIR": "<string>"
}
]{
"ReasonPhrase": "<string>"
}{
"ReasonPhrase": "<string>"
}GeoScrub
Get Timezone Info
Returns timezone information for one or more North American phone numbers
POST
/
v1.5
/
GeoScrub
/
GetTimeZoneInfo
Returns timezone information for one or more North America phone numbers
curl --request POST \
--url https://dataapi.dncscrub.com/v1.5/GeoScrub/GetTimeZoneInfo \
--header 'Content-Type: application/json' \
--data '
{
"PhoneList": [
"<string>"
],
"OverwriteTodaysTime": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://dataapi.dncscrub.com/v1.5/GeoScrub/GetTimeZoneInfo"
payload = {
"PhoneList": ["<string>"],
"OverwriteTodaysTime": "2023-11-07T05:31:56Z"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({PhoneList: ['<string>'], OverwriteTodaysTime: '2023-11-07T05:31:56Z'})
};
fetch('https://dataapi.dncscrub.com/v1.5/GeoScrub/GetTimeZoneInfo', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dataapi.dncscrub.com/v1.5/GeoScrub/GetTimeZoneInfo",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'PhoneList' => [
'<string>'
],
'OverwriteTodaysTime' => '2023-11-07T05:31:56Z'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://dataapi.dncscrub.com/v1.5/GeoScrub/GetTimeZoneInfo"
payload := strings.NewReader("{\n \"PhoneList\": [\n \"<string>\"\n ],\n \"OverwriteTodaysTime\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://dataapi.dncscrub.com/v1.5/GeoScrub/GetTimeZoneInfo")
.header("Content-Type", "application/json")
.body("{\n \"PhoneList\": [\n \"<string>\"\n ],\n \"OverwriteTodaysTime\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dataapi.dncscrub.com/v1.5/GeoScrub/GetTimeZoneInfo")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"PhoneList\": [\n \"<string>\"\n ],\n \"OverwriteTodaysTime\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body[
{
"PhoneNumber": "<string>",
"TZName": "<string>",
"StateProvince": "<string>",
"UTCOffset": "<string>",
"UTCOffsetInMinutes": 123,
"HasDST": true,
"NextStartDateDST": "2023-11-07T05:31:56Z",
"EndStartDateDST": "2023-11-07T05:31:56Z",
"LATA": "<string>",
"RateCenterLIR": "<string>"
}
]{
"ReasonPhrase": "<string>"
}{
"ReasonPhrase": "<string>"
}Response Fields
Every input phone produces exactly one row in the response. InspectStatus to decide how to handle each row.
| Field | Type | Description |
|---|---|---|
PhoneNumber | string | The 10-digit phone number the row applies to |
TZName, StateProvince, UTCOffset, UTCOffsetInMinutes, HasDST, NextStartDateDST, EndStartDateDST, LATA, RateCenterLIR | various | Timezone metadata. Populated only when Status is "OK"; left at default / null values for any non-OK row |
Status | string | Outcome code for the row. See the table below |
StatusMessage | string | Human-readable explanation when Status is not "OK". null when Status is "OK" |
Status Values
| Status | Meaning | Recommended client action |
|---|---|---|
OK | Row processed successfully. Timezone fields are valid. | Use the result. |
INVALID_PHONE | Phone number failed format validation. | Skip; flag the source list for cleanup. |
TOLL_FREE | Phone is in a toll-free NANP area code (8YY). Non-geographic, so no timezone exists. | Skip; do not retry. |
UNKNOWN_NXX | The NPA-NXX is not in our prefix master list. Because the master list is refreshed from definitive telco data, this almost always means the NXX is unassigned/invalid. | Skip; flag the source list for cleanup. |
Per-row
Status replaces the older behavior where a single bad phone caused the entire batch to return HTTP 400. The endpoint now returns 200 with one row per input phone; inspect Status to decide which rows are usable. HTTP 400 is still returned for batch-level errors (missing body, empty list, more than 1000 phones).Headers
LoginId (aka APIKey)
Body
application/jsontext/jsonapplication/*+json
Object of phone numbers whose timezones we query
⌘I