Skip to content
GitHub

Getting Started

security.dev provides easy-to-use security APIs for developers. This guide will help you get started with integrating our services into your application.

To use security.dev APIs, you’ll need an API key:

  1. Create an account on our platform
  2. Generate a new API key in the dashboard

Keep your API key secure and never expose it in client-side code.

Currently, we provide a Python SDK to interact with our APIs:

pip install securitydev

Here’s how to set up the security.dev client:

import os
from securitydev import SecurityClient

# Initialize the client with your API key
# In this case we have an environment variable setting the key
client = SecurityClient(key=os.getenv("SECURITYDEV_KEY"))

# You're now ready to make API calls!

You can also use the Async version.

import os
from securitydev import AsyncSecurityClient

client = AsyncSecurityClient(key=os.getenv("SECURITYDEV_KEY"))

# You're now ready to make API calls!

If you prefer you can query our API directly, instead of using the SDK. This can be done in any language.