Using the InsecureWeb API with Python

Created by Juan Manuel Libera Frómeta, Modified on Mon, 07 Aug 2023 at 11:30 AM by Juan Manuel Libera Frómeta


The Insecureeb API allows our customers to programmatically access and manage information related to their organization's security. To facilitate the use of our API, we have created this comprehensive guide that provides practical examples of how to make queries and obtain relevant data.

Prerequisites: Before getting started, make sure you have the following:

  • An active Insecureweb account with API access.
  • Your API key (api-key) provided by Insecureweb to authenticate your requests.

Making API Queries with Python: To make API queries using Python, you will need the requests library. If you don't have it installed yet, you can do so via pip:

pip install requests

Once you have the requests library, you can use the following example code to make a query to our API: 

import requests

url = ''
headers = {
    'api-key': 'YOUR_API_KEY_HERE'

response = requests.get(url, headers=headers)
Be sure to replace 'YOUR_API_KEY_HERE' with your API key provided by Insecureweb. Also, adjust the 'ENDPOINT_TO_QUERY' with the API endpoint you want to query.

This GET request will return the API response in JSON format, which you can use to process and analyze the data you need.


Using this guide and the provided example code, you will be able to interact with our API effectively and obtain relevant information to enhance your organization's security.

If you have any questions or need further assistance, feel free to contact our support team. We are committed to providing all the help you need to ensure a successful experience with our API.

Thank you for choosing InsecureWeb to protect your organization!

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article