> For the complete documentation index, see [llms.txt](https://docs.mburger.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mburger.cloud/how-to/basic-interactions/blocks/get-a-single-block.md).

# Get a Single Block

{% tabs %}
{% tab title="cURL" %}

```bash
curl https://mburger.cloud/api/blocks/<id>
-H "Accept: application/json" 
-H "X-MBurger-Token: <token>" 
-H "X-MBurger-Version: 3"
```

{% endtab %}

{% tab title="iOS SDK" %}

```swift
MBClient.getBlock(withId: BLOCK_ID,
                  success: { block in
                            
                  }, 
                  failure: { error in
                            
                  })
```

{% endtab %}

{% tab title="Android SDK" %}

```kotlin
val blockListener = object: MBBlockResultListener{
            override fun onBlockApiError(error: String) {
            }

            override fun onBlockApiResult(block: MBBlock) {
            }
        }
        
MBurgerTasks.askForBlock(context = applicationContext, 
                         block_id = BLOCK_ID,
                         getSections = true,
                         listener = blockListener)
```

{% endtab %}

{% tab title="PHP SDK" %}

```php
$response = (new MBurger())->getBlock($block_id);
```

{% endtab %}

{% tab title="JS SDK" %}

```javascript
const mburger = require('mburger');

const instance = mburger.createClient({
    api_key: "123456789asdfghjkl",
});

instance.getBlock({
    block_id: 798,
    locale: 'it',
    original_media: false
}).then(result => console.log(result));

```

{% endtab %}

{% tab title="Flutter SDK" %}

```dart
MBBlock block = await MBManager.shared.getBlock(blockId: BLOCK_ID);
```

{% endtab %}
{% endtabs %}
