Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Domain parking API

Discussion in 'cPanel Developers' started by nibb, Jan 28, 2012.

  1. nibb

    nibb Well-Known Member

    Mar 22, 2008
    Likes Received:
    Trophy Points:
    Is it possible to park/unpark domains from a list via the API?

    I have a list of domains which I need to automatically park in a cPanel account. Instead of adding them manually I want to run a script that will park them automatically and have another one to remove them.

    Is this possible?
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Nov 29, 2006
    Likes Received:
    Trophy Points:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Yes this is possible.

    If you are familiar with PHP, we have park() and unpark() functions in the xmapi.php class available at that you can call from your own PHP scripts. The PHP class helps with authenticating into the cPanel&WHM server, and calling API1/API2 functions like this via the XML API. Refer to the example files at for insight on how to use this class.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice