{"id":34091229,"url":"https://github.com/spyse-com/spyse-python","last_synced_at":"2026-04-10T10:03:13.393Z","repository":{"id":40599266,"uuid":"390297704","full_name":"spyse-com/spyse-python","owner":"spyse-com","description":"The official wrapper for spyse.com API, written in Python, aimed to help developers build their integrations with Spyse.","archived":false,"fork":false,"pushed_at":"2022-06-09T22:47:35.000Z","size":121,"stargazers_count":27,"open_issues_count":3,"forks_count":12,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-12-16T17:59:55.500Z","etag":null,"topics":["cybersecurity","osint","reconnaissance","spyse"],"latest_commit_sha":null,"homepage":"https://spyse.com","language":"Python","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/spyse-com.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-28T09:45:33.000Z","updated_at":"2025-12-09T16:23:05.000Z","dependencies_parsed_at":"2022-09-19T10:02:03.633Z","dependency_job_id":null,"html_url":"https://github.com/spyse-com/spyse-python","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/spyse-com/spyse-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spyse-com%2Fspyse-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spyse-com%2Fspyse-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spyse-com%2Fspyse-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spyse-com%2Fspyse-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spyse-com","download_url":"https://codeload.github.com/spyse-com/spyse-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spyse-com%2Fspyse-python/sbom","scorecard":{"id":842951,"data":{"date":"2025-08-11","repo":{"name":"github.com/spyse-com/spyse-python","commit":"f286514ac052ebe6fa98f877d251d8f3cd4db1c4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":1,"reason":"Found 1/10 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/python-publish.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/spyse-com/spyse-python/python-publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/spyse-com/spyse-python/python-publish.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:28","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:29","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 25 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T20:52:03.068Z","repository_id":40599266,"created_at":"2025-08-23T20:52:03.068Z","updated_at":"2025-08-23T20:52:03.068Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31637748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cybersecurity","osint","reconnaissance","spyse"],"created_at":"2025-12-14T14:35:30.085Z","updated_at":"2026-04-10T10:03:13.388Z","avatar_url":"https://github.com/spyse-com.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python wrapper for Spyse API\n\nThe official wrapper for [spyse.com](https://spyse.com/) API, written in Python, aimed to help developers build their\nintegrations with Spyse.\n\n[Spyse](https://spyse.com/) is the most complete Internet assets search engine for every cybersecurity\nprofessional.\n\nExamples of data Spyse delivers:\n\n* List of 300+ most popular open ports found on 3.5 Billion publicly accessible IPv4 hosts.\n* Technologies used on 300+ most popular open ports and IP addresses and domains using a particular technology.\n* Security score for each IP host and website, calculated based on the found vulnerabilities.\n* List of websites hosted on each IPv4 host.\n* DNS and WHOIS records of the domain names.\n* SSL certificates provided by the website hosts.\n* Structured content of the website homepages.\n* Abuse reports associated with IPv4 hosts.\n* Organizations and industries associated with the domain names.\n* Email addresses found during the Internet scanning, associated with a domain name.\n\nMore information about the data Spyse collects is available on the [Our data](https://spyse.com/our-data) page.\n\nSpyse provides an API accessible via **token-based authentication**.\nAPI tokens are **available only for registered users** on their [account page](https://spyse.com/user).\n\nFor more information about the API, please check the [API Reference](https://spyse-dev.readme.io/reference/quick-start).\n\n## Installation\n\n```bash\npip3 install spyse-python\n```\n\n## Updating\n\n```bash\npip3 install --no-cache-dir spyse-python\n```\n\n\n## Quick start\n```python\nfrom spyse import Client\n\nclient = Client(\"your-api-token-here\")\n\nd = client.get_domain_details('tesla.com')\n\nprint(f\"Domain details:\")\nprint(f\"Website title: {d.http_extract.title}\")\nprint(f\"Alexa rank: {d.alexa.rank}\")\nprint(f\"Certificate subject org: {d.cert_summary.subject.organization}\")\nprint(f\"Certificate issuer org: {d.cert_summary.issuer.organization}\")\nprint(f\"Updated at: {d.updated_at}\")\nprint(f\"DNS Records: {d.dns_records}\")\nprint(f\"Technologies: {d.technologies}\")\nprint(f\"Vulnerabilities: {d.cve_list}\")\nprint(f\"Trackers: {d.trackers}\")\n# ...\n\n```\n\n## Examples\n\n- [Check your API quotas](https://github.com/spyse-com/spyse-python/tree/main/examples/get_account_quotas.py)\n- [Subdomains lookup ('Search', 'Scroll', 'Count' methods demo)](https://github.com/spyse-com/spyse-python/tree/main/examples/subdomains_lookup.py)\n- [Domain lookup](https://github.com/spyse-com/spyse-python/tree/main/examples/domain_lookup.py)\n\n\nNote: You need to export access_token to run any example:\n```bash\nexport SPYSE_API_TOKEN=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\n```\n\n## How to search\nUsing Spyse you can search for any Internet assets by their digital fingerprints. To do that, you need to form a specific search query and pass it to 'search', 'scroll', or 'count' methods.\n\nEach search query can contain multiple search params. Each search param consists of name, operator, and value. \n\nCheck API docs to find out all existing combinations. Here is an example for domains search: https://spyse-dev.readme.io/reference/domains#domain_search\nYou may also be interested in our GUI for building and testing queries before jumping to code: https://spyse.com/advanced-search/domain\n\nExample search request to find subdomains of att.com:\n```python\nfrom spyse import Client, SearchQuery, QueryParam, DomainSearchParams, Operators\n\n# Prepare query\nq = SearchQuery()\ndomain = \"att.com\"\n\n# Add param to search for att.com subdomains\nq.append_param(QueryParam(DomainSearchParams.name, Operators.ends_with, '.' + domain))\n\n# Add param to search only for alive subdomains\nq.append_param(QueryParam(DomainSearchParams.http_extract_status_code, Operators.equals, \"200\"))\n\n# Add param to remove subdomains seen as PTR records\nq.append_param(QueryParam(DomainSearchParams.is_ptr, Operators.equals, \"False\"))\n\n# Next, you can use the query to run search, count or scroll methods\nc = Client(\"your-api-token-here\")\ntotal_count = c.count_domains(q)\nsearch_results = c.search_domains(q).results\nscroll_results = c.scroll_domains(q).results\n```\n\nExample search request to find any alive IPv4 hosts in US, with open port 22 and running nginx:\n```python\nfrom spyse import Client, SearchQuery, QueryParam, IPSearchParams, Operators\n\n# Prepare query\nq = SearchQuery()\n\n# Add param to search for IPv4 hosts located in US\nq.append_param(QueryParam(IPSearchParams.geo_country_iso_code, Operators.equals, 'US'))\n\n# Add param to search only for hosts with open 22 port\nq.append_param(QueryParam(IPSearchParams.open_port, Operators.equals, \"22\"))\n\n# Add param to search only for hosts with nginx\nq.append_param(QueryParam(IPSearchParams.port_technology_name, Operators.contains, \"nginx\"))\n\n# Next, you can use the query to run search, count or scroll methods\nc = Client(\"your-api-token-here\")\ntotal_count = c.count_ip(q)\nsearch_results = c.search_ip(q).results\nscroll_results = c.scroll_ip(q).results\n```\n\n## Scroll vs Search\nWhile a 'search' request allows to paginate over the first 10'000 results, the 'scroll search' can be used for deep pagination over a larger number of results (or even all results) in much the same way as you would use a cursor on a traditional database. \n\nIn order to use scrolling, the initial search response will return a 'search_id' data field which should be specified in the subsequent requests in order to iterate over the rest of results.\n\n### Limitations\nThe scroll is available only for customers with 'Pro' subscription.\n\nExample code to check if the scroll is available for your account\n```python\nfrom spyse import Client\nc = Client(\"your-api-token-here\")\n\nif c.get_quotas().is_scroll_search_enabled:\n    print(\"Scroll is available\")\nelse:\n    print(\"Scroll is NOT available\")\n```\n\n\n## Development\n\n### Installation\n```bash\ngit clone https://github.com/spyse-com/spyse-python\npip install -e .\n```\n\n\nRun tests:\n```bash\ncd tests\npython client_test.py\n```\n\n## License\n\nDistributed under the MIT License. See [LICENSE](https://github.com/spyse-com/spyse-python/tree/main/LICENSE.md) for more information.\n\n## Troubleshooting and contacts\n\nFor any proposals and questions, please write at:\n\n- Email: [contact@spyse.com](mailto:contact@spyse.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspyse-com%2Fspyse-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspyse-com%2Fspyse-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspyse-com%2Fspyse-python/lists"}