Skip to main content

Get call price

Agent Skill

Automate this endpoint with an AI agent using the 2chat-calls skill:

npx skills add 2ChatCo/agent-skills -s 2chat-calls

Retrieve the estimated per-minute price for calling a given destination phone number. Use this endpoint to check the cost of a call before placing it.

Path parameters

ParameterDescriptionExample
phone-numberThe destination phone number in international format. Can be provided with or without the leading ++595984153762
curl -L 'https://api.p.2chat.io/open/voip/estimated-call-price/+595984153762' \
--header 'X-User-API-Key: your_api_key_here'

Response

The API returns the estimated per-minute price for calling the destination number, along with the matched dialing prefix and location.

{
"success": true,
"call_price": {
"prefix": "595",
"location_name": "Paraguay",
"price_per_minute": 0.0379
}
}

Response fields

FieldDescriptionExample values
prefixThe international dialing prefix matched for the destination number595
location_nameHuman-readable name of the country or region associated with the prefixParaguay
price_per_minuteEstimated price per minute in USD for calling the destination0.0379