Local Calling Guide
XML query interface
This site offers XML output for certain queries. Use this instead of the web interface if you want to do automated lookups.
In general, output fields are the same as in the web interface. Since these queries may return large volumes of data you may wish to cache the results.
Other queries may become available in the future.
Last updated: Fri, 17 May 2013 01:26:12 UTC
xmllocalexch
Description: look up prefixes within the local calling area of the specified exch code
URL: xmllocalexch.php
Parameters:
- exch (required)
- prefix
- dir (optional)
- direction of local calling - 1=outbound (default), 2=inbound
- rconly
- 0=show NPA/NXX (default), 1=show rate centres only
Sample query: xmllocalexch.php?exch=015800
xmllocalprefix
Description: look up prefixes within the local calling area of the specified prefix
URL: xmllocalprefix.php
Parameters:
- npa (required)
- area code
- nxx (required)
- prefix
- dir (optional)
- direction of local calling - 1=outbound (default), 2=inbound
Sample query: xmllocalprefix.php?npa=250&nxx=423
xmlprefix
Description: NPA/NXX (area code/prefix) search
URL: xmlprefix.php
Parameters:
- npa
- area code
- nxx
- prefix
- x
- block
- rc
- rate centre name
- region
- state/province/territory/Caribbean country code
- switch
- CLLI code
- lata
- LATA code for rate centre
- ocn
- OCN (operating company number) code
- udate
- date of last change (YYYYMMDD)
- blocks
- 1=show thousands-blocks, otherwise do not show
Sample query: xmlprefix.php?npa=250&nxx=423
xmlrc
Description: Rate centre search
URL: xmlrc.php
Parameters:
- npa
- area code
- rc
- rate centre name
- region
- state/province/territory/Caribbean country code
- lata
- LATA code for rate centre
- lir
- LIR (local interconnection region) code
- ocn
- OCN (operating company number) code
- udate
- date of last change (YYYYMMDD)
Sample query: xmlrc.php?npa=250
xmlrcdist
Description: determine rate distance between two rate centres and whether this is a local call
URL: xmlrcdist.php
Parameters:
- npa1 (required)
- area code
- nxx1 (required)
- prefix
- npa2 (required)
- area code
- nxx2 (required)
- prefix
Sample query: xmlrcdist.php?npa1=416&nxx1=423&npa2=212&nxx2=733
Sponsored by: VoiceMeUp - Corporate VoIP Services