Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update virustotal #947

Closed
wants to merge 1 commit into from
Closed

Update virustotal #947

wants to merge 1 commit into from

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