# Domains List

Get full list of supported domain by our serp api, This list also contains bing domain to perform SERP over bing.

As a response of the API server you will get the JSON array, There will be the information about available search engines domains.

{% hint style="danger" %}
Requires authentication
{% endhint %}

## Get a list of domains.

<mark style="color:blue;">`GET`</mark> `https://api.serphouse.com/domain/list`

#### Headers

| Name                                            | Type   | Description              |
| ----------------------------------------------- | ------ | ------------------------ |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer \<YOUR\_API\_KEY> |

{% tabs %}
{% tab title="200: OK Successful operation" %}

```json
{
    "status": "success",
    "msg": "",
    "results": [
        "bing.com",
        "google.com.af",
        "google.al",
        "google.dz",
        "google.as",
        "google.co.ke",
        "google.ad",
        "google.co.ao",
        "google.com.ai",
        "google.com.ag",
        "google.im",
        "google.com.ar",
        "google.am",
        "google.com.au",
        "google.at",
        "google.hn",
        "google.az",
        "google.bs",
        "google.com.bh",
        "google.com.bd",
        "google.com.my",
        "google.by",
        "google.be",
        "google.com.bz",
        "google.bj",
        "google.com.et",
        "google.bt",
        "google.com.bo",
        "google.ba",
        "google.co.bw",
        "google.mg",
        "google.com.br",
        "google.vg",
        "google.com.bn",
        "google.bg",
        "google.dk",
        "google.bf",
        "google.bi",
        "google.com.kh",
        "google.cm",
        "google.co.il",
        "google.ca",
        "google.cv",
        "google.cat",
        "google.cf",
        "google.td",
        "google.cl",
        "google.com.hk",
        "google.com.co",
        "google.co.ck",
        "google.co.cr",
        "google.ci",
        "google.hr",
        "google.com.cu",
        "google.com.cy",
        "google.cz",
        "google.dm",
        "google.com.do",
        "google.com.ec",
        "google.com.eg",
        "google.com.sv",
        "google.com.fj",
        "google.fi",
        "google.fr",
        "google.ga",
        "google.gm",
        "google.de",
        "google.com.gh",
        "google.com.gi",
        "google.gr",
        "google.dj",
        "google.gl",
        "google.gp",
        "google.com.gt",
        "google.gg",
        "google.gy",
        "google.hu",
        "google.is",
        "google.co.in",
        "google.co.id",
        "google.iq",
        "google.it",
        "google.com.jm",
        "google.co.jp",
        "google.je",
        "google.jo",
        "google.ki",
        "google.com.kw",
        "google.kg",
        "google.la",
        "google.lv",
        "google.com.lb",
        "google.co.ls",
        "google.com.ly",
        "google.li",
        "google.lt",
        "google.lu",
        "google.ml",
        "google.com.mt",
        "google.mu",
        "google.com.mx",
        "google.fm",
        "google.md",
        "google.mn",
        "google.me",
        "google.ms",
        "google.mw",
        "google.co.ma",
        "google.co.mz",
        "google.com.mm",
        "google.com.na",
        "google.cd",
        "google.nr",
        "google.com.np",
        "google.nl",
        "google.co.nz",
        "google.ee",
        "google.com.ni",
        "google.ne",
        "google.com.ng",
        "google.nu",
        "google.com.nf",
        "google.no",
        "google.com.om",
        "google.com.pk",
        "google.pn",
        "google.tt",
        "google.co.zm",
        "google.ps",
        "google.com.pa",
        "google.com.pg",
        "google.com.py",
        "google.com.pe",
        "google.com.ph",
        "google.pl",
        "google.pt",
        "google.com.pr",
        "google.com.qa",
        "google.mv",
        "google.cg",
        "google.ro",
        "google.ru",
        "google.rw",
        "google.sh",
        "google.com.vc",
        "google.ws",
        "google.sm",
        "google.st",
        "google.com.sa",
        "google.com.tr",
        "google.sn",
        "google.rs",
        "google.sc",
        "google.com.sl",
        "google.com.tj",
        "google.com.sg",
        "google.sk",
        "google.si",
        "google.com.sb",
        "google.so",
        "google.co.za",
        "google.co.kr",
        "google.es",
        "google.lk",
        "google.se",
        "google.ch",
        "google.com.tw",
        "google.co.tz",
        "google.co.th",
        "google.tl",
        "google.tg",
        "google.tk",
        "google.tm",
        "google.co.ug",
        "google.com.ua",
        "google.ae",
        "google.co.uk",
        "google.com.uy",
        "google.co.uz",
        "google.vu",
        "google.co.ve",
        "google.com.vn",
        "google.co.zw",
        "google.ge",
        "google.co.vi",
        "google.tn",
        "google.com",
        "google.to",
        "google.mk",
        "google.ht",
        "google.ie",
        "google.kz",
        "be.yahoo.com",
        "fr.yahoo.com",
        "br.yahoo.com",
        "ca.yahoo.com",
        "de.yahoo.com",
        "es.yahoo.com",
        "fr.yahoo.com",
        "in.yahoo.com",
        "id.yahoo.com",
        "ie.yahoo.com",
        "it.yahoo.com",
        "nl.yahoo.com",
        "no.yahoo.com",
        "at.yahoo.com",
        "ph.yahoo.com",
        "pl.yahoo.com",
        "qc.yahoo.com",
        "ro.yahoo.com",
        "ch.yahoo.com",
        "sg.yahoo.com",
        "za.yahoo.com",
        "fi.yahoo.com",
        "se.yahoo.com",
        "tr.yahoo.com",
        "uk.yahoo.com",
        "vn.yahoo.com",
        "gr.yahoo.com",
        "ru.yahoo.com",
        "ua.yahoo.com",
        "il.yahoo.com",
        "uk.yahoo.com",
        "hk.yahoo.com",
        "tw.yahoo.com",
        "malaysia.yahoo.com",
        "espanol.yahoo.com"
    ]
}
```

