item_get - get tyc details
tyc.item_get
public parameters
Request URL: https://api-gw.cn/tyc/item_get
name | type | must | describe |
---|---|---|---|
key | String | yes | Call key (must be spliced in the URL in GET mode) |
secret | String | yes | call key |
api_name | String | yes | API interface name (included in the request address) [item_search, item_get, item_search_shop, etc.] |
cache | String | no | [yes, no] The default is yes, the cached data will be called, and the speed is relatively fast |
result_type | String | no | [json,jsonu,xml,serialize,var_export] returns the data format, the default is json, and the content output by jsonu can be read directly in Chinese |
lang | String | no | [cn,en,ru] translation language, default cn Simplified Chinese |
version | String | no | API version |
request parameters
Request parameter: num_iid=
Parameter description: num_iid: enterprise credit code:
response parameters
Version: Date:2023-05-29
name | type | must | example value | describe |
---|---|---|---|---|
items |
items[] | 0 | Get tyc details | |
company_id |
Int | 0 | 10644558 | company id |
unified_code |
String | 0 | 92110114MA01EF6DXH | Unified Social Credit Code |
ent_name |
String | 0 | Nanchang Zhonghuan Internet Technology Co., Ltd. | Company Name |
reg_capital |
String | 0 | 3 million RMB | subscription amount |
legal_person |
String | 0 | Yu Jiajia | legal representative |
open_status |
String | 0 | Survival (in operation, opening, registration) | Operating status |
old_ent_name |
String | 0 | former name | |
industry_type |
String | 0 | Information transmission, software and information technology service industry | Industry type |
authority |
String | 0 | Nanchang Market and Quality Supervision Administration | included in the decision-making body |
annual_date |
Datetime | 0 | 2017-06-26 00:00:00 | Audit/annual inspection date |
start_date |
Datetime | 0 | 2015-11-27 00:00:00 | Established |
ent_type |
String | 0 | Limited liability company (sole proprietorship by natural persons) | type of enterprise |
open_time |
Datetime | 0 | 2015-11-27 to 2030-11-26 | Operating period |
district |
String | 0 | Jiangxi Province | Administrative division |
reg_addr |
String | 0 | 12A05, Building 1, Diwang Plaza, No. 150, Zhongshan Road, Xihu District, Nanchang City, Jiangxi Province | Registered address |
scope |
String | 0 | Computer, software, hardware, and network technology development, technical services, and technical consultation; software design (projects that must be approved by law can only be operated after approval by relevant departments) | Business Scope |
mobile |
String | 0 | 18970901287 | telephone number |
|
String | 0 | [email protected] | email address |
request example
Curl call example
-- Request example url The default request parameters have been URL-encoded
curl -i "https://api-server.cn/tyc/item_get/?key=<your own apiKey>&secret=<your own apiSecret>&num_iid="
Java call example
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.net.URL;
import java.nio.charset.Charset;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.PrintWriter;
import java.net.URLConnection;
public class Example {
private static String readAll(Reader rd) throws IOException {
StringBuilder sb = new StringBuilder();
int cp;
while ((cp = rd.read()) != -1) {
sb.append((char) cp);
}
return sb.toString();
}
public static JSONObject postRequestFromUrl(String url, String body) throws IOException, JSONException {
URL realUrl = new URL(url);
URLConnection conn = realUrl.openConnection();
conn.setDoOutput(true);
conn.setDoInput(true);
PrintWriter out = new PrintWriter(conn.getOutputStream());
out.print(body);
out.flush();
InputStream instream = conn.getInputStream();
try {
BufferedReader rd = new BufferedReader(new InputStreamReader(instream, Charset.forName("UTF-8")));
String jsonText = readAll(rd);
JSONObject json = new JSONObject(jsonText);
return json;
} finally {
instream.close();
}
}
public static JSONObject getRequestFromUrl(String url) throws IOException, JSONException {
URL realUrl = new URL(url);
URLConnection conn = realUrl.openConnection();
InputStream instream = conn.getInputStream();
try {
BufferedReader rd = new BufferedReader(new InputStreamReader(instream, Charset.forName("UTF-8")));
String jsonText = readAll(rd);
JSONObject json = new JSONObject(jsonText);
return json;
} finally {
instream.close();
}
}
public static void main(String[] args) throws IOException, JSONException {
// 请求示例 url 默认请求参数已经URL编码处理
String url = "https://api-服务器.cn/tyc/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=";
JSONObject json = getRequestFromUrl(url);
System.out.println(json.toString());
}
}
example response