https://github.com/ninoseki/greynoise
GreyNoise API wrapper for Ruby
https://github.com/ninoseki/greynoise
Last synced: 5 months ago
JSON representation
GreyNoise API wrapper for Ruby
- Host: GitHub
- URL: https://github.com/ninoseki/greynoise
- Owner: ninoseki
- License: mit
- Archived: true
- Created: 2020-01-27T02:08:56.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-17T18:45:28.000Z (over 1 year ago)
- Last Synced: 2024-04-26T05:07:19.559Z (12 months ago)
- Language: Ruby
- Size: 53.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ip-search-engines - GreyNoise
README
# greynoise
[](https://badge.fury.io/rb/greynoise)
[](https://travis-ci.com/ninoseki/greynoise)
[](https://coveralls.io/github/ninoseki/greynoise?branch=master)
[](https://www.codefactor.io/repository/github/ninoseki/greynoise)GreyNoise API wrapper for Ruby.
## Installation
```bash
gem install greynoise
```## Usage
```ruby
require "greynoise"# when given nothing, it tries to load your API key via ENV["GREYNOISE_API_KEY"] and `~/.config/greynoise/config`
api = GreyNoise::API.new
# or you can set it manually
api = GreyNoise::API.new(key: YOUR_API_KEY)api.experimental.gnql(query)
api.experimental.gnql_stats(query)api.noise.context(ip)
api.noise.quick(ip)
api.noise.multi_quick("1.1.1.1", "8.8.8.8")api.meta.metadata
```## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).