Get Block
How to obtain a specific block.
Request
Response
GET https://mburger.cloud/api/blocks/<id>
1
curl https://mburger.cloud/api/blocks/<id>?locale=en
2
-H "Accept: application/json"
3
-H "X-MBurger-Token: <token>"
4
-H "X-MBurger-Version: 3"
Copied!

URL Parameters

Name
Type
Required
Description
id
int
Yes
Block id.

Parameters

Name
Type
Required
Description
locale
string
No
For multilanguage projects specify the desired locale for elements values. If locale is not provided or found the project fallback will be used.
include
string
No
Specify which relations to load and include in response.
image_format
string
No
Specify which image dimension to include in response. Values are thumb, medium, large and original. Default is medium.
force_locale_fallback
boolean
No
If true and the requested locale is empty, the fallback locale is returned. Default false.

Includes

Name
Description
sections
This relation will include all sections of each block. You can also send sections.elements to also obtain all the elements of every section in a single API call. Note that this will impact the performance.
structure
This relation will include all elements that define the structure of block.
When successful, a HTTP 200 and JSON like this is returned:
1
{
2
"status_code": 0,
3
"body": {
4
"id": 1,
5
"order": 1,
6
"title": "Home",
7
"subtitle": null,
8
"url_title": "home",
9
"is_single": false
10
}
11
}
Copied!
Last modified 1yr ago
Copy link