Marketpath CMS provides a Live site API that allows published content to be pulled and distributed to other channels and platforms. At this time, the Live API returns only JSON results and there is no authentication required.
Live API calls are simple GET actions. Here is the standard format:
http(s)://<domain>/mputils/<SiteGUID>/api/json/<object_type>/<ObjectGUID | "collection">?<filters...>
In this example, we'll query for a list of datastore items from a sample datastore of vacation destinations:
In this example we query for a list of articles with the tag "Examples":
Here we retrieve a specific snippet:
article
author
blog
blog_post
calendar
calendar_entry
datastore
datastore_item
document
entity
folder
form
gallery
image
javascript
menu
snippet
stylesheet
tag
template
has_url | values: true | false |
start_date |
values: date |
end_date |
values: date |
template_guid(s) | |
template(s) | |
include_in_search | values: true | false |
ssl_mode | values: "none" | "allow" | "require" none = http only allow = either require = https only |
tag_guid(s) | |
tag(s) | |
author_guid(s) | |
author(s) | |
folder_guid(s) | |
folder(s) | |
sort_by | value: text miscellaneous fields of the specific object type (e.g. title, url, name, random, browser_title, date_created, etc) |
sort_direction | values: "asc" | "desc" |
limit | value: number The number of results to return in the query |
start | value: number The starting row number of the query results |
page | value: number The results page to return |