- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
09-11-2023 11:33 AM
Hello,
I have been working on automating our internal URL analysis process, and I've been using the following documentation to get the verdict of a URL via the Wildfire API:
Get a WildFire Verdict (WildFire API) (paloaltonetworks.com)
When using Example Request 2 in the above link, I replace the placeholder API value (<API KEY>) with my own and keep the rest of the cURL request the same. However, when doing this I receive the following HTTP response:
<error>
<error-message>'Missing required field apikey'</error-message>
</error>
Attached is a screenshot of my cURL request (with the redacted API keys). Thanks in advance!
09-26-2023 09:05 AM
Hi @chughey, getting a verdict uses /get/verdict/, but the screenshot shows /submit/link
Please try the correct API endpoint first, and see if that helps
Example:
curl -F 'apikey=1234567890' -F 'url=https://www.google.com' 'https://wildfire.paloaltonetworks.com/publicapi/get/verdict'
<?xml version="1.0" encoding="UTF-8"?>
<wildfire>
<get-verdict-info>
<url>https://www.google.com</url>
<verdict>0</verdict>
<analysis_time>2023-09-25T13:15:05Z</analysis_time>
<valid>Yes</valid>
</get-verdict-info>
</wildfire>
09-26-2023 09:05 AM
Hi @chughey, getting a verdict uses /get/verdict/, but the screenshot shows /submit/link
Please try the correct API endpoint first, and see if that helps
Example:
curl -F 'apikey=1234567890' -F 'url=https://www.google.com' 'https://wildfire.paloaltonetworks.com/publicapi/get/verdict'
<?xml version="1.0" encoding="UTF-8"?>
<wildfire>
<get-verdict-info>
<url>https://www.google.com</url>
<verdict>0</verdict>
<analysis_time>2023-09-25T13:15:05Z</analysis_time>
<valid>Yes</valid>
</get-verdict-info>
</wildfire>
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!