Child pages
  • cPanel API 1 - Return Data
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

 

Introduction


Warning:

cPanel API 1 is deprecated. We strongly recommend that you use cPanel API 2 or UAPI instead. 


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.

Notes:

  • 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.
    • Important:

      cPanel & WHM version 66 deprecated XML output for cPanel API 1, cPanel API 2, UAPI, WHM API 0, and WHM API 1.

      • Calls for XML API output will return a deprecation warning.
      • We plan to remove XML output entirely in a future version of cPanel & WHM.

      For more information, read our cPanel Deprecation Plan documentation.

    • This API's XML output does not comply with XML standards, is slower than JSON output to produce, and may result in validation errors. We strongly recommend that you use JSON.

  • 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.


  • No labels