https://github.com/marco-lancini/robtex-go
Go client for the Robtex API
https://github.com/marco-lancini/robtex-go
api docker golang golang-library osint osint-resources robtex whois
Last synced: about 1 year ago
JSON representation
Go client for the Robtex API
- Host: GitHub
- URL: https://github.com/marco-lancini/robtex-go
- Owner: marco-lancini
- License: apache-2.0
- Created: 2018-06-08T14:19:08.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-01-21T05:59:46.000Z (over 6 years ago)
- Last Synced: 2025-03-24T18:52:25.680Z (about 1 year ago)
- Topics: api, docker, golang, golang-library, osint, osint-resources, robtex, whois
- Language: Go
- Homepage: https://www.marcolancini.it/2018/blog-robtex/
- Size: 9.77 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go client for the Robtex API
This library provides a little wrapper over the Robtex API (https://www.robtex.com/api/).
# Installation
#### Direct Installation
```go get -u github.com/marco-lancini/robtex-go```
#### Running in a Docker Container
Git clone the repo, then run in a container with the following commands:
* Clone the repo: `git clone https://github.com/marco-lancini/robtex-go`
* Build the docker container: `docker build -t robtex-go .`
* Run the container: `docker run --rm -it robtex-go`
# Usage
This library can be imported quickly, as shown below:
```go
package main
import (
"fmt"
"github.com/marco-lancini/robtex-go/robtex"
)
func main() {
client := robtex.NewClient("https://freeapi.robtex.com", "")
ipInfo := client.IpQuery("8.8.8.8")
fmt.Println(ipInfo)
asn := client.AsQuery(1234)
fmt.Println(asn)
passiveDns := client.PassiveDNS("www.google.com")
fmt.Println(passiveDns)
}
```