Account Object
Description
JSON representation of an account object

ATTRIBUTES
id String The id of the object in hexadecimal.

name String The name of the user.
first_name String The first name of the user.
last_name String The last name of the user.
email String The email address of the user.
sex String User is "" (unspecified), "m" (male) or "f" (female).
birth_date String ISO date of birth of the user. optional
default_blog String The id of the prefered blog for the user.
avatar String An avatar of the user, sized up to 60x60 pixels. optional
avatar_large String An avatar of the user, sized up to 125x125 pixels. optional
number_of_unseen_comments Number The sum of unseen comments for all blogs on the account.

EXAMPLE DATA
{
 "first_name": "", 
 "avatar_large": null, 
 "name": " ", 
 "number_of_unseen_comments": 1, 
 "sex": "", 
 "email": "[email protected]", 
 "last_name": "", 
 "avatar": null, 
 "default_blog": "51a84568ddf2b3208abb3667", 
 "birth_date": "1970-01-01", 
 "id": "51a84568ddf2b3208abb3666"
}
Blog Object
Description
JSON representation of a blog object

ATTRIBUTES
id String The id of the object in hexadecimal.
title String The name of the blog.
description String A Description of the blog.
url String The base URL for the blog.
site_id Number Deprecated
moderated Boolean If true, all submitted comments are held for moderation.
number_of_unseen_comments Number The number of unseen comments for the blog.
number_of_drafts Number The number of drafts saved for the blog.
default_image_width Number The default new image width.
EXAMPLE DATA
{
 "account": "51a84568ddf2b3208abb3666", 
 "description": "A demo blog for the API", 
 "title": "api.blogg.se", 
 "number_of_unseen_comments": 1, 
 "site_id": 4171920, 
 "url": "http://api.blogg.se/", 
 "moderated": true, 
 "default_image_width": 600, 
 "number_of_drafts": 1, 
 "id": "51a84568ddf2b3208abb3667"
}
Category Object
Description
JSON representation of a category object

ATTRIBUTES
name String The name of the category
permalink String The permalink URL to this category.

EXAMPLE DATA
{
 "permalink": "http://api.blogg.se/category/api.html", 
 "name": "API"
}
Comment Object
Description
JSON representation of a comment object

ATTRIBUTES
id String The id of the object in hexadecimal.
name String The name of the commenting user.
url String The url of the commenting user.
created String * An ISO date representing when the comment was made.
body String The plaintext of the comment
email String The email of the commenting user
answer Comment An answer made to the parent comment optional
avatar String An avatar of the commenting user, sized up to 60x60 pixels. optional
avatar_large String An avatar of the commenting user, sized up to 125x125 pixels. optional
seen Boolean true if the comment has been seen.
visible Boolean true if the comment is visible on the blog
entry String The id of the entry that the comment belongs to
blog String The id of the blog that the comment belongs to

EXAMPLE DATA
{
 "body": "Nunc magna lorem, molestie eget ornare sed, rhoncus ac libero.", 
 "avatar_large": null, 
 "name": "Martin Lundberg", 
 "created": "2013-05-31T09:10:05+02:00", 
 "url": "http://info.blogg.se", 
 "email": "[email protected]", 
 "blog": "51a84568ddf2b3208abb3667", 
 "visible": false, 
 "avatar": null, 
 "entry": "51a84624ddf2b3208abb3681", 
 "answer": null, 
 "seen": false, 
 "id": "51a84ccdddf2b3211f3ad005"
}
Entry Object
Description
JSON representation of an entry object

ATTRIBUTES
id String The id of the object in hexadecimal.
blog String The id of the blog the entry belongs to.
title String The title of the entry.
body String The full HTML body of the entry.
excerpt String Truncated body of the entry with HTML tags removed.
permalink String The full permanent URL for the entry.
publish_date String An ISO date representing when the entry was published ( or is going to be ).
created String An ISO date representing when the entry was created.
commentable Boolean If commenting is allowed for the entry.
comment_count Number The number of comments for the entry.
comment_count_unseen Number The number of unseen comments for the entry.
categories Array[Category] An Array containing objects which in turn contain name and permalink for categories for the entry.
tags Array[String] An Array containing the tags for the entry
draft Boolean true if the entry is a draft and false if it is published
position Position An object containg GEO-data for the entry. optional
images Array[String] An array containing image-ids used in the entry body.
thumbnail_url String An URL to a thumbnail of an image used in the entry resized to fit a box of 128x128 pixels.

