Built-in tool
Read WordPress Post or Page
Read one post or page of a connected WordPress website: its text, address, status, categories and SEO title and meta description.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| idnumber · optional | number | optional | The post or page id, from wordpress-list-content. Give id or url. |
| urlstring · optional | string | optional | The public address of the post or page on the connected site, for example https://example.com/pricing/. Give id or url. |
| sitestring · optional | string | optional | Which connected WordPress site, when several are connected: its address (example.com), its name or its account id. Leave out when only one is connected. |
| typestring · optional | string | optional | post or page. Required with id; with url it narrows the search and may be left out. One of: |
Response schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"site",
"content"
],
"properties": {
"site": {
"type": "object",
"required": [
"name",
"url"
],
"properties": {
"url": {
"type": "string"
},
"name": {
"type": "string"
}
},
"additionalProperties": false
},
"content": {
"type": "object",
"required": [
"id",
"type",
"status",
"title",
"slug",
"url",
"editUrl",
"date",
"modified",
"content",
"contentIsSource",
"excerpt",
"categories",
"tags",
"featuredMediaId",
"parentId",
"seo",
"revisions"
],
"properties": {
"id": {
"type": "number"
},
"seo": {
"type": "object",
"required": [
"plugin",
"pluginName",
"title",
"description",
"readable"
],
"properties": {
"title": {
"type": [
"string",
"null"
]
},
"plugin": {
"enum": [
"yoast",
"rankmath",
"aioseo",
"seopress",
"none"
],
"type": "string"
},
"readable": {
"type": "boolean"
},
"pluginName": {
"type": "string"
},
"description": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"url": {
"type": "string"
},
"date": {
"type": [
"string",
"null"
]
},
"slug": {
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"type": {
"enum": [
"post",
"page"
],
"type": "string"
},
"title": {
"type": "string"
},
"status": {
"type": "string"
},
"content": {
"type": "string"
},
"editUrl": {
"type": "string"
},
"excerpt": {
"type": "string"
},
"modified": {
"type": [
"string",
"null"
]
},
"parentId": {
"type": [
"number",
"null"
]
},
"revisions": {
"type": [
"number",
"null"
]
},
"categories": {
"type": "array",
"items": {
"type": "string"
}
},
"contentIsSource": {
"type": "boolean"
},
"featuredMediaId": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}