by-month resource endpoint

URL: /blogs/<id>/post-assets/@published/@by-month/<id>.<format>

Supported Methods

GET Get the posts that were published within the selected month (YYYY-MM) from the selected blog.

Query String Arguments

start-index
Index of the first item to return. The first item in the list has index 1.
max-results
Maximum number of items to return in the list response.

Resource Type

This endpoint returns an object of type List<Post>.

entries (array<Post>)
The items within the selected range.
totalResults (integer)
The total number of items in the whole list of which this object is a chunk.

Client Library Methods for PHP

Get the posts that were published within the selected month (YYYY-MM) from the selected blog.
$tp->blogs->getPublishedPostAssetsByMonth(array(

    # Required Parameters
    "id" => $id,
    "month" => $month,

    # Optional Parameters
    "limit" => $limit,
    "offset" => $offset,

))

Example Request

GET /blogs/6a012877b13de7970c012877b13df1970c/post-assets/@published/@by-month/2010-02.json?max-results=4 HTTP/1.1
Host: api.typepad.com

HTTP/1.0 200 OK
Content-type: application/json
Content-length: 5565

{
   "entries": [
      {
         "excerpt": "I've started this blog to share interesting law facts and information about cases I find interesting. Information in this blog is not legal advice.",
         "embeddedAudioLinks": [],
         "content": "<p>I've started this blog to share interesting law facts and information about cases I find interesting.</p>\r\n<p>Information in this blog is not legal advice.</p>",
         "reblogCount": 0,
         "favoriteCount": 2,
         "author": {
            "urlId": "6p012877b13de7970c",
            "location": null,
            "interests": [],
            "objectTypes": [
               "tag:api.typepad.com,2009:User"
            ],
            "profilePageUrl": "http://profile.typepad.com/loblawatlaw",
            "aboutMe": null,
            "objectType": "User",
            "preferredUsername": "loblawatlaw",
            "id": "tag:api.typepad.com,2009:6p012877b13de7970c",
            "avatarLink": {
               "width": 250,
               "urlTemplate": "http://static.typepad.com/.shared:ve698a40:typepad:en_us/default-userpics/11-{spec}.gif",
               "url": "http://static.typepad.com/.shared:ve698a40:typepad:en_us/default-userpics/11-250si.gif",
               "height": 250
            },
            "displayName": "Bob Loblaw"
         },
         "renderedContent": "<p>I've started this blog to share interesting law facts and information about cases I find interesting.</p>\r\n<p>Information in this blog is not legal advice.</p>",
         "hasExtendedContent": false,
         "objectType": "Post",
         "groups": [],
         "id": "tag:api.typepad.com,2009:6a012877b13de7970c012877b143d0970c",
         "embeddedVideoLinks": [],
         "urlId": "6a012877b13de7970c012877b143d0970c",
         "objectTypes": [
            "tag:api.typepad.com,2009:Post"
         ],
         "categories": [],
         "container": {
            "urlId": "6a012877b13de7970c012877b13df1970c",
            "objectType": "Blog",
            "id": "tag:api.typepad.com,2009:6a012877b13de7970c012877b13df1970c",
            "homeUrl": "http://bobloblaw.typepad.com/blog/",
            "displayName": "Bob Loblaw Law Blog"
         },
         "description": "",
         "commentCount": 2,
         "published": "2010-02-18T00:02:56Z",
         "textFormat": "html",
         "permalinkUrl": "http://bobloblaw.typepad.com/blog/2010/02/welcome-t.html",
         "embeddedImageLinks": [],
         "filename": "welcome-t",
         "shortUrl": "http://bit.ly/aj4Deb",
         "title": "Welcome to my Blog"
      },
      {
         "excerpt": "Welcome to TypePad! This is a sample post you can edit or delete later.",
         "embeddedAudioLinks": [],
         "content": "<p style=\"text-align: center;\"><img src=\"http://www.typepad.com/images/home/typepad-2.jpg\" /></p>\n<p style=\"font-size: 14px;\"><strong>Welcome to TypePad!</strong> This is a sample post you can edit or delete later.</p>\n<!-- typepad-default-post -->\n",
         "reblogCount": 0,
         "favoriteCount": 0,
         "author": {
            "urlId": "6p012877b13de7970c",
            "location": null,
            "interests": [],
            "objectTypes": [
               "tag:api.typepad.com,2009:User"
            ],
            "profilePageUrl": "http://profile.typepad.com/loblawatlaw",
            "aboutMe": null,
            "objectType": "User",
            "preferredUsername": "loblawatlaw",
            "id": "tag:api.typepad.com,2009:6p012877b13de7970c",
            "avatarLink": {
               "width": 250,
               "urlTemplate": "http://static.typepad.com/.shared:ve698a40:typepad:en_us/default-userpics/11-{spec}.gif",
               "url": "http://static.typepad.com/.shared:ve698a40:typepad:en_us/default-userpics/11-250si.gif",
               "height": 250
            },
            "displayName": "Bob Loblaw"
         },
         "renderedContent": "<p style=\"text-align: center;\"><img src=\"http://www.typepad.com/images/home/typepad-2.jpg\" /></p>\n<p style=\"font-size: 14px;\"><strong>Welcome to TypePad!</strong> This is a sample post you can edit or delete later.</p>\n<!-- typepad-default-post -->\n",
         "hasExtendedContent": false,
         "objectType": "Post",
         "groups": [],
         "id": "tag:api.typepad.com,2009:6a012877b13de7970c012877b13e1d970c",
         "embeddedVideoLinks": [],
         "urlId": "6a012877b13de7970c012877b13e1d970c",
         "objectTypes": [
            "tag:api.typepad.com,2009:Post"
         ],
         "categories": [],
         "container": {
            "urlId": "6a012877b13de7970c012877b13df1970c",
            "objectType": "Blog",
            "id": "tag:api.typepad.com,2009:6a012877b13de7970c012877b13df1970c",
            "homeUrl": "http://bobloblaw.typepad.com/blog/",
            "displayName": "Bob Loblaw Law Blog"
         },
         "description": null,
         "commentCount": 0,
         "published": "2010-02-17T23:54:58Z",
         "textFormat": "html",
         "permalinkUrl": "http://bobloblaw.typepad.com/blog/2010/02/bob-loblaw.html",
         "embeddedImageLinks": [
            {
               "width": null,
               "url": "http://www.typepad.com/images/home/typepad-2.jpg",
               "height": null
            }
         ],
         "filename": "bob-loblaw",
         "shortUrl": "http://bit.ly/crQrFs",
         "title": "Bob Loblaw"
      }
   ],
   "totalResults": 2
}