pricing background

Go API Integration

api

Subdomain Lookup

package main

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

func main() {
	var payload *strings.Reader = nil
	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)
	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := ioutil.ReadAll(resp.Body)
	fmt.Println(string(body))
}