Introduction


cPanel API 1 outputs data to the cPanel interface in multiple formats.

 The output format depends on the specific function that you call. For information about a function's output, see the documentation for that function.

Output formats

cPanel API 1 function calls return data in a variety of formats. For example:

  • HTML.

  • Plaintext or strings.
  • Integers.
  • Generated images.
  • Because some cPanel API 1 functions return HTML output, calls that you make through the WHM API will cause parsing errors in most XML parsers. We strongly recommend that you use cPanel API 2 instead.

  • Some cPanel API 1 functions return a portion of an HTML form. The output of these functions does not include all of the necessary form elements for a functional form.