I am unable to get the API to work to generate a custom list. I always get HTTP 400. Here is an example:
list_config_api = {
"startDate": "2024-12-10",
"endDate": "2025-01-09",
"combinationMethod": "dowdall",
"listPrefix": "full",
"filterPLD": "off",
"filterSafeBrowsing": "on"
}
response = requests.put('https://tranco-list.eu/api/lists/create', auth=(username, api_key), json=list_config_api)
print(response.status_code)