{"id":19322624,"url":"https://github.com/picatz/hunter","last_synced_at":"2025-04-22T19:31:38.649Z","repository":{"id":40993810,"uuid":"168253248","full_name":"picatz/hunter","owner":"picatz","description":"🐺  Command-line application and golang client library for hunter.io","archived":false,"fork":false,"pushed_at":"2024-08-25T20:35:06.000Z","size":37,"stargazers_count":37,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-25T22:19:42.332Z","etag":null,"topics":["command-line","email-finder","email-verification","go","golang","hunterio","reconnaissance"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/picatz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-30T00:43:15.000Z","updated_at":"2024-08-25T20:35:07.000Z","dependencies_parsed_at":"2024-06-19T02:07:06.524Z","dependency_job_id":null,"html_url":"https://github.com/picatz/hunter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/picatz%2Fhunter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/picatz%2Fhunter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/picatz%2Fhunter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/picatz%2Fhunter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/picatz","download_url":"https://codeload.github.com/picatz/hunter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223903660,"owners_count":17222550,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line","email-finder","email-verification","go","golang","hunterio","reconnaissance"],"created_at":"2024-11-10T01:41:52.685Z","updated_at":"2024-11-10T01:41:52.770Z","avatar_url":"https://github.com/picatz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `hunter`\n\nCommand-line application and golang client library for [hunter.io](https://hunter.io).\n\n## Download\n\n```console\n$ go get github.com/picatz/hunter/...\n```\n\n## Update\n\n```console\n$ go get -u github.com/picatz/hunter/...\n```\n\n## CLI Usage\n\nThe command-line application has three major commands `search`, `find`, and `verify`. All three of these commands output JSON. This makes parsing the infromation easy, especially using command-line tools like [`jq`](https://github.com/stedolan/jq).\n\n```console\n$ hunter\nUsage:\n  hunter [command]\n\nAvailable Commands:\n  account     Get information regarding your hunter.io account\n  find        Generates or retrieves the most likely email address from a domain name, a first name and a last name\n  help        Help about any command\n  search      Search all the email addresses corresponding to one website or company\n  verify      Allows you to verify the deliverability of an email address\n\nFlags:\n  -h, --help   help for hunter\n\nUse \"hunter [command] --help\" for more information about a command.\n```\n\n```console\n$ hunter verify --email stevejobs@apple.com | jq -r .data.score\n30\n```\n\n```console\n$ hunter find --company google --full-name \"Kelsey Hightower\" | jq -r .data.email\nkhightower@google.com\n```\n\n```console\n$ hunter search --domain github.com --department it | jq -r '.data.emails[] | \"\\(.value) \\(.position)\"'\njbarnette@github.com Developer\nbkeepers@github.com Developer\nben.balter@github.com Developer Product Manager\nkyle.daigle@github.com Developer\nvicent@github.com Principal Engineer Systems Engineering Manager\nmatthew@github.com Software Developer\nkevin@github.com Developer\ndon@github.com Developer\njohn@github.com Developer\nscott@github.com Developer\n$ hunter search --domain github.com --department it --offset 10 | jq -r '.data.emails[] | \"\\(.value) \\(.position)\"'\npatchwork@github.com Developer\nchris@github.com Developer\ntom@github.com Developer\noctocat@github.com Developer\ndahlbyk@github.com \nisaacs@github.com Developer\nalis@github.com Developer\nmichaeldrogalis@github.com Developer\nx-oauth-basic@github.com Developer\njonjagger@github.com \n```\n\n### `search`\n\n```console\n$ hunter search --help\n...\n$ hunter search --domain stripe.com\n...\n$ hunter search --company stripe\n...\n```\n\n#### Output using `search`\n\n```json\n{\n  \"data\": {\n    \"domain\": \"stripe.com\",\n    \"disposable\": false,\n    \"webmail\": false,\n    \"pattern\": \"{first}\",\n    \"organization\": \"Stripe\",\n    \"emails\": [\n      ...\n    ]\n  },\n  \"meta\": {\n    ...\n  }\n}\n```\n\n### `find`\n\n```console\n$ hunter find --help\n...\n$ hunter find --domain asana.com --full-name \"Dustin Moskovitz\"\n...\n$ hunter find --company Asana --full-name \"Dustin Moskovitz\"\n...\n$ hunter find --company Asana --first-name Dustin --last-name Moskovitz\n...\n```\n\n#### Output using `find`\n\n```json\n{\n  \"data\": {\n    \"first_name\": \"Dustin\",\n    \"last_name\": \"Moskovitz\",\n    \"email\": \"dustin@asana.com\",\n    \"score\": 96,\n    \"domain\": \"asana.com\",\n    \"position\": \"Cofounder\",\n    \"twitter\": \"\",\n    \"linkedin_url\": \"\",\n    \"phone_number\": \"\",\n    \"company\": \"Asana\",\n    \"sources\": [\n      ...\n    ]\n  },\n  \"meta\": {\n    ...\n  }\n}\n```\n\n### `verify`\n\n```console\n$ hunter verify --help\n...\n$ hunter verify --email stevejobs@apple.com\n...\n```\n\n#### Output using `verify`\n\n```json\n{\n  \"data\": {\n    \"result\": \"undeliverable\",\n    \"score\": 30,\n    \"email\": \"stevejobs@apple.com\",\n    \"regexp\": true,\n    \"gibberish\": false,\n    \"disposable\": false,\n    \"webmail\": false,\n    \"mx_records\": true,\n    \"smtp_server\": true,\n    \"smtp_check\": false,\n    \"accept_all\": false,\n    \"block\": false,\n    \"sources\": [\n      ...\n    ]\n  },\n  \"meta\": {\n    ...\n  }\n}\n```\n\n## Golang Client Usage\n\nWe can use the `VerifyEmail` method on a `*hunter.Client` to verify a given email.\n\n```golang\npackage main\n\nimport (\n    \"fmt\"\n    \"github.com/picatz/hunter\"\n)\n\nfunc main() {\n    // create a new client using the HUNTER_API_KEY environment variable\n    // and the default net/http client\n    client := hunter.New(hunter.UseDefaultEnvVariable, hunter.UseDefaultHTTPClient)\n    // verify email\n    result, err := client.VerifyEmail(hunter.Params{\n        \"email\": \"stevejobs@apple.com\",\n    })\n    // handle error\n    if err != nil {\n        panic(err)\n    }\n    // do something with the result data\n    fmt.Println(result.Data.Score)\n}\n```\n\nWe can use the `FindEmail` method on a `*hunter.Client` to generate or retrieve the most likely email address from a domain name, a first name and a last name (or a full name).\n\n```golang\npackage main\n\nimport (\n    \"fmt\"\n    \"github.com/picatz/hunter\"\n)\n\nfunc main() {\n    // create a new client using the HUNTER_API_KEY environment variable\n    // and the default net/http client\n    client := hunter.New(hunter.UseDefaultEnvVariable, hunter.UseDefaultHTTPClient)\n    // find email\n    results, err := client.FindEmail(hunter.Params{\n        \"domain\":     \"asana.com\",\n        \"first_name\": \"Dustin\",\n        \"last_name\":  \"Moskovitz\",\n    })\n    // handle error\n    if err != nil {\n        panic(err)\n    }\n    // do something with the result data\n    fmt.Println(result.Data.Score)\n}\n```\n\nWe can use the `DomainSearch` method on a `*hunter.Client`, where you give one domain name (or company name) and it returns all the email addresses found by [hunter.io](https://hunter.io) on the internet matching it.\n\n```golang\npackage main\n\nimport (\n    \"fmt\"\n    \"github.com/picatz/hunter\"\n)\n\nfunc main() {\n    // create a new client using the HUNTER_API_KEY environment variable\n    // and the default net/http client\n    client := hunter.New(hunter.UseDefaultEnvVariable, hunter.UseDefaultHTTPClient)\n    // domain search\n    results, err := client.DomainSearch(hunter.Params{\"domain\": \"stripe.com\"})\n    // handle error\n    if err != nil {\n        panic(err)\n    }\n    // do something with the result data\n    fmt.Println(result.Data)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpicatz%2Fhunter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpicatz%2Fhunter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpicatz%2Fhunter/lists"}