data api entries get - movabletype/Documentation GitHub Wiki
Retrieve a single entry by its ID.
Authorization is required if the entry status is "unpublished". If the entry status is "published", then this method can be called without authorization.
This method accepts GET only.
GET https://your-host/your-mt-api.cgi/v1/sites/{blog_id}/entries/{entry_id}
Parameter | Type | Description |
---|---|---|
blog_id | unsigned integer | The blog ID. |
entry_id | unsigned integer | The entry ID. |
Parameter | Type | Description |
---|---|---|
maxComments | unsigned integer | This is an optional parameter. Maximum number of comments to retrieve as part of the Entries resource. If this parameter is not supplied, no comments will be returned. |
maxTrackbacks | unsigned integer | This is an optional parameter. Maximum number of received trackbacks to retrieve as part of the Entries resource. If this parameter is not supplied, no trackbacks will be returned. |
fields | string | This is an optional parameter. The field list to retrieve as part of the Entries resource. That list should be separated by commma. If this parameter is not specified, All fields will be returned. |
Do not supply a request body.
If successful, this method will return an Entries resource as the response body.
Code | Description |
---|---|
200 | no error |
403 | Do not have permission to retrieve the requested entry. |
404 | Entry (or site) not found |