DevHub API Documentation
  • Introduction
  • Authentication
  • Errors
  • Getting started guides
    • Business-focused Sites
    • Location-focused Sites
    • Location pages and store locator with custom theme
    • Site publishing with site builder access
  • Code examples
    • Python
    • PHP
    • Perl
  • Best practices
    • Our unique IDs, versus yours
    • State and country codes
  • Core Resources
    • Sites
    • Businesses
    • Locations
    • Domains
    • Proxies
  • Content Resources
    • Pages
    • Content
    • Images
    • Files
    • Modules
    • Plugins
    • Themes
  • Logging and analytics
    • Analytics
    • Contact Logs
  • Single Sign On (SSO)
    • Introduction
    • Assigning a site's user
  • Live Preview API
    • What is the Live Preview API?
  • Advanced
    • Domain aliases
    • Language codes
    • Projects
    • Site Check
    • Traces
    • Webmail
  • Local Storage API
    • What is the Local Storage API?
  • Headless CMS
    • Locations search
  • Visitor Localization SDK
    • Visitor Localization SDK
Powered by GitBook
On this page
  • List content objects
  • Parameters
  • Response

Was this helpful?

  1. Content Resources

Content

PreviousPagesNextImages

Last updated 6 years ago

Was this helpful?

Covered in this doc:

List content objects

List all content modules ever created within a Site

GET /api/v2/content/?site_id=12345

Parameters

Name

Type

Description

site_id

string

required ID of the Site you want to get the content object for

Response

{
  "meta": {
    "limit": 20,
    "next": "/api/v2/content/?limit=20&offset=20",
    "offset": 0,
    "previous": null,
    "total_count": 5
  },
  "objects": [
    {
      "added": "2012-06-01T09:28:46",
      "content": "<p>Here is the content of the module</p>",
      "content_clean": "<p>Here is the content of the module that has been cleaned up using various HTML filters to avoid unclosed tags and attributes</p>",
      "id": 328269,
      "modified": "2012-06-01T09:28:46",
      "resource_uri": "/api/v2/content/328269/",
      "site_id": 12345,
      "user_id": 54321
    },
    {
      "added": "2012-06-01T09:28:46",
      "content": "<p>Here is the content of the module</p>",
      "content_clean": "<p>Here is the content of the module that has been cleaned up using various HTML filters to avoid unclosed tags and attributes</p>",
      "id": 328270,
      "modified": "2012-06-01T09:28:46",
      "resource_uri": "/api/v2/content/328270/",
      "site_id": 12345,
      "user_id": 54321
    },
    ...
  ]
}
List content objects