data api blogs get - movabletype/Documentation GitHub Wiki

Blogs: get

Retrieve a single blog by its ID.

Request

HTTP Request

This method accepts GET only.

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

Parameters

Method Parameters

Parameter Type Description
blog_id unsigned integer The blog ID.

Query Parameters

Parameter Type Description
fields string This is an optional parameter. The field list to retrieve as part of the Entries resource. 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 Blogs resource as the response body.

Status Code

Code Description
200 no error
404 Site not found

Example

GET /mt-api.cgi/sites/1
Host: www.example.com

HTTP/1.0 200 OK
Content-Type: application/json
Content-length: ...
⚠️ **GitHub.com Fallback** ⚠️