Skip to main content

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 (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 email Domain (Python 3): Similar to above, but takes in an email Domain as a command line argument and searches for that email domain and subdomains.

  • Forum Thread Downloader (Python 3): Uses the Search endpoint to download and save an entire forum thread.

Markets

  • Markets API (Python 3): Makes a call to each of the Markets Search, Markets Summary, and Markets Details endpoints.

Leaks

DarkSonar

Score

Actor

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

Leave a Reply