Calculator

Calcatraz API

The Calcatraz API allows you to access calculations in a format which can be easily used within your own programs.

Calculations

To get the answer to a calculation, simply request a URL like this:

http://www.calcatraz.com/calculator/api?c=3%2A3

where the 'c' parameter is the urlencoded form of your calculation.

This allows you to perform calculations from within your own programs very easily. For instance in PHP do:

echo '3*3='.calculate('3*3'); // display the answer

function calculate($calc) {
  return @file_get_contents(
    'http://www.calcatraz.com/calculator/api?c='.urlencode($calc));
}
terms of use - privacy