data api entries get - movabletype/Documentation GitHub Wiki

Entries: get

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.

Request

HTTP Request

This method accepts GET only.

GET https://your-host/your-mt-api.cgi/v1/sites/{blog_id}/entries/{entry_id}

Parameters

Method Parameters

Parameter Type Description
blog_id unsigned integer The blog ID.
entry_id unsigned integer The entry ID.

Query Parameters

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.

Request Body

Do not supply a request body.

Response

If successful, this method will return an Entries resource as the response body.

Status Code

Code Description
200 no error
403 Do not have permission to retrieve the requested entry.
404 Entry (or site) not found
⚠️ **GitHub.com Fallback** ⚠️