Skip to content

International News

/stock-markets?key=Contact us to get the key&type=1&country_id=5

PARAMS

nameLocationtypeRequiredillustrate
keyquerystringyesContact us to get the key
country_idquerystringyesCountry ID
typequerystringyes1=News 2=Economy 3=24 Hour News
6=Indian Stock News 7=Malay News (For Indian and Malay news, you can use 6 and 7. The news quality is better. When using 6 and 7, do not pass the country ID)

Example Response

json
[
  {
    // News ID
    "id": "sp-500-pattern-hints-at-move-beyond-4600-this-week-200644125",
   // News picture base64 format
    "img": "/9j/4AAQSkZJRgABAQEBLAEsAAD/2wCEAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSgBBwcHCggKEwoKEygaFhooKCgoKCgoKCgoKCgo",
    // time
    "time": 1701713820,
    // title
    "title": "S&P 500 Pattern Hints at Move Beyond 4600 This Week",
    // content
    "content": "Hints at Move Beyond 4600"
  }
]

Example Request

java
import java.io.*;
import okhttp3.*;
public class main {
  public static void main(String []args) throws IOException{
    OkHttpClient client = new OkHttpClient().newBuilder()
      .build();
    MediaType mediaType = MediaType.parse("text/plain");
    RequestBody body = RequestBody.create(mediaType, "");
    Request request = new Request.Builder()
      .url("/stock-markets?key=Contact us to get the key&type=1&country_id=5")
      .method("GET", body)
      .build();
    Response response = client.newCall(request).execute();
    System.out.println(response.body().string());
  }
}
php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
		CURLOPT_URL => '/stock-markets?key=Contact us to get the key&type=1&country_id=5',
		CURLOPT_RETURNTRANSFER => true,
		CURLOPT_ENCODING => '',
		CURLOPT_MAXREDIRS => 10,
		CURLOPT_TIMEOUT => 0,
		CURLOPT_FOLLOWLOCATION => true,
		CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
		CURLOPT_CUSTOMREQUEST => 'GET',
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

The interface is prohibited from secondary distribution and is limited to use by individual developers. The interface is only for learning and research and is prohibited from involving illegal business.