Loading
Loading
Explore the complete API reference with detailed request parameters, response fields, error codes, and code examples: visit API Reference.
Pass a registrant email address in email. A full address matches every record that carries that address, ignoring case, across current and historical records. On 26 Nov 2026, hostmaster@paypal.com matched 3,593 records over 36 pages in mini mode. The exact parameter has no effect on email searches.
Records whose registrar hides the email cannot match, so an email search finds older and unmasked registrations best. To get every domain behind the address, read total_Pages and request the rest of the pages, as Page Through Large Result Sets shows.
Put * in the part before the @ to stand for any characters. *@example.com matches every address on that mail domain, and hostmaster*@example.com matches addresses that start with hostmaster. Give the domain after the @ in full.
A wide pattern on a large mail domain has to check many records and can run for several minutes. Set a client timeout of a few minutes, start with the narrowest pattern that answers your question, and narrow it further if the request times out with 408, 499 or 504. Errors cost nothing.
Pass the organization name in company. Without exact, the search matches names that contain the words you send, ignoring case, so company=Google also returns Google LLC and Google Inc. With exact=true, only records filed under exactly that name match. On 26 Nov 2026, an exact search for Spotify AB returned 763 records, and Google returned 6,175 exact and 39,805 broad.
Run the exact search first for a clean list, then the broad one to catch variants. A company that changed its name has older records under the former name, so search each former name and each subsidiary too, then merge the lists and remove duplicates.
Pass the registrant name in owner. It reads the registrant name field, not the organization field, so it finds records where a registry filed the company as the name: google.sa has GOOGLE LLC as its registrant name and no organization. On 26 and 27 Nov 2026, an exact owner search for Google LLC returned 2,207 domains, against 25,560 for the same name as a company. exact works the same way as for company.
This example searches a privacy service on purpose. Its 174,326 matches are the service's customers, not one owner, which is why a privacy service's name or email is never a useful search subject. See Filter Out Privacy Services and Redacted Records.
Pass a word in keyword to find domain names that contain it, whoever registered them. The keyword needs 3 to 63 characters and matching ignores case, so keyword=airbnb also returns 123airbnb.com and airbnb-kyokai.com. With exact=true, only domains named exactly the word match, on any extension. On 26 Nov 2026, airbnb matched 26,829 domains.
A keyword search matches the domain name, not the owner, so most matches belong to third parties. Use it for brand protection and lookalike monitoring, and check the owner on each record before you count a domain as the brand's. A keyword shorter than 3 characters returns a 400, which costs nothing.
Send exactly one of keyword, email, owner or company per request. A second field does not narrow the search. The request below sends both a keyword and a company.
On 26 Nov 2026 it returned 14,429 domains with spotify in their name, not the 763 records filed under Spotify AB, so the company was not applied. To cross-check two identifiers, run one search for each and compare the two lists of domain names.
mode=default, the default, returns the full WHOIS record of each match, up to 50 a page: registrar, dates, contacts, name servers, status and query_time, the date that record was collected. mode=mini returns domain_name, create_date, update_date, expiry_date, name, email and company_name, up to 100 a page, as in the company search above. Both cost 90 credits per request, so mini mode halves the cost of a long list.
In mini mode, fields a record does not have are left out rather than sent as null, and in default mode whois_server can be an empty string, so read every field as optional. Build a long list in mini mode, then pull full records for the domains you act on with the Bulk WHOIS Lookup API.
Add format=xml. The fields and paging are the same as in JSON. In mini mode the root element is ReverseWhoisMiniResponse, followed by total_Result, total_Pages and current_Page, and whois_domains_historical holds one domainInfo element per match. An unsupported format value returns 406.
Elements a record does not have are left out, as in JSON.
Every response reports total_Result and total_Pages. Ask for page=2 and on until current_Page equals total_Pages. Each page is a separate request at 90 credits: the 763 Spotify AB matches take 8 pages in mini mode, 720 credits. num is the position on the current page and starts again at 1 on every page.
The script below walks every page of a search and saves one row per domain to a CSV file.
Totals are counted on the day of the request and grow as records are added. The order of matches is not guaranteed, so sort the rows yourself, and remove duplicates when you merge several searches. A search with no matches returns 404 and is not charged, which is why the script stops on it.
Privacy services and redaction labels replace the registrant on many records. They are not owners: an exact owner search for Domains By Proxy, LLC matched 174,326 domains on 26 Nov 2026. Drop those rows before you count a list as one owner's. The function below works on the matches of any search, in either mode.
Registrars use their own wording, including non-English labels, so extend the list with the ones you meet.
A match is the stored record that matched, which can be years old. In the company search above, soundtrap.com carries an expiry_date of 2024-04-12: the domain may have lapsed, or the record may predate a renewal. Before you act, look up the current record of each candidate and compare the registrant company or email with the one you searched.
Send up to 100 domains per request to the Bulk WHOIS Lookup API (18 credits per domain) or one at a time to the Domain WHOIS Lookup API, then keep the domains whose current registrant still matches. A current record that is redacted cannot be confirmed this way; compare its registrar and name servers with the company's known domains instead. For a domain's earlier owners, use the WHOIS History API.
A search with no matches returns 404 with the error Record Not Found and costs 0 credits. Treat it as an empty list, not a failure. Other errors are free too: 400 for a missing or invalid parameter, such as a keyword shorter than 3 characters, 406 for an unsupported format, 429 when you send more requests at once than your plan allows, and 408, 499 or 504 when a search runs too long.
Only a 2xx response is charged, and the X-AF-Credits-Cost header on each response shows what it cost. See the full list of supported TLDs and SLDs for the extensions every search covers.
import requestsurl = "https://api.apifreaks.com/v1.0/domain/whois/reverse?company=Spotify+AB&exact=true&mode=mini"payload = {}headers = {'X-apiKey': 'YOUR_API_KEY'}response = requests.request("GET", url, headers=headers, data=payload)print(response.text)