Dialing Codes Service

Use this service to find out full international dialing codes for thousands of locations worldwide. The service includes country and area codes for all locations in our database.

Service input:

  • Call origin (optional).
  • Call destination.
  • Local number to be called (can be omitted for privacy reasons).

Data returned by the service:

  • Full number to call.
  • Number split up into individual parts, including explanation.
  • Geographical information about call origin and destination location.
  • Current local time at origin and destination location.
{
  "version": 1,
  "number": {
    "full": "00 31 20 X"
  },
  "composition": [{
    "id": "international-prefix",
    "iddesc": "International Prefix",
    "number": "00",
    "description": "00 is the international prefix used to dial somewhere outside of Norway."
  },{
    "id": "country-prefix",
    "iddesc": "Country Prefix",
    "number": "31",
    "description": "31 is the international code used to dial to Netherlands."
  },{
    "id": "area-code",
    "iddesc": "Area Code",
    "number": "20",
    "description": "20 is the local area or city code used to dial to Amsterdam. "
  },{
    "id": "local-number",
    "iddesc": "Local Number",
    "number": "X",
    "description": "X is the local number you wrote. Exchange X with your number"
  }],
  "locations": [{
    "id": 187,
    "geo": {
      "name": "Oslo",
      "country": {
        "id": "no",
        "name": "Norway"
      },
      "latitude": 59.913,
      "longitude": 10.740
    },
    "time": {
      "iso": "2011-11-09T08:59:10+01:00",
      "datetime": {
        "year": 2011,
        "month": 11,
        "day": 9,
        "hour": 8,
        "minute": 59,
        "second": 10
      },
      "timezone": {
        "offset": "+01:00",
        "zoneabb": "CET",
        "zonename": "Central European Time",
        "zoneoffset": 3600,
        "zonedst": 0,
        "zonetotaloffset": 3600
      }
    }
  },{
    "id": 16,
    "geo": {
      "name": "Amsterdam",
      "country": {
        "id": "nl",
        "name": "Netherlands"
      },
      "latitude": 52.350,
      "longitude": 4.867
    },
    "time": {
      "iso": "2011-11-09T08:59:10+01:00",
      "datetime": {
        "year": 2011,
        "month": 11,
        "day": 9,
        "hour": 8,
        "minute": 59,
        "second": 10
      },
      "timezone": {
        "offset": "+01:00",
        "zoneabb": "CET",
        "zonename": "Central European Time",
        "zoneoffset": 3600,
        "zonedst": 0,
        "zonetotaloffset": 3600
      }
    }
  }]
}
<?xml version="1.0" encoding="UTF-8"?>
<data version="1">
  <number>
    <full>00 31 20 X</full>
  </number>
  <composition>
    <part id="international-prefix" iddesc="International Prefix" number="00" description="00 is the international prefix used to dial somewhere outside of Norway."/>
    <part id="country-prefix" iddesc="Country Prefix" number="31" description="31 is the international code used to dial to Netherlands."/>
    <part id="area-code" iddesc="Area Code" number="20" description="20 is the local area or city code used to dial to Amsterdam. "/>
    <part id="local-number" iddesc="Local Number" number="X" description="X is the local number you wrote. Exchange X with your number"/>
  </composition>
  <location id="187">
    <geo>
      <name>Oslo</name>
      <country id="no">Norway</country>
      <latitude>59.913</latitude>
      <longitude>10.740</longitude>
    </geo>
    <time iso="2011-11-09T09:00:01+01:00">
      <datetime>
        <year>2011</year>
        <month>11</month>
        <day>9</day>
        <hour>09</hour>
        <minute>00</minute>
        <second>01</second>
      </datetime>
      <timezone offset="+01:00">
        <zoneabb>CET</zoneabb>
        <zonename>Central European Time</zonename>
        <zoneoffset>3600</zoneoffset>
        <zonedst>0</zonedst>
        <zonetotaloffset>3600</zonetotaloffset>
      </timezone>
    </time>
  </location>
  <location id="16">
    <geo>
      <name>Amsterdam</name>
      <country id="nl">Netherlands</country>
      <latitude>52.350</latitude>
      <longitude>4.867</longitude>
    </geo>
    <time iso="2011-11-09T09:00:01+01:00">
      <datetime>
        <year>2011</year>
        <month>11</month>
        <day>9</day>
        <hour>09</hour>
        <minute>00</minute>
        <second>01</second>
      </datetime>
      <timezone offset="+01:00">
        <zoneabb>CET</zoneabb>
        <zonename>Central European Time</zonename>
        <zoneoffset>3600</zoneoffset>
        <zonedst>0</zonedst>
        <zonetotaloffset>3600</zonetotaloffset>
      </timezone>
    </time>
  </location>
</data>

Related Links

Terms & ConditionsCopyright © Time and Date AS
All data supplied by timeanddate.com