メインコンテンツへスキップ
GET
/
content
/
api
/
v2
/
pages
List pages
curl --request GET \
  --url https://api.hubapi.com/content/api/v2/pages
import requests

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

response = requests.get(url)

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

fetch('https://api.hubapi.com/content/api/v2/pages', 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",
  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"

	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")
  .asString();
require 'uri'
require 'net/http'

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

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
{
  "total_count": 188,
  "objects": [
    {
      "ab_status": null,
      "ab_test_id": null,
      "analytics_page_id": "3736193859",
      "archived": false,
      "attached_stylesheets": [],
      "author_user_id": 215482,
      "blueprint_type_id": 0,
      "campaign": null,
      "campaign_name": null,
      "cloned_from": null,
      "compose_body": null,
      "created": 1453270510000,
      "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": 1453270510000,
      "has_smart_content": false,
      "has_user_changes": true,
      "head_html": "",
      "html_title": null,
      "id": 3736193859,
      "include_default_custom_css": null,
      "is_draft": true,
      "keywords": [],
      "language": null,
      "last_edit_session_id": null,
      "last_edit_update_id": null,
      "legacy_blog_tabid": null,
      "meta_description": null,
      "meta_keywords": null,
      "name": "iverson create contact",
      "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": 0,
      "publish_immediately": null,
      "published_url": null,
      "rss_email_author_line_template": false,
      "rss_email_blog_image_max_width": null,
      "rss_email_by_text": "By",
      "rss_email_click_through_text": "Read more »",
      "rss_email_comment_text": "Comment »",
      "rss_email_entry_template": null,
      "rss_email_entry_template_enabled": false,
      "rss_email_image_max_width": 0,
      "scheduled_update_date": null,
      "slug": "-temporary-slug-87a2e45a-81ca-4a4d-9bf5-edd2cfbbd001",
      "staged_from": null,
      "style_override_id": null,
      "subcategory": "landing_page",
      "template_path": "custom/page/examples/simple-template.html",
      "tms_id": null,
      "translated_from_id": null,
      "unpublished_at": null,
      "updated": 1453270510000,
      "url": "http://62515.hs-sites.com/-temporary-slug-87a2e45a-81ca-4a4d-9bf5-edd2cfbbd001",
      "widget_containers": {},
      "widgetcontainers": {},
      "widgets": {}
    }
  ],
  "limit": 1,
  "offset": 0
}

クエリパラメータ

limit
integer

The number of items to return. Defaults to 20.

offset
integer

Used to get the next set of results.

レスポンス

200 - application/json

Successful response

The response is of type object.

最終更新日 2026年4月10日