{% endtab %}

{% tab title="401: Unauthorized Unauthenticated" %}

```json
{
    "status": "error",
    "msg": "Unauthenticated"
}
```

{% endtab %}
{% endtabs %}

## Example request:

{% tabs %}
{% tab title="BASH" %}

```bash
curl --location --request GET 'https://api.serphouse.com/domain/list' \
--header 'Authorization: Bearer <YOUR_API_KEY>'
```

{% endtab %}

{% tab title="RUBY" %}

```ruby
require "uri"
require "net/http"

url = URI("https://api.serphouse.com/domain/list")

https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = "Bearer <YOUR_API_KEY>"

response = https.request(request)
puts response.read_body

```

{% endtab %}

{% tab title="PYTHON" %}

```python
import requests

url = "https://api.serphouse.com/domain/list"

payload={}
headers = {
  'Authorization': 'Bearer <YOUR_API_KEY>'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

```

{% endtab %}

{% tab title="NODE.JS" %}

```javascript
var axios = require('axios');

var config = {
  method: 'get',
  url: 'https://api.serphouse.com/domain/list',
  headers: { 
    'Authorization': 'Bearer <YOUR_API_KEY>'
  }
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});

```

{% endtab %}

{% tab title="PHP" %}

```php
<?php
$serphouse = new SERPHouse\SERPHouseClient('YOUR_API_KEY');
$res = $serphouse->domains->list();
echo $res->getResponse();

```

{% endtab %}

{% tab title="JAVA" %}

```java
OkHttpClient client = new OkHttpClient().newBuilder().build();
Request request = new Request.Builder()
  .url("https://api.serphouse.com/domain/list")
  .get()
  .addHeader("Authorization", "Bearer <YOUR_API_KEY>")
  .build();
Response response = client.newCall(request).execute();
System.out.println(response.body().string());
```

{% endtab %}

{% tab title="JAVASCRIPT" %}

```javascript
var myHeaders = new Headers();
myHeaders.append("Authorization", "Bearer <YOUR_API_KEY>");

var requestOptions = {
  method: 'GET',
  headers: myHeaders,
  redirect: 'follow'
};

fetch("https://api.serphouse.com/domain/list", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
```

{% endtab %}

{% tab title="GO" %}

```go
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.serphouse.com/domain/list"
  method := "GET"

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, nil)

  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Authorization", "Bearer <YOUR_API_KEY>")

  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}o
```

{% endtab %}

{% tab title="C#/.NET" %}

```csharp
var client = new RestClient("https://api.serphouse.com/domain/list");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <YOUR_API_KEY>");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.serphouse.com/extra-apis/domains-list.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
