HTTP REST API not working

Hi, i am making my simple program and connect with that program with Blynk Mobile app and it is working fine, when i wants to use API then i am facing problem, can anybody help me out for this

below is my program and i have no fear to get my auth code or wifi SSID / Password as it is just little project to understand

here is my code

#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

char auth[]="TEdP-c_VTKBCW8YC91RzOKhJ_7yBJzZW";
char ssid[]=" A 34";
char pass[]="netgear4";

void setup() {
  pinMode(D8, OUTPUT);  // LIGHTS
  digitalWrite(D8,LOW); // LIGHTS OFF

// the loop function runs over and over again forever
void loop() {;

the PROBLEM, as i mentioned that blynk app is working perfectly all right to work remotely and my LED is turning off and on so i have no issue with it
the main problem is that when i am using this link

it doesnt work and if use D2 with value=0 than my ESP8266MOD (blue light active)

i want to turn on my LED which is connected with D8 Pin (physically)

i also tried this with IP like “”

with 8080 port and without but it doesn’t work for me

here in picture, you can see the picture and response “200” mentioned but my LED is no turning on

PLZ PLZ help me in this regards


@Syed_Hassan please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:


Are you using blynk IOT or legacy ?

done sir


The pin that’s labelled D8 is GPIO15.
Try changing your API call to D15 and see if this turned the pin labelled D8 on and off.


Oh Sir, So Nice of you
Work done, now working…
how do i know which GPIO pin i am using, any tip?

Read this article

1 Like

so nice of you

1 Like