Domains plugin for WordPress: domain search with WHOIS and your reseller prices on your site

API & DocumentationWordPress, Websites & Automation·· 178 views· 3 min read

With this plugin, visitors to your WordPress site search for domains without leaving the page. They see if the name is free and what it costs, then click Register. It uses only our public API, with your MozOut account key, and works in Portuguese and English.

What it does

Search: on any page, as a block or shortcode. It says if each name is free (WHOIS), shows the price per year and the renewal price, and suggests similar names that are free. For names already taken, "See WHOIS" shows the registration and expiry dates, the status and the nameservers.

Register button: it goes to the MozOut site, to an address of your own (with {domain}) or to the WooCommerce cart, when the WooCommerce reseller plugin of the same brand is active.

Prices: the public prices or, with a Reseller Program key, your price plus the margin you choose, rounded if you want. Always 2 decimal places. There is also a price list for the extensions you choose.

Against robots: a limit of searches per visitor, so robots do not use up your API limits.

The shortcodes

[mozout_domain_finder]: the search, with the price and the button to register. Options: extensions, button and placeholder.

[mozout_tld_prices]: the price list of the extensions you choose. Option: extensions.

Each shortcode also has a block in the editor, with the same options.

What you need

WordPress 6.0 or newer, PHP 7.4 to 8.5 and the OpenSSL extension. And an API key, created in the API Center of My MozOut.

Installing, step by step

1 Download the ZIP of the latest release.
2 Upload it in Plugins > Add New > Upload Plugin. You can also copy the mozout-domains folder to wp-content/plugins/.
3 Activate the plugin and open Settings > MozOut Domains.
4 Paste the API key and save. The key is checked with the API right away.

The API key and its permissions

The key needs catalog:read. Add reseller:read to see your Agency. See how to create a key and pick its permissions.

When you save it, the plugin asks the API about the key. A wrong, revoked or expired key is not saved, and the plugin tells you right away if permissions are missing or the key is a Sandbox key. The key is kept encrypted (AES-256-GCM, with the WordPress security keys) and never shown again. You can define MOZOUT_DOMAINS_API_KEY in wp-config.php instead.

Testing without spending

A sandbox_ key simulates writes and charges nothing. If you save a Sandbox key, the plugin tells you straight away. For the live site, use a prod_ key.

Good to know

The key stays on the server: the visitor asks your WordPress, and WordPress asks the API. The key never reaches the browser.

Cache: results are kept for 10 minutes and extension prices for 6 hours.

With the Connect plugin: it can run next to the MozOut Connect plugin. The shortcodes have other names.

Help

If the search gives no results or the key will not save, open a support ticket and tell us the plugin version and the message you see. The code is in the plugin repository, under the MIT license.

Want domain search on your site?

Download the latest release

SEE ALSO

What the Reseller Program is

WHOIS: what it shows and how to check it

Creating an API key

The repository on MozOut Git

SDKs and integrations, in the API documentation

RECOMMENDED PRODUCT

WordPress hosting

One-click install, updates handled, and speed that holds up. from KSh858.00/mo (3-year plan, with coupon)

See plans
Was this answer helpful? Your answer helps us improve this article.