# Make some advance API

**URL:** <https://discourse.pi-hole.net/t/make-some-advance-api/26786>\
**Category:** Implemented\
**Tags:** whitelisting, blacklisting\
**Created:** [January 10, 2020, 1:21pm UTC](https://discourse.pi-hole.net/t/make-some-advance-api/26786 "2020-01-10T13:21:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![DL6ER](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dl6er/32/281_2.png) [@DL6ER](https://discourse.pi-hole.net/u/DL6ER)\
**Post date:** [January 10, 2020, 7:32pm UTC](https://discourse.pi-hole.net/t/make-some-advance-api/26786/2 "2020-01-10T19:32:54Z")

</div>

We're currently working on a HTTP based API for a future Pi-hole v6.0, see

[https://github.com/pi-hole/FTL/pull/659](https://github.com/pi-hole/FTL/pull/659)

This API already includes the features you're requesting:

> [@maher.aldous](#):
>
> 1- Adding and Removing Domain from White- and Blacklist with an API request.  
> 2- Display the current White- and Blacklist with API.

1 is available with `POST` and `DELETE` to the API, 2 is implemented with `GET` requests to the same endpoints.

The paths will be

```plaintext
http://pi.hole/admin/api/dns/whitelist/exact
http://pi.hole/admin/api/dns/whitelist/regex
http://pi.hole/admin/api/dns/blacklist/exact
http://pi.hole/admin/api/dns/blacklist/regex

```

---

_[View the full topic](https://discourse.pi-hole.net/t/make-some-advance-api/26786)._
