主题
公司信息
/companies?country_id=35&id=44109&size=10&page=1&key=联系我们获取keyPARAMS
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| country_id | query | string | yes | 国家ID |
| id | query | string | no | 股票 Id |
| size | query | string | no | 长度 |
| page | query | string | no | 页数 从1开始的 |
| key | query | string | yes | 联系我们获取key |
Example Response
json
{
"data": [
{
"Name": "Nissui", // 公司名称
"Industry": "食品和煙草", // 行业
"Sector": "Consumer Non-Cyclicals", // 板块
"Exchange": "東京", // 交易所
"Section": "消費類(非週期性)", // 板块细分
"Marketcap": "¥2,632.1億(JPY)", // 市值
"Peltmlatest": "10.6x", // 市盈率
"Pegltm": 1, // 市盈增长比
"Pricelates": "¥868.10(JPY})", // 最新成交价
"Id": 44109 // 股票Id
}
],
"current_page": 0, // 页码
"per_page": 10, // 每页数量
"total": 1070 // 分页总数
}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("/companies?Id=17988&size=10&page=0&key=联系我们获取key&country_id=11")
.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 => '/companies?Id=17988&size=10&page=0&key=联系我们获取key&country_id=11',
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;