Method Details
HTTP Methods:
GET
Response Format:
json
Requires Authentication?
Yes
Rate Limited?
Headers
Products:
Marketing
Get the details for a specific blog.
There's a new version of the HubSpot API
As of November 30, 2022, HubSpot API keys are no longer a supported authentication method for accessing HubSpot APIs. Instead, you should use a private app access token or OAuth to authenticate API calls. Learn more about this change and how to migrate an API key integration to use a private app instead.
HTTP Methods:
GET
Response Format:
json
Requires Authentication?
Yes
Rate Limited?
Headers
Products:
Marketing
Get the details for a specific blog.
| Required Parameters | How to use | Description |
|---|---|---|
| OAuth access token or private app access token | Authorization: Bearer {token} header | Used to authenticate the request. Please see this page for more details about authentication. |
| blog_id | Used in the request URL | Unique identifier for a particular blog |
| Parameter name | Type | Description |
|---|---|---|
| allow_comments | boolean | Are comments enabled for the blog |
| archived_at | long | When the post was deleted, in milliseconds since the epoch. Zero if the blog post was never deleted. Use a DELETE request to delete the post, do not set this directly. |
| created | long | When the post was first created, in milliseconds since the epoch |
| html_title | string | The title in the <title> attribute of the page, shows up in the browsers title bar and as the title in Google search results |
| name | string | The internal name of the blog |
| public_title | string | The header of the blog |
| root_url | string | The full URL with domain and scheme to the blog post |
| slug | string | The path of the URL on which the post will live. Changing this will change the URL. |
| updated | long | When the post was last updated, in milliseconds since the epoch |
Example response:
{
"domain":"",
"post_html_footer":"",
"enable_social_auto_publishing":false,
"social_account_twitter":"",
"posts_per_listing_page":10,
"item_layout_id":348109319,
"show_summary_in_emails":false,
"close_comments_older":0,
"instant_notification_email_id":348108934,
"social_sharing_linkedin":null,
"header":null,
"legacy_tab_id":null,
"monthly_notification_email_id":348108919,
"subscription_form_guid":"6620143a-a4b1-4709-a537-c3e5b66c97c1",
"comment_moderation":false,
"post_html_head":"",
"show_summary_in_listing":false,
"deleted_at":0,
"id":351076997,
"subscription_email_type":null,
"social_sharing_digg":null,
"social_sharing_twitter":null,
"default_group_style_id":"",
"default_notification_from_name":"Patrick Fitzsimmons",
"captcha_after_days":7,
"listing_template_path":"generated_layouts/348109319.html",
"listing_layout_id":348109319,
"title":null,
"html_footer":"",
"root_url":"http://62515.sites.hubspot.com/blog",
"comment_date_format":"medium",
"captcha_always":false,
"rss_item_header":null,
"social_sharing_twitter_account":null,
"public_title":"API Demonstration Blog",
"social_sharing_reddit":null,
"email_api_subscription_id":null,
"weekly_notification_email_id":348108964,
"legacy_guid":null,
"item_template_path":"generated_layouts/348109319.html",
"html_head_is_shared":true,
"social_sharing_googleplusone":null,
"subscription_lists_by_type":{
"monthly":278,
"instant":279,
"daily":280,
"weekly":281
},
"body":{
"social_sharing_linkedin":null,
"rss_custom_feed":null,
"post_html_footer":"",
"enable_social_auto_publishing":false,
"social_account_twitter":"",
"public_title":"API Demonstration Blog",
"item_layout_id":348109319,
"show_summary_in_emails":false,
"close_comments_older":0,
"allow_comments":true,
"instant_notification_email_id":348108934,
"subscription_lists_by_type":{
"monthly":278,
"instant":279,
"daily":280,
"weekly":281
},
"header":null,
"legacy_tab_id":null,
"default_notification_reply_to":"[email protected]",
"subscription_form_guid":"6620143a-a4b1-4709-a537-c3e5b66c97c1",
"weekly_notification_email_id":348108964,
"social_sharing_twitter":null,
"captcha_after_days":7,
"comment_moderation":false,
"show_summary_in_listing":false,
"subscription_email_type":null,
"social_sharing_digg":null,
"post_html_head":"",
"html_title":"API Demonstration Blog",
"html_footer_is_shared":true,
"listing_template_path":"generated_layouts/348109319.html",
"listing_layout_id":348109319,
"title":null,
"html_footer":"",
"comment_date_format":"medium",
"captcha_always":false,
"rss_item_header":null,
"social_sharing_twitter_account":null,
"posts_per_listing_page":10,
"social_sharing_reddit":null,
"legacy_guid":null,
"email_api_subscription_id":null,
"item_template_path":"generated_layouts/348109319.html",
"social_sharing_googleplusone":null,
"social_sharing_googlebuzz":null,
"html_head_is_shared":true,
"monthly_notification_email_id":348108919,
"description":"",
"default_group_style_id":"",
"social_sharing_email":null,
"default_notification_from_name":"Patrick Fitzsimmons",
"subscription_contacts_property":"blog_api_demonstration_blog_subscription",
"comment_verification_text":"",
"publish_date_format":"medium",
"social_sharing_facebook_like":null,
"slug":"blog",
"legacy_module_id":null,
"daily_notification_email_id":348108949,
"html_head":"",
"html_keywords":[
],
"month_filter_format":"MMMM yyyy",
"language":"en_US",
"social_publishing_slug":null,
"rss_description":null,
"rss_item_footer":null,
"item_template_is_shared":true,
"comment_notification_emails":[
],
"social_sharing_facebook_send":null,
"social_sharing_delicious":null,
"show_summary_in_rss":false,
"social_sharing_stumbleupon":null
},
"social_sharing_facebook_send":null,
"updated":1381896117000,
"default_notification_reply_to":"[email protected]",
"description":"",
"html_head":"",
"social_sharing_delicious":null,
"social_sharing_email":null,
"social_sharing_googlebuzz":null,
"html_title":"API Demonstration Blog",
"portal_id":62515,
"subscription_contacts_property":"blog_api_demonstration_blog_subscription",
"comment_verification_text":"",
"html_footer_is_shared":true,
"social_publishing_slug":null,
"publish_date_format":"medium",
"social_sharing_facebook_like":null,
"slug":"blog",
"legacy_module_id":null,
"daily_notification_email_id":348108949,
"allow_comments":true,
"html_keywords":[
],
"name":"API Demonstration Blog",
"language":"en_US",
"created":1381896103000,
"rss_description":null,
"rss_item_footer":null,
"item_template_is_shared":true,
"comment_notification_emails":[
],
"month_filter_format":"MMMM yyyy",
"rss_custom_feed":null,
"show_summary_in_rss":false,
"category_id":3,
"social_sharing_stumbleupon":null
}