CMS Tool API schema
Public API version 1.4.60.
SEO
The search engine side of the website for a user with the SEO permission: the titles, descriptions, keywords, meta tags and SEO filenames (web addresses) of products, categories, pages, blogs and directory listings and classifications, and the URL redirects. Nothing else of those records can be read or changed here: no prices, stock, variants or settings.
Endpoint URL
https://api.cms-tool.net/api/seo
/api/seo
List the SEO record types with the fields that can be read and changed. Needs the seo:read scope.
GET
List the SEO record types with the fields that can be read and changed. Needs the seo:read scope.
/api/seo/products
Read and update the SEO fields of products: titles, descriptions, keywords, meta tags and the SEO filename (the web address).
GET
List products with their read-only fields (p_code, page), SEO fields and web address (path and url), or retrieve one by appending its ID to the path. Variants and blocked products are never included. Needs the seo:read scope.
Query parameters
| Name | Type | Example | Notes |
|---|---|---|---|
id | int | 123 | Filter results by id. |
page | int | 123 | Filter results by page. |
keywords | text | example | Filter results by keywords. |
filename | text | blue-widget | Filter results by filename. |
missingMetaTitle | boolean | true | Filter results to records with no meta title. Accepts true or 1. |
missingMetaDescription | boolean | true | Filter results to records with no meta description. Accepts true or 1. |
missingFilename | boolean | true | Filter results to records with no SEO filename, whose address is their ID. Accepts true or 1. |
unoptimised | boolean | true | Filter results to records that are not optimised at all: nothing in the SEO filename, meta title, meta description or keywords. Accepts true or 1. |
offset | int | 123 | Skip this many matching records before returning results. |
pageSize | int | 123 | Limit the number of records returned; accepted values are 1 through 999, with 200 used otherwise. |
POST
Change the SEO fields of an existing record (nothing is created or deleted, and no other field can be changed). A changed p_filename changes the web address: the old address redirects to the new one unless redirectOldUrl is false. Needs the seo:write scope and the seo permission.
Request content type: application/json
Request body fields
| Name | Type | Example | Notes |
|---|---|---|---|
id | int | 123 | Set the id value. |
p_title | text | example | Set the p title value. |
p_subtitle | text | example | Set the p subtitle value. |
p_details | text | example | Set the p details value. |
p_metatitle | text | example | Set the p metatitle value. |
p_metadesc | text | example | Set the p metadesc value. |
p_metakeywords | text | example | Set the p metakeywords value. |
p_meta_tags | text | example | Set the p meta tags value. |
p_ld_json | text | example | Set the p ld json value. |
p_filename | text | blue-widget | Set the p filename value. |
redirectOldUrl | boolean | true | When the SEO filename changes, redirect the old address to the new one. True unless false is given. Accepts true or 1. |
/api/seo/categories
Read and update the SEO fields of categories: titles, descriptions, keywords, meta tags and the SEO filename (the web address).
GET
List categories with their read-only fields (group_code, page, group_parent), SEO fields and web address (path and url), or retrieve one by appending its ID to the path. Needs the seo:read scope.
Query parameters
| Name | Type | Example | Notes |
|---|---|---|---|
id | int | 123 | Filter results by id. |
page | int | 123 | Filter results by page. |
keywords | text | example | Filter results by keywords. |
filename | text | blue-widget | Filter results by filename. |
missingMetaTitle | boolean | true | Filter results to records with no meta title. Accepts true or 1. |
missingMetaDescription | boolean | true | Filter results to records with no meta description. Accepts true or 1. |
missingFilename | boolean | true | Filter results to records with no SEO filename, whose address is their ID. Accepts true or 1. |
unoptimised | boolean | true | Filter results to records that are not optimised at all: nothing in the SEO filename, meta title, meta description or keywords. Accepts true or 1. |
offset | int | 123 | Skip this many matching records before returning results. |
pageSize | int | 123 | Limit the number of records returned; accepted values are 1 through 999, with 200 used otherwise. |
POST
Change the SEO fields of an existing record (nothing is created or deleted, and no other field can be changed). A changed group_filename changes the web address: the old address redirects to the new one unless redirectOldUrl is false. Needs the seo:write scope and the seo permission.
Request content type: application/json
Request body fields
| Name | Type | Example | Notes |
|---|---|---|---|
id | int | 123 | Set the id value. |
group_name | text | example | Set the group name value. |
group_subtitle | text | example | Set the group subtitle value. |
group_desc | text | example | Set the group desc value. |
group_metatitle | text | example | Set the group metatitle value. |
group_metadesc | text | example | Set the group metadesc value. |
group_keywords | text | example | Set the group keywords value. |
group_filename | text | blue-widget | Set the group filename value. |
redirectOldUrl | boolean | true | When the SEO filename changes, redirect the old address to the new one. True unless false is given. Accepts true or 1. |
/api/seo/pages
Read and update the SEO fields of pages: titles, descriptions, keywords, meta tags and the SEO filename (the web address).
GET
List pages with their read-only fields (wgt_id, page_parent), SEO fields and web address (path and url), or retrieve one by appending its ID to the path. Needs the seo:read scope.
Query parameters
| Name | Type | Example | Notes |
|---|---|---|---|
id | int | 123 | Filter results by id. |
page | int | 123 | Filter results by page. |
keywords | text | example | Filter results by keywords. |
filename | text | blue-widget | Filter results by filename. |
missingMetaTitle | boolean | true | Filter results to records with no meta title. Accepts true or 1. |
missingMetaDescription | boolean | true | Filter results to records with no meta description. Accepts true or 1. |
missingFilename | boolean | true | Filter results to records with no SEO filename, whose address is their ID. Accepts true or 1. |
unoptimised | boolean | true | Filter results to records that are not optimised at all: nothing in the SEO filename, meta title, meta description or keywords. Accepts true or 1. |
offset | int | 123 | Skip this many matching records before returning results. |
pageSize | int | 123 | Limit the number of records returned; accepted values are 1 through 999, with 200 used otherwise. |
POST
Change the SEO fields of an existing record (nothing is created or deleted, and no other field can be changed). A changed page_alias changes the web address: the old address redirects to the new one unless redirectOldUrl is false. Needs the seo:write scope and the seo permission.
Request content type: application/json
Request body fields
| Name | Type | Example | Notes |
|---|---|---|---|
id | int | 123 | Set the id value. |
page_usertitle | text | example | Set the page usertitle value. |
page_menuname | text | example | Set the page menuname value. |
page_metatitle | text | example | Set the page metatitle value. |
page_summary | text | example | Set the page summary value. |
page_submenu_desc | text | example | Set the page submenu desc value. |
page_keywords | text | example | Set the page keywords value. |
page_meta_tags | text | example | Set the page meta tags value. |
page_alias | text | blue-widget | Set the page alias value. |
redirectOldUrl | boolean | true | When the SEO filename changes, redirect the old address to the new one. True unless false is given. Accepts true or 1. |
/api/seo/blogs
Read and update the SEO fields of blogs: titles, descriptions, keywords, meta tags and the SEO filename (the web address).
GET
List blogs with their read-only fields (page), SEO fields and web address (path and url), or retrieve one by appending its ID to the path. Only blog items with a title are included. Needs the seo:read scope.
Query parameters
| Name | Type | Example | Notes |
|---|---|---|---|
id | int | 123 | Filter results by id. |
page | int | 123 | Filter results by page. |
keywords | text | example | Filter results by keywords. |
filename | text | blue-widget | Filter results by filename. |
missingMetaTitle | boolean | true | Filter results to records with no meta title. Accepts true or 1. |
missingMetaDescription | boolean | true | Filter results to records with no meta description. Accepts true or 1. |
missingFilename | boolean | true | Filter results to records with no SEO filename, whose address is their ID. Accepts true or 1. |
unoptimised | boolean | true | Filter results to records that are not optimised at all: nothing in the SEO filename, meta title, meta description or keywords. Accepts true or 1. |
offset | int | 123 | Skip this many matching records before returning results. |
pageSize | int | 123 | Limit the number of records returned; accepted values are 1 through 999, with 200 used otherwise. |
POST
Change the SEO fields of an existing record (nothing is created or deleted, and no other field can be changed). A changed info_filename changes the web address: the old address redirects to the new one unless redirectOldUrl is false. Needs the seo:write scope and the seo permission.
Request content type: application/json
Request body fields
| Name | Type | Example | Notes |
|---|---|---|---|
id | int | 123 | Set the id value. |
info_title | text | example | Set the info title value. |
info_summary | text | example | Set the info summary value. |
info_fulltext | text | example | Set the info fulltext value. |
info_metatitle | text | example | Set the info metatitle value. |
info_metadesc | text | example | Set the info metadesc value. |
info_metakeywords | text | example | Set the info metakeywords value. |
info_filename | text | blue-widget | Set the info filename value. |
redirectOldUrl | boolean | true | When the SEO filename changes, redirect the old address to the new one. True unless false is given. Accepts true or 1. |
/api/seo/directoryListings
Read and update the SEO fields of directoryListings: titles, descriptions, keywords, meta tags and the SEO filename (the web address).
GET
List directoryListings with their read-only fields (page, status), SEO fields and web address (path and url), or retrieve one by appending its ID to the path. Needs the seo:read scope.
Query parameters
| Name | Type | Example | Notes |
|---|---|---|---|
id | int | 123 | Filter results by id. |
page | int | 123 | Filter results by page. |
keywords | text | example | Filter results by keywords. |
filename | text | blue-widget | Filter results by filename. |
missingMetaTitle | boolean | true | Filter results to records with no meta title. Accepts true or 1. |
missingMetaDescription | boolean | true | Filter results to records with no meta description. Accepts true or 1. |
missingFilename | boolean | true | Filter results to records with no SEO filename, whose address is their ID. Accepts true or 1. |
unoptimised | boolean | true | Filter results to records that are not optimised at all: nothing in the SEO filename, meta title, meta description or keywords. Accepts true or 1. |
offset | int | 123 | Skip this many matching records before returning results. |
pageSize | int | 123 | Limit the number of records returned; accepted values are 1 through 999, with 200 used otherwise. |
POST
Change the SEO fields of an existing record (nothing is created or deleted, and no other field can be changed). A changed alphaid changes the web address: the old address redirects to the new one unless redirectOldUrl is false. Needs the seo:write scope and the seo permission.
Request content type: application/json
Request body fields
| Name | Type | Example | Notes |
|---|---|---|---|
id | int | 123 | Set the id value. |
name | text | example | Set the name value. |
brief | text | example | Short advert for the listing, shown in lists and search results. |
keywords | text | example | Set the keywords value. |
metatitle | text | example | Set the metatitle value. |
alphaid | text | bay-cafe | Unique SEO filename of the listing, used in its web address. Spaces become dashes. |
redirectOldUrl | boolean | true | When the SEO filename changes, redirect the old address to the new one. True unless false is given. Accepts true or 1. |
/api/seo/directoryClassifications
Read and update the SEO fields of directoryClassifications: titles, descriptions, keywords, meta tags and the SEO filename (the web address).
GET
List directoryClassifications with their read-only fields (page, parentid), SEO fields and web address (path and url), or retrieve one by appending its ID to the path. Needs the seo:read scope.
Query parameters
| Name | Type | Example | Notes |
|---|---|---|---|
id | int | 123 | Filter results by id. |
page | int | 123 | Filter results by page. |
keywords | text | example | Filter results by keywords. |
filename | text | blue-widget | Filter results by filename. |
missingMetaTitle | boolean | true | Filter results to records with no meta title. Accepts true or 1. |
missingMetaDescription | boolean | true | Filter results to records with no meta description. Accepts true or 1. |
missingFilename | boolean | true | Filter results to records with no SEO filename, whose address is their ID. Accepts true or 1. |
unoptimised | boolean | true | Filter results to records that are not optimised at all: nothing in the SEO filename, meta title, meta description or keywords. Accepts true or 1. |
offset | int | 123 | Skip this many matching records before returning results. |
pageSize | int | 123 | Limit the number of records returned; accepted values are 1 through 999, with 200 used otherwise. |
POST
Change the SEO fields of an existing record (nothing is created or deleted, and no other field can be changed). A changed classfilename changes the web address: the old address redirects to the new one unless redirectOldUrl is false. Needs the seo:write scope and the seo permission.
Request content type: application/json
Request body fields
| Name | Type | Example | Notes |
|---|---|---|---|
id | int | 123 | Set the id value. |
classname | text | example | Name of the classification. |
classsummary | text | example | Short description of the classification. |
classintro | text | example | Set the classintro value. |
classfilename | text | cafes-and-restaurants | SEO filename of the classification, used in its web address. Made from the name when not given. |
redirectOldUrl | boolean | true | When the SEO filename changes, redirect the old address to the new one. True unless false is given. Accepts true or 1. |
/api/seo/redirects
Read and update the website's URL redirects, which are published into its .htaccess.
GET
List the URL and country redirects, or retrieve one by appending its ID to the path. Needs the seo:read scope.
Query parameters
| Name | Type | Example | Notes |
|---|---|---|---|
redirect_type | text | example | Filter results by redirect type: URL or COUNTRY. |
keywords | text | example | Filter results by keywords. |
fromuri | text | example | Filter results to the redirect from this address. |
offset | int | 123 | Skip this many matching records before returning results. |
pageSize | int | 123 | Limit the number of records returned; accepted values are 1 through 999, with 200 used otherwise. |
POST
Add a redirect, or change the one with the same fromuri or id; delete true removes one; publishHtaccess true publishes the .htaccess now, as publishing the website does. Changes take effect on the live website when the .htaccess is published. Needs the seo:write scope and the seo permission.
Request content type: application/json
Request body fields
| Name | Type | Example | Notes |
|---|---|---|---|
id | int | 123 | Set the id value. |
fromuri | text | example | The address to redirect, starting with / (or a two letter country code for a country redirect). |
desturl | text | example | Where to send visitors: a full address, or a path on this website. |
redirect_type | text | example | URL (the default) or COUNTRY. |
delete | boolean | true | Set the delete value. Accepts true or 1. |
publishHtaccess | boolean | true | Publish the website's .htaccess now, with every redirect, as publishing the website does. Accepts true or 1. |
Data definitions
| Field | Type | Description | Format | Example |
|---|---|---|---|---|
group_metadesc | text | Category meta description. | ||
page_alias | text | Page SEO filename: its web address is /page/{alias}, or the alias itself when it starts with /. | ||
classsummary | text | Directory classification summary, used as its description. | ||
keywords | text | Directory listing keywords. As a filter: words in the title or meta title. | ||
page_meta_tags | text | Extra tags for the head of the page, such as Open Graph tags. | ||
page_parent | int | Parent page ID. Read only. | ||
page_submenu_desc | text | Short description shown in sub menus. | ||
page_menuname | text | Page name in the menu. | ||
group_subtitle | text | Category sub title. | ||
path | text | The record's web address on the website, from its SEO filename: /{type}/{filename}, the filename itself when it starts with /, or /{type}/{id} when it has none. Read only. | ||
fromuri | text | Redirects: the address to redirect, starting with / (for a country redirect, a two letter country code). | ||
metatitle | text | Directory listing title for search engines. | ||
p_meta_tags | text | Extra tags for the head of the product page, such as Open Graph tags. | ||
id | int | ID of the record (or of the redirect). | ||
group_filename | text | Category SEO filename: its web address is /category/{filename}. | ||
info_metadesc | text | Blog post meta description. | ||
alphaid | text | Directory listing SEO filename: its web address is /listing/{alphaid}. | ||
redirect_type | text | Redirects: URL (a 301 from an old address) or COUNTRY (visitors from a country). | ||
p_title | text | Product title, the product page's main heading. | ||
group_name | text | Category name, its page heading. | ||
p_details | text | Product details, the main description (HTML). | ||
p_metadesc | text | Product meta description for search engines. | ||
p_subtitle | text | Product sub title. | ||
p_ld_json | text | The product's own JSON-LD structured data (an object or array), used instead of the generated one. | ||
page_summary | text | Page meta description for search engines. | ||
group_desc | text | Category description (HTML). | ||
name | text | Directory listing name. | ||
page | int | Products, categories, blogs and directory records: the page they belong to. Read only. As a filter of pages, the parent page. | ||
group_keywords | text | Category meta keywords. | ||
page_usertitle | text | Page heading. | ||
status | int | Directory listing status. Read only. | ||
group_code | text | Category code. Read only. | ||
info_title | text | Blog post title. | ||
classintro | text | Directory classification introduction (HTML). | ||
page_metatitle | text | Page title for search engines. | ||
classfilename | text | Directory classification SEO filename: its web address is /directory/{filename}. | ||
p_filename | text | Product SEO filename: its web address is /product/{filename}. Changing it changes the address. | ||
parentid | int | Parent classification ID. Read only. | ||
p_metatitle | text | Product page title for search engines. | ||
p_code | text | Product code. Read only. | ||
info_filename | text | Blog post SEO filename: its web address is /blog/{filename}. | ||
desturl | text | Redirects: where visitors are sent, a full address. | ||
brief | text | Directory listing advert, shown in lists and used as its description. | ||
group_parent | int | Parent category ID. Read only. | ||
wgt_id | int | Page type. Read only. | ||
page_keywords | text | Page meta keywords. | ||
url | text | The record's full web address. Read only. | ||
group_metatitle | text | Category page title for search engines. | ||
info_metakeywords | text | Blog post meta keywords. | ||
info_summary | text | Blog post summary. | ||
classname | text | Directory classification name. | ||
p_metakeywords | text | Product meta keywords. | ||
info_fulltext | text | Blog post text (HTML). | ||
info_metatitle | text | Blog post title for search engines. |
Usage instructions and examples
Sample object
{"id": 1234, "p_code": "ABC-1", "page": 112137, "p_title": "Blue widget", "p_subtitle": null, "p_details": "<p>Our best selling widget.</p>", "p_metatitle": "Blue widgets | Example Store", "p_metadesc": "Strong, light blue widgets, shipped today.", "p_metakeywords": "blue widget", "p_meta_tags": null, "p_ld_json": null, "p_filename": "blue-widget", "path": "/product/blue-widget", "url": "https://www.example.com/product/blue-widget"}Machine-readable documentation
This documentation is also available as JSON or Markdown at the same URL. Request JSON with Accept: application/json or Markdown with Accept: text/markdown.