EXAMPLE DATA
{
 "body": "

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer congue leo a leo condimentum sollicitudin. Nunc aliqua

\r\n
\"\"
\r\n

m, nunc vitae placerat facilisis, metus quam aliquam dolor, dictum molestie sem nulla id libero. Praesent tortor lorem, consectetur sit amet ornare nec, laoreet a tellus. Nam eget varius lorem. Donec posuere semper felis at aliquet. Pellentesque at ultrices elit. Nunc magna lorem, molestie eget ornare sed, rhoncus ac libero.

\r\n

Vivamus faucibus mattis porta. Mauris aliquet aliquet ipsum, eu commodo augue vulputate ac. In inpharetra est. Pellentesque posuere, nisl vitae rhoncus vestibulum, nunc est consectetur odio, et fringilla erat arcu a lacus. Duis interdum laoreet dui, sed cursus turpis tincidunt id. Etiam ac nisl est, quis congue diam. Curabitur tincidunt enim a risus sagittis consectetur. Aenean porta interdum tortor, consectetur condimentum turpis consectetur mattis. Phasellus molestie ante ac nisl mollis ac luctus nulla elementum.

", "tags": [ "api", "demo", "test" ], "excerpt": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer congue leo a leo condimentum sollicitudin. Nunc aliqua\r\n\r\nm, nunc vitae placerat facilisis, metus quam aliquam dolor, dictum molestie\u2026", "position": { "latitude": 59.297010900000004, "altitude": null, "precision": 0, "longitude": 18.109455699999998, "address": null }, "images": [ "51a845eaddf2b321772aa05c" ], "id": "51a84624ddf2b3208abb3681", "categories": [ { "permalink": "http://api.blogg.se/category/allmant.html", "name": "Allm\u00e4nt" }, { "permalink": "http://api.blogg.se/category/api.html", "name": "API" } ], "permalink": "http://api.blogg.se/2013/may/bloggse-now-has-an-api.html", "created": "2013-05-31T08:41:40+02:00", "comment_count_unseen": 1, "title": "Blogg.se now has an API", "commentable": true, "blog": "51a84568ddf2b3208abb3667", "comment_count": 1, "thumbnail_url": "https://cdn2.cdnme.se/4171920/6-3/lipsum07_51a845eaddf2b321772aa05c_thumb.gif", "publish_date": "2013-05-31T08:41:00+02:00", "draft": false }
Image Object
Description
JSON representation of an image object

ATTRIBUTES
id String The id of the object in hexadecimal.
account String The id of the account that the image belongs to.
blog String The id of the blog that the image belongs to.
name String The original file name of the image.
url String The url to the full sized image.
thumb_url String The url to the thumbnail sized image fitting a box of 128x128 pixels.
description String The original file name of the image. optional

EXAMPLE DATA
{
 "blog": "51a84568ddf2b3208abb3667", 
 "account": "51a84568ddf2b3208abb3666", 
 "description": "", 
 "url": "https://cdn2.cdnme.se/4171920/6-3/lipsum07_51a845eaddf2b321772aa05c.gif", 
 "thumb_url": "https://cdn2.cdnme.se/4171920/6-3/lipsum07_51a845eaddf2b321772aa05c_thumb.gif", 
 "id": "51a845eaddf2b321772aa05c", 
 "name": "lipsum07.gif"
}
Position Object
Description
JSON representation of a position object

ATTRIBUTES
latitude Number The decimal latitude coordinate of the position
longitude Number The decimal longitude coordinate of the position
precision Number Precision in meters, 0 for exact coordinates
altitude Number Altitude in meters, null if not set optional
address String The full address to the location on a single line.

EXAMPLE DATA
{
 "latitude": 59.3377779, 
 "altitude": 8, 
 "precision": 0, 
 "longitude": 18.093719, 
 "address": "Tysta gatan 12, 115 20 Stockholm, Sverige"
}
Pageview Object
Description
JSON representation of a pageview object

ATTRIBUTES
unique Number The number of unique visitors during that day.
pageviews Number The number of page views during that day.
date String The ISO date when the stats were collected.

EXAMPLE DATA
{
 "date": "2013-05-31T00:00:00+02:00", 
 "unique": 113, 
 "pageviews": 484
}