Python client for the Lumen database API
from lumen import Lumen
# Initialise API client with your API key
lumen = Lumen(api_key='YOUR_API_KEY')
# Construct a dictionary of search terms; e.g.:
search_dict = {'recipient_name': 'youtube', 'per_page': 100, 'sort_by': 'date_received desc'}
# Search and return JSON results as a dictionary
results = lumen.search(search_dict)
# Get a particular notice by ID:
notice = '14457992' # '12853850'
result = lumen.get(notice)