Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/viiftw/pulsedive-go

A Golang library for Pulsedive API
https://github.com/viiftw/pulsedive-go

golang golang-library pulsedive pulsedive-client pulsedive-library threat-intelligence

Last synced: about 5 hours ago
JSON representation

A Golang library for Pulsedive API

Awesome Lists containing this project

README

        

# pulsedive-go
[![License](https://img.shields.io/badge/license-MIT-_red.svg)](https://opensource.org/licenses/MIT)
[![Go Report Card](https://goreportcard.com/badge/github.com/viiftw/pulsedive-go)](https://goreportcard.com/report/github.com/viiftw/pulsedive-go)
A Golang library for [Pulsedive](https://pulsedive.com/) API
This library is not production-ready yet, and breaking changes can still occur.

## Usage
### Indicator By Value
```go
package main
import (
"log"
"github.com/viiftw/pulsedive-go"
)

func main() {
// Load your Pulsedive API key : string, Pretty: true
pulsedive.Pulsedive(, true)

// Indicators
body, err := pulsedive.IndicatorByValue("pulsedive.com")
if err != nil {
log.Println(err)
}
log.Println(string(body))
// => {"iid"=>53929,"type"=>"domain","indicator"=>"pulsedive.com","risk"=>"medium", ...
}
```

## Support API
```go
// Indicators
pulsedive.IndicatorByID(id int) ([]byte, error)
pulsedive.IndicatorByValue(indicatorValue string) ([]byte, error)
pulsedive.IndicatorLinks(id int) ([]byte, error)
pulsedive.IndicatorProperties(id int) ([]byte, error)
// Threats
pulsedive.ThreatByID(id int) ([]byte, error)
pulsedive.ThreatByName(name string) ([]byte, error)
pulsedive.ThreatSummary(id int) ([]byte, error)
pulsedive.ThreatLink(id int) ([]byte, error)
// Feeds
pulsedive.FeedID(id int) ([]byte, error)
pulsedive.FeedName(name, organization string) ([]byte, error)
pulsedive.FeedLink(id int) ([]byte, error)
// Analyze
pulsedive.Analyze(ioc string) ([]byte, error)
pulsedive.AnalyzeResult(qid int) ([]byte, error)
// Search
pulsedive.SearchIndicators(value string, attributes []string, threats []string, feeds []string) ([]byte, error)
pulsedive.SearchToCSV(value string, attributes []string, threats []string, feeds []string) ([]byte, error)
pulsedive.SearchThreat(value string, attributes []string, threats []string, feeds []string) ([]byte, error)
pulsedive.SearchFeed(value string) ([]byte, error)
```

## License

The pulsedive-go is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).