注册开发者密钥
点击注册
API汇总
name |
url |
Blog |
api.tumblr.com/v2/blog/{blog-identifier}/… |
User |
api.tumblr.com/v2/user/… |
post |
api.tumblr.com/v2/blog/{blog-identifier}/posts[/type] |
明细
type |
name |
url |
method |
Authentication |
blog |
info |
api.tumblr.com/v2/blog/{blog-identifier}/info?api_key={key} |
GET |
API key |
API 明细
Blog
info
/info
— Retrieve Blog Info
This method returns general information about the blog, such as the title, number of posts, and other high-level data.
url
type |
name |
url |
method |
Authentication |
blog |
info |
api.tumblr.com/v2/blog/{blog-identifier}/info?api_key={key} |
GET |
API key |
Request Parameters
Parameter |
Type |
Description |
Default |
Required? |
blog-identifier |
String |
Any blog identifier See the Overview for more details. |
N/A |
Yes |
api_key |
String |
Your OAuth Consumer Key See Authentication for more details. |
N/A |
Yes |
avatar
/avatar
— Retrieve a Blog Avatar
You can get a blog’s avatar in 9 different sizes. The default size is 64x64.
Method
URI |
HTTP Method |
Authentication |
api.tumblr.com/v2/blog/{blog-identifier}/avatar[/size] |
GET |
None |
Request Parameters
Parameter |
Type |
Description |
Default |
Required? |
blog-identifier |
String |
Any blog identifier |
N/A |
Yes |
size |
Number |
The size of the avatar (square, one value for both length and width). Must be one of the values:16, 24, 30, 40, 48, 64, 96, 128, 512 |
64 |
No |
post
Method
URI |
HTTP Method |
Authentication |
api.tumblr.com/v2/blog/{blog-identifier}/posts[/type]?api_key={key}&[optional-params=] |
GET |
API key |
Request Parameters
Parameter |
Type |
Description |
Default |
Required? |
blog-identifier |
String |
Any blog identifier |
N/A |
Yes |
api_key |
String |
Your OAuth Consumer Key |
N/A |
Yes |
type |
String |
The type of post to return. Specify one of the following: text, quote, link, answer, video, audio, photo, chat |
None – return all types |
No |
id |
Number |
A specific post ID. Returns the single post specified or (if not found) a 404 error. |
None |
No |
tag |
String |
Limits the response to posts with the specified tag |
None |
No |
limit |
Number |
The number of posts to return: 1–20, inclusive |
20 |
No |
offset |
Number |
Post number to start at |
0 (first post) |
No |
reblog_info |
Boolean |
Indicates whether to return reblog information (specify true or false). Returns the various reblogged_ fields. |
False |
No |
notes_info |
Boolean |
Indicates whether to return notes information (specify true or false). Returns note count and note metadata. |
False |
No |
filter |
String |
Specifies the post format to return, other than HTML: |
None (HTML) |
No |
before |
Number |
Returns posts published earlier than a specified Unix timestamp, in seconds. |
False |
No |