Logo
Logo

PRODUCTS

TOOLS

pricing background

GoAPI Integration

api

Subdomain Lookup

1package main
2
3import (
4	"fmt"
5	"net/http"
6	"strings"
7	"io/ioutil"
8)
9
10func main() {
11	var payload *strings.Reader = nil
12	req, _ := http.NewRequest("GET", "https://api.whoisfreaks.com/v1.0/subdomains?apiKey=API_KEY&domain=google.com&after=2010-02-28&before=2025-05-20&status=active&page=3", payload)
13	client := &http.Client{}
14	resp, _ := client.Do(req)
15	defer resp.Body.Close()
16	body, _ := ioutil.ReadAll(resp.Body)
17	fmt.Println(string(body))
18}