这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@mux1ng
Copy link

@mux1ng mux1ng commented Aug 20, 2023

The VirusTotal API has been updated to version 3, and now it allows retrieving 1000 subdomains instead of the previous limit of 100.
The new API documentation can be found at this location: https://developers.virustotal.com/reference/domains-relationships

Closes #949.

@ehsandeep ehsandeep changed the base branch from main to dev August 20, 2023 21:08
resp, err := session.SimpleGet(ctx, fmt.Sprintf("https://www.virustotal.com/vtapi/v2/domain/report?apikey=%s&domain=%s", randomApiKey, domain))
headers := map[string]string{"x-apikey": randomApiKey}

resp, err := session.Get(ctx, fmt.Sprintf("https://www.virustotal.com/api/v3/domains/%s/subdomains?limit=1000", domain), "", headers)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's important to mention that the API has pagination support, and it would be advantageous to incorporate it in this implementation. Let me know if you need any help!

@dogancanbakir dogancanbakir linked an issue Aug 21, 2023 that may be closed by this pull request
@dogancanbakir
Copy link
Member

Closing this, raised new PR #962

@dogancanbakir dogancanbakir added the Status: Abandoned This issue is no longer important to the requestor and no one else has shown an interest in it. label Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status: Abandoned This issue is no longer important to the requestor and no one else has shown an interest in it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VirusTotal API v2 to v3 migration

2 participants