39

Official API

Would be great to have an official API to; 

  • Access Stats / Analytics
  • Retrieve Settings
  • Set Settings / Options
  • Add / Remove (bulk, etc) to the Allowlist/Denylist
  • Access / Query / Download Logs
  • Create / Revoke API Tokens
  • etc...
10replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
    • Rob
    • iOS Developer
    • Rob
    • 11 mths ago
    • Reported - view

    I would also like to directly make the `https://<random-identifier>.test.nextdns.io` request that is currently contained in a HTML page.

     

    (because of the random identifier I don't know how to do that)

    Like
    • Like 3
      • Rob
      • iOS Developer
      • Rob
      • 11 mths ago
      • Reported - view

      I want to do this on iOS, in a rest client, for example HTTPBot.

      How can I mimic the `-L` behavior?

      Because now I get this response, when performing a GET request on https://test.nextdns.io/:

      <body>
        <pre><script>
      var xhr = new XMLHttpRequest();
      xhr.open('GET', 'https://<random-identifier>.test.nextdns.io/', false);
      xhr.send();
      document.write(xhr.responseText);
      </script></pre>
      </body>
       
      Like
    • Rob set the user-agent header to “curl”

      Like 1
      • Rob
      • iOS Developer
      • Rob
      • 11 mths ago
      • Reported - view

      Olivier Poitrey Thanks! Works in Paw on macOS, but not in HTTPBot on iOS.

      Will follow-up with the HTTPBot author (I expect it to be a bug in that App; the response status is 200, but there's no text, while the App is configured to follow redirects).

      Like
      • David M.
      • dmio
      • 4 mths ago
      • 2
      • Reported - view

      Olivier Poitrey Curious if you could respond to the parent request - which is a customer facing API?  As NextDNS adds more functionality there's a lot of room for API use cases.  Especially with regard to things like allow and block lists.  Also, it's a great "premium" upgrade.  As a paying customer I would really like to see more programmatic controls around the product.

      Like 2
  • Would add the ability to update destination IPs of rewrites to this wishlist

    Like
  • Found this thread while googling around. I would love a way to modify rewrites from the API.

    Like 1
    • Leo
    • Leo.1
    • 2 mths ago
    • Reported - view

    I would like to add some statistics to my home-dashboard so this feature would be very handy.

    Like
  • I've been test driving NextDNS for a little bit and there are some feature gaps causing me to roll back to running Pihole on my LAN.  Some of these gaps I could address with some API functionality.  Namely:

    • Ability to enable/disable all filtering (bonus points if it can be for "X" seconds or minutes)
    • Lacking that, the ability to add/remove block lists via the API would allow me to emulate the above

    Other things that I've gotta figure out would be things like better individual client identification, adding clients to groups, and applying filtering rules by groups. For example IoT devices get locked way down, and my wife's work computer virtually not at all (causes a bit of havoc on the work computer). If any of those features get added, the ability to interact with them via the API would be a big plus.

    Like
Like39 Follow
  • 39 Likes
  • 2 wk agoLast active
  • 10Replies
  • 672Views
  • 13 Following