CommentInput is a JSON Structure definition published by WordPress, describing 5 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.
{
"$schema": "https://json-structure.org/meta/core/v0/#",
"$id": "https://raw.githubusercontent.com/api-evangelist/wordpress/refs/heads/main/json-structure/wordpress-comment-input-structure.json",
"name": "CommentInput",
"description": "Input schema for creating a comment",
"type": "object",
"properties": {
"post": {
"type": "int32",
"description": "The ID of the associated post",
"example": 123
},
"parent": {
"type": "int32",
"description": "The ID for the parent of the comment",
"example": 0
},
"author_name": {
"type": "string",
"description": "Display name for the comment author",
"example": "Jane Smith"
},
"author_email": {
"type": "string",
"format": "email",
"description": "Email for the comment author",
"example": "jane@example.com"
},
"content": {
"type": "string",
"description": "The content for the comment",
"example": "Thanks for sharing!"
}
},
"required": [
"post",
"content"
]
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.