GET A BLACKLIST
http://api.kopeechka.store/blacklist-get-service?token=$TOKEN&site=$SITE&type=$TYPE&api=2.0
$SITE - it is not required and is indicated if you need to get information on a specific site, and not all at once.
$TOKEN - Your API key from kopeechka.store
$TYPE - Specify in what form to give the answer (JSON (by default) / TEXT )
✅ Answer:
JSON
{"status":"OK","data":[{"site":$SITE,"domain":"$DOMAIN","expire":"$EXPIRE"}]}
TEXT (each domain with a new line, if the list is empty, it will write EMPTY)
$SITE:$DOMAIN:$EXPIRE
Where:
$SITE - the site to which this blacklist applies
$DOMAIN - the domain that is on your blacklist
$EXPIRE -the time in unixtime when the domain will be removed from the blacklist.
If the domain does not need to be deleted (it will be in a black list forever)- $EXPIRE = 0.
❌ Possible errors:
Invalid token
JSON
{"status":"ERROR","value":"BAD_TOKEN"}
TEXT
ERROR|BAD_TOKEN
Invalid site
JSON
{"status":"ERROR","value":"BAD_SITE"}
TEXT
ERROR|BAD_SITE
Have you figured it out? Rather try :)