{"id":6181,"date":"2026-02-13T18:34:53","date_gmt":"2026-02-13T23:34:53","guid":{"rendered":"https:\/\/chubes.net\/?documentation=name-com"},"modified":"2026-02-13T20:19:23","modified_gmt":"2026-02-14T01:19:23","slug":"name-com","status":"publish","type":"documentation","link":"https:\/\/chubes.net\/docs\/spawn\/inc\/name-com\/","title":{"rendered":"Name.com"},"content":{"rendered":"<h2 class=\"wp-block-heading\">Overview<\/h2><p>Wraps Name.com API operations for domain availability, renewal, and pricing.<\/p><h2 class=\"wp-block-heading\">Configuration<\/h2><ul class=\"wp-block-list\"><li><code>spawn_namecom_username<\/code><\/li><li><code>spawn_namecom_token<\/code><\/li><li><code>spawn_namecom_test_mode<\/code> (boolean)<\/li><\/ul><h2 class=\"wp-block-heading\">Methods<\/h2><ul class=\"wp-block-list\"><li><code>check_availability(string $domain): array|WP_Error<\/code><\/li><li><code>search(string $keyword, array $tlds = [ 'com', 'net', 'org' ]): array|WP_Error<\/code><\/li><li><code>get_domain(string $domain): array|WP_Error<\/code><\/li><li><code>renew(string $domain, int $years = 1): array|WP_Error<\/code><\/li><li><code>get_renewal_price(string $domain): float|WP_Error<\/code><\/li><\/ul><h2 class=\"wp-block-heading\">Example<\/h2><div class=\"code-block-wrapper\"><div class=\"code-block-header\"><span class=\"code-block-language\">php<\/span><button class=\"code-copy-btn\" aria-label=\"Copy code\"><svg><use href=\"https:\/\/chubes.net\/wp-content\/themes\/chubes\/assets\/icons\/chubes.svg#icon-copy\"><\/use><\/svg><\/button><\/div><pre data-chubes-enhanced class=\"wp-block-code language-php\"><code class=\"language-php\">$result = SpawnName_Com::check_availability( &#039;example.com&#039; );<\/code><\/pre><\/div><div class=\"code-block-wrapper\"><div class=\"code-block-header\"><span class=\"code-block-language\">php<\/span><button class=\"code-copy-btn\" aria-label=\"Copy code\"><svg><use href=\"https:\/\/chubes.net\/wp-content\/themes\/chubes\/assets\/icons\/chubes.svg#icon-copy\"><\/use><\/svg><\/button><\/div><pre data-chubes-enhanced class=\"wp-block-code language-php\"><code class=\"language-php\">$renewal = SpawnName_Com::renew( &#039;example.com&#039;, 1 );<\/code><\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>Overview Wraps Name.com API operations for domain availability, renewal, and pricing. Configuration spawn_namecom_username spawn_namecom_token spawn_namecom_test_mode (boolean) Methods check_availability(string $domain): array|WP_Error search(string $keyword, array $tlds = [ &#8216;com&#8217;, &#8216;net&#8217;, &#8216;org&#8217; ]):&#8230;<\/p>\n","protected":false},"featured_media":0,"template":"","meta":{"footnotes":""},"tags":[],"project":[772],"project_type":[485],"class_list":["post-6181","documentation","type-documentation","status-publish","hentry","project-inc","project_type-tools"],"project_info":{"id":765,"name":"Spawn","slug":"spawn"},"project_type_info":{"id":484,"name":"WordPress Plugins","slug":"wordpress-plugins"},"_links":{"self":[{"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/documentation\/6181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/documentation"}],"about":[{"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/types\/documentation"}],"version-history":[{"count":3,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/documentation\/6181\/revisions"}],"predecessor-version":[{"id":8654,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/documentation\/6181\/revisions\/8654"}],"wp:attachment":[{"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/media?parent=6181"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/tags?post=6181"},{"taxonomy":"project","embeddable":true,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/project?post=6181"},{"taxonomy":"project_type","embeddable":true,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/project_type?post=6181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}