tranco-list icon indicating copy to clipboard operation
tranco-list copied to clipboard

API doesn't work to generate a custom list

Open JayFields opened this issue 1 year ago • 0 comments

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)
400

I have tried with filterSafeBrowsing on and off.

JayFields avatar Jan 10 '25 21:01 JayFields