API Queries - List Domains
The list_domains function lists domains in your Monetization Portfolio Manager account. Additional parameters are optional for this function.
Additional Parameters
- folder - The name of the folder to show domains from. If this parameters is omitted, all domains in your account will be shown. (Optional)
- start - The starting offset for results. Default is 0 (Optional)
- num - The number of results to show from the report. Default is 100, maximum is 1,000 (Optional)
Note: Make sure to URL encode all values.
Example query and response:
In this example, we will retrieve a list of all domains in the folder "parked domains" (folder=parked%20domains).
Example query:
Response:
<results>
a-domain123456.com
a-domain123456-2.com
a-domain123456-3.com
a-domain123456-4.com
</results>
Error Responses:
Possible error responses for this function are:
413 - Folder Not Found
General errors, such as 200 - Internal Error or 300 - Username or password invalid.
For a complete list of error responses, see the Error Codes manual page.