How to dial an international number
get_dialing_instructionsExact digits to dial a phone in another country from the caller's country: exit code, country code, and the national number with its trunk prefix correctly dropped or kept, plus the + form for mobiles and numbered steps. Use it for any "how do I call this country or number" question, including shared-code zones (the US, Canada and most of the Caribbean dial 1 + ten digits, with no exit code). For what the call costs, use get_call_price instead. Pass number for that number's exact sequence (a + international number needs nothing else; a local-format number also needs destination), or only destination for the country's rule and a real example. origin defaults to the US. Derived from Google's libphonenumber metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | No | A specific phone number, as the caller has it: local format ("55 1234 5678", needs destination) or international ("+52 55 1234 5678"). | |
| origin | No | Country the caller is dialing from (default "US"): an ISO 3166-1 alpha-2 code such as "MX", or an English name such as "Mexico". | |
| destination | No | Country being called: an ISO 3166-1 alpha-2 code such as "MX", or an English name such as "Mexico". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| note | Yes | ||
| steps | Yes | ||
| number | Yes | ||
| origin | Yes | ||
| callUrl | Yes | ||
| guideUrl | Yes | ||
| isExample | Yes | ||
| trunkRule | Yes | ||
| destination | Yes | ||
| dialSequence | Yes | ||
| fromAnyMobile | Yes |