> 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/sections/get-a-single-section.md).

# Get a single Section

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

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

{% endtab %}

{% tab title="iOS SDK" %}

```swift
MBClient.getSection(withId: SECTION_ID,
                    elements: true,
                    success: { section in
                                
                    },
                    failure: { error in
                                
                    })
```

{% endtab %}

{% tab title="Android SDK" %}

```kotlin
val sectionListener = object: MBSectionResultListener {
            override fun onSectionApiError(error: String) {
            }

            override fun onSectionApiResult(section: MBSection, 
                                            section_id: Long) {
            }
        }
        
MBurgerTasks.askForSection(context = applicationContext, 
                         section_id = SECTION_ID,
                         getElements = true,
                         listener = sectionListener)
```

{% endtab %}

{% tab title="PHP SDK" %}

```php
$response = (new MBurger())->getSection($section_id_or_slug);
```

{% endtab %}

{% tab title="JS SDK" %}

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

const instance = mburger.createClient({
    api_key: "12578sdfghjkl",
});

instance.getSection({
    section_id: 8026
}).then(result => console.log(result));
```

{% endtab %}

{% tab title="Flutter SDK" %}

```dart
MBSection section = await MBManager.shared.getSection(
  sectionId: SECTION_ID,
  includeElements: true,
);
```

{% endtab %}
{% endtabs %}
