Java Code For Sending Url's To Indexing API

Indexing API.png


I solved this using Java.

Indexing API Cloud.png
 
Hey, I want to ask, does it work for you? Because I have seen many people saying that the URLs disappeared from the SERP in couple of weeks?
 
After writing this, I realized you responded to your own post with a resolution, but in case this helps anyone else...

You could set up a quick and dirty TCP client program like this:

```
import java.net.*;
import java.io.*;

Socket socket = new Socket("<API-URL>", 80);
OutputStream URL_output = socket.getOutputStream();
byte[] URLS = new byte[<List of URLS>];

for (int i = 0; i <= URLS.length(); i++) {
URL_ouput.write(i);
}
```

For anyone interested, more info on TCP clients/servers in Java:

https://www.codejava.net/java-se/networking/java-socket-client-examples-tcp-ip​

 
Back
Top