JSON Feed API
Statistics list of default categories in Blogger by get json feed method
- .class : self set for each item
- item in the list : get list in list corresponding to description
- display html: <span class = ' .class '> </ span>
<script>
// <CDATA [
var posts = "/ feeds / posts / default? alt = json-in-script"; // Get the article data
var pages = "/ feeds / pages / default? Alt = json-in-script"; // Get static page data
var comments = "/ feeds / comments / default? Alt = json-in-script"; // Get the data commentators
$ .ajax ({
url: posts or pages or comments ,
type: "get"
datatype "jsonp",
success: function (data) {
var blogfeed = data. Items in the list ;
$ (' .class ') .html (blogfeed);
//]]>
</ script>
- .class : self set for each item
- item in the list : get list in list corresponding to description
- display html: <span class = ' .class '> </ span>
get | List | Describe | Result |
posts | feed.id. $ t | Blog ID | tag: blogger.com, 1999: blog-670287149123457733 |
posts | feed.updated. $ t | Latest updates | 2018-11-08T12: 04: 28.214 + 07: 00 |
posts | data.feed.link [2] .href | Blog Url | https://www.vietblogdao.com/ |
posts | feed.title $ t | Blog Title | Free Blogger - Blogspot Tutorial, Dexterity Windows |
posts | feed.subtitle. $ t | Blog Description | Share everything about Blogspot and Windows |
posts | feed.author [0] .name. $ t | Admin name | |
posts | feed.author [0] .uri. $ t | Link administrator profiles | |
posts | feed.author [0] .gd $ image.src | Link profile image administrator | //lh6.googleusercontent.com/-iRVl7_i8as4/AAAAAAAAAAI/AAAAAAAALqU/2NALP8jSsgc/s512-c/photo.jpg |
posts | feed.openSearch $ totalResults. $ t | Total Posts | 241 |
pages | feed.openSearch $ totalResults. $ t | Static page count | 9 |
comments | feed.openSearch $ totalResults. $ t | Total comments | 581 |
posts | feed.category.length | Label Total (Label) | 11 |
posts | feed.category [i] .term | Label List |
|
posts | feed.entry [0] .link [4] .href | Latest post url | https://www.vietblogdao.com/2018/11/cach-thiet-lap-nut-chia-se-bai-viet-len-twitter-hien-thi-day-du-noi-dung.html |
posts | feed.entry [0] .title $ t | Latest article title | How to set up a Twitter share button to display full content |
posts | feed.entry [0] .published. $ t | Post date | 2018-11-08T11: 09: 00.000 + 07: 00 |
posts | feed.entry [0] .updated. $ t | Update | 2018-11-08T12: 04: 28.202 + 07: 00 |
posts | feed.entry [0] .author [0] .name. $ t | The writer's name | |
posts | feed.entry [0] .author [0] .uri. $ t | Spirit profiles authors | |
posts | feed.entry [0] .author [0] .gd $ image.src | Lucid Profile Author | |
posts | feed.entry [0] .content. $ t | content | All content in the post-body |
posts | feed.entry [0] .media $ thumbnail.url | Scrapbook article | https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYSndY176XwV7jFnrxqlffyFb3TSxSn3hWdUY3BRt3X5SNvVbvoK_seqbglCoum4jUIqSq0qt3tYJaeeInyOAsI4Usl2Ba0onU44u31BkRasey-x-zgARlYI0yM6K7ZcPHDf7VnqddUVFy/s72-c/twitter-card-validator.png |
posts | feed.entry [0] .thr $ total. $ t | Number of comments | 0 |