C/2/short url/shorten/biz-en
short_url/shorten/biz
Transform one or several long urls to short urls.
URL
https://c.api.weibo.com/2/short_url/shorten/biz.json
Supported Formats
JSON
HTTP Request Method
GET
Requires Login
true
See the Login and Authorization Mechanism Statement for login and authorization details.
Requests Count Limitation
Request all APIs:
- 50000/hour/IP;
- 50000/hour/IP;
Request Parameters
Requires | Type and Range | Description | |
---|---|---|---|
source | false | string | This parameter is not needed when using OAuth.The value of this parameter is the AppKey. |
access_token | false | string | This parameter is required when using OAuth.You will get the access_token after oauth authorization. |
url_long | true | string | The long urls to be transformed, it should be URL encoded. The upper limit number is 20. |
Notes
- If you want to pass multiple short urls in one request, the format of this short_url parameter should be: url_short=aaa&url_short=bbb.
Response
JSON Example
{ "urls": [ { "url_short": "http://t.cn/h4DwT1", "url_long": "http://finance.sina.com.cn/", "type": 0, "result": "true" }, { "url_short": "", "url_long": "http://finance.sina.com.cn/", "type": 0, "result": "false" }, ... ] }
See the Error Code Description for the error information details.
Field Description
none
Others
none
文档更新时间: 2017-08-02