Resource path /Domain/List
https://testapi.internet.bs/Domain/List?apiKey=testapi&password=testpass&.....
This command is intended to retrieve a list of domains in your account.
HTTPS POST/GET Request parameters:
| Parameter name | Description |
ApiKey |
The API key that we provided to you when you requested API access for your account |
Password |
The password we provided when you requested API access for your account |
ExpiringOnly |
You can set a value X expressed in days and the returned list will include all the domains expiring during the X next days accordingly to the X value you set. By example ExpiringOnly=45 will return the domains expiring during the next 45 days. The list may also include expired domains prior to the date of execution not yet removed from the system. |
PendingTransferOnly |
No value required, if present only domains in Pending Transfer status will be listed. Note you cannot use PendingTransfersOnly and ExpiringOnly at the same time otherwise an error message will be generated. |
rangeFrom and |
By default we only show all domains in your account. If you want the listing to be paginated use these two parameters. |
searchTermFilter |
To get the list of domains that contains a specific text. If you need to get only domains of a specific extension you need to start this parameter with a dot followed by the extension. Ex. If this parameter value is .eu only .eu domains will be returned. Default is empty string. If you wish multiple extensions returned see extension Filter parameter. |
CompactList |
By default we only return the list of domains separated by ;. However you may obtain extra information such as expiration date and registry status if you set CompactList=no. The default value is ComptactList=yes. |
SortBy |
To specify a sorting criteria. Possible values are: DOMAIN_NAME, DOMAIN_NAME_DESC, EXPIRATION, EXPIRATION_DESC. |
extensionFilter |
List of domain extensions which have to be returned. If several extensions needed then comma have to be used as separator, ex.: "com,co.uk" or "eu,asia" |
ResponseFormat |
This specifies how the response will be returned. Possible values are TEXT, JSON and XML. |
Returned data:
Example (with CompactList=yes):
https://testapi.internet.bs/Domain/List?apiKey=testapi&password=testpass
The result for this request is
Example2 (with CompactList=no):
https://testapi.internet.bs/Domain/List?apiKey=testapi&password=testpass&CompactList=no
Result:
