Downloading the API sample files
To help you get started, we have written a PHP example for every action of the API. You can use the examples as they are or adapt them for your own software. The comments in the files and the variable names are in English.
Download the sample files (version 2025.1).
What is included
- the
examplesfolder with one PHP file per action, such asdomains_check.phpanddomains_order.php; examples/inc/global.php, in which you enter your UserID and IPHash;examples/inc/functions.php, with theAPICallfunction that sends every request tohttps://api.xynta.com.
Using an example
Enter your details
In
examples/inc/global.php, put your UserID in$globalAPIUserIDand your IPHash in$globalAPIIPHash. Where to find them is explained in Connecting to the API for the first time.Fill in the example
Open the example of the action you want to use and fill in the empty fields, such as
DomainandTld.Run the example
Run the example on the server whose IP address is on your whitelist. The response of the API ends up in the
$curlResponsevariable; add, for example,print_r($curlResponse);to see it.
What each action does, which fields it needs and which status codes it returns is in the API reference.
Related articles
Thank you for your feedback.

