メインコンテンツへスキップ
GET
/
content
/
api
/
v2
/
pages
/
{page_id}
Get the Page by ID
curl --request GET \
  --url https://api.hubapi.com/content/api/v2/pages/{page_id}
import requests

url = "https://api.hubapi.com/content/api/v2/pages/{page_id}"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://api.hubapi.com/content/api/v2/pages/{page_id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.hubapi.com/content/api/v2/pages/{page_id}",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.hubapi.com/content/api/v2/pages/{page_id}"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.hubapi.com/content/api/v2/pages/{page_id}")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.hubapi.com/content/api/v2/pages/{page_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
{
  "ab_status": null,
  "ab_test_id": null,
  "analytics_page_id": "352531415",
  "archived": false,
  "attached_stylesheets": [],
  "author_user_id": 100307,
  "blueprint_type_id": 0,
  "campaign": null,
  "campaign_name": null,
  "cloned_from": null,
  "compose_body": null,
  "created": 1381896129000,
  "css": {},
  "css_text": "",
  "current_live_domain": "62515.hs-sites.com",
  "deleted_at": 0,
  "deleted_by": null,
  "domain": "",
  "enable_domain_stylesheets": true,
  "enable_layout_stylesheets": true,
  "featured_image": "",
  "featured_image_alt_text": "",
  "flex_areas": {},
  "folder_id": null,
  "footer_html": "",
  "freeze_date": 1424373283000,
  "has_smart_content": false,
  "has_user_changes": true,
  "head_html": "",
  "html_title": "The API Test Page",
  "id": 352531415,
  "include_default_custom_css": null,
  "is_draft": false,
  "keywords": [],
  "language": null,
  "last_edit_session_id": null,
  "last_edit_update_id": null,
  "legacy_blog_tabid": null,
  "meta_description": null,
  "meta_keywords": null,
  "name": "Contact Us",
  "page_expiry_date": null,
  "page_expiry_enabled": null,
  "page_expiry_redirect_id": null,
  "page_expiry_redirect_url": null,
  "page_redirected": null,
  "password": null,
  "performable_url": null,
  "personas": [],
  "portal_id": 62515,
  "publish_date": 1424373283000,
  "publish_immediately": "yes",
  "published_url": "http://62515.hs-sites.com/my-api-demo-page-slug",
  "slug": "my-api-demo-page-slug",
  "staged_from": null,
  "style_override_id": null,
  "subcategory": "site_page",
  "template_path": "generated_layouts/352531305.html",
  "tms_id": null,
  "translated_from_id": null,
  "unpublished_at": null,
  "updated": 1441239877000,
  "url": "http://62515.hs-sites.com/my-api-demo-page-slug",
  "widget_containers": {},
  "widgetcontainers": {},
  "widgets": {}
}

パスパラメータ

page_id
string
必須

The unique identifier for the page

レスポンス

200 - application/json

Successful response

The response is of type object.

最終更新日 2026年4月10日