{"id":31837704,"url":"https://github.com/terribledev/shodan.net","last_synced_at":"2025-10-12T02:24:22.353Z","repository":{"id":74831374,"uuid":"59340221","full_name":"TerribleDev/Shodan.Net","owner":"TerribleDev","description":"c# client for shodan.io api","archived":false,"fork":false,"pushed_at":"2024-08-05T13:16:15.000Z","size":70,"stargazers_count":58,"open_issues_count":3,"forks_count":25,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-09-29T23:30:45.523Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://tparnell8.github.io/Shodan.Net","language":"C#","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/TerribleDev.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2016-05-21T03:42:57.000Z","updated_at":"2025-07-29T15:07:02.000Z","dependencies_parsed_at":"2024-11-17T02:16:11.540Z","dependency_job_id":null,"html_url":"https://github.com/TerribleDev/Shodan.Net","commit_stats":null,"previous_names":["tparnell8/shodan.net"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/TerribleDev/Shodan.Net","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TerribleDev%2FShodan.Net","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TerribleDev%2FShodan.Net/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TerribleDev%2FShodan.Net/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TerribleDev%2FShodan.Net/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TerribleDev","download_url":"https://codeload.github.com/TerribleDev/Shodan.Net/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TerribleDev%2FShodan.Net/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279009935,"owners_count":26084668,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-10-12T02:24:21.352Z","updated_at":"2025-10-12T02:24:22.349Z","avatar_url":"https://github.com/TerribleDev.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build status](https://ci.appveyor.com/api/projects/status/h0x5jv0s8p4ig078/branch/master?svg=true)](https://ci.appveyor.com/project/tparnell8/shodan-net/branch/master)\n\nVisit the official Shodan API documentation at:\n\n[https://developer.shodan.io](https://developer.shodan.io)\n\nThis is still in active development, error handling might not well handle well. Best bet when working with any libraries you didn't write..harden your calls!\n\n## APi Docs\n\nYou can find doxygen docs [here](http://shodan-csharp-docs.azurewebsites.net/) \n\n## Installation\n\n`install-package Shodan.Net`\n\n## Getting started\n\nYou need to have an Api key. Get your [api key here](http://www.shodanhq.com/api_doc).\n\n\nCreate a shodan client. Note that ShodanClient inerhits from IDisposable, so you should wrap it in a using, or make sure it will be disposed. Shodan client is thread safe, so you should be able to keep 1 object around for many requests.\n\n`var client = new Shodan.Net.ShodanClient(\"myapiKey\");`\n\nNow just query away. You should be able to find all the actions [in the docs](http://shodan-csharp-docs.azurewebsites.net/class_shodan_1_1_net_1_1_shodan_client.html) or just through the docs in intellisense.\n\n```csharp\n\nawait client.GetPortsAsync();\nawait client.GetHostAsync(\"172.1.1.0\");\nawait client.GetMyIpAsync();\n\n\n```\n\n\n## Searching\n\nSearching shodan requires you to build up queries, and facets to make it easier we have used a generator pattern to produce queries.\n\n```csharp\n\n           await client.SearchHosts(\n                query: a =\u003e a.Withcity(\"boston\")\n                      .Withcountry(\"usa\")\n                      .Before(DateTime.Now.AddDays(-5)),\n                facet: b =\u003e b.WithAsn()\n\n                );\n\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterribledev%2Fshodan.net","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterribledev%2Fshodan.net","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterribledev%2Fshodan.net/lists"}