Search API Example Code
Download Links to Example Code for our Search API endpoint are listed below
-
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.