API Example Code
Links to API Example Code
Entity
-
Entity (Python 3): Make a request to the Email Address, Email Domain, or IP Address Entity endpoint(s).
Search
-
Simple Search (Python 3): Makes a single search request to the Search endpoint.
-
Simple Search (Bash): Makes a single search request to the Search endpoint.
-
Monitor (Python 3): Run searches that collect results from a specified time range until now. Can be used to set up monitor-like functionality.
-
Pagination (Python 3): Paginates through a query, saves each page to a .json file. After getting 5000 results, uses the last crawlDate as the ‘to’ parameter for the next round of 5000, and so on.
-
Pagination with emailDomain (Python 3): Similar to above, but takes in an emailDomain as a command line argument and searches for that email domain and subdomains.
DarkSonar
-
DarkSonar (Python 3): Submits and retrieves a DarkSonar relative risk rating.
Score
-
Score (Python 3): Submits and retrieves a single Score request.
Document
-
Simple Document (Python 3): Retrieves a single document from the Documents endpoint.
-
Simple Document (Bash): Retrieves a single document from the Documents endpoint.
-
Get Usage (Python 3): Gets and prints usage data from the Usage endpoint.
-
Get Usage (Bash): Gets and prints usage data from the Usage endpoint.
Actor
- Actor API (Python 3): Makes a request to the DarkOwl Actor API.
Test
-
Test Request (Python 3): Checks the DarkOwl “Test” API endpoint. Responds with {“answer”: “hoot”} if a successful connection is made.
-
Test Request (Bash): Checks the DarkOwl “Test” API endpoint. Responds with {“answer”: “hoot”} if a successful connection is made.
Postman