# Select field, api options format

**URL:** <https://forum.getkirby.com/t/select-field-api-options-format/25865>\
**Category:** Questions\
**Tags:** v3\
**Created:** [June 30, 2022, 8:19am UTC](https://forum.getkirby.com/t/select-field-api-options-format/25865 "2022-06-30T08:19:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxc86](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/maxc86/32/10798_2.png) [@maxc86](https://forum.getkirby.com/u/maxc86)\
**Post date:** [June 30, 2022, 8:19am UTC](https://forum.getkirby.com/t/select-field-api-options-format/25865/1 "2022-06-30T08:19:36Z")

</div>

Hi everyone,

By reading the doc here: [https://getkirby.com/docs/reference/panel/fields/select#options-via-api](https://getkirby.com/docs/reference/panel/fields/select#options-via-api)

The api endpoint should return an array

> as shown above in the manual option setting

But there is no such array example.  
Can someone shows me what should like a json response to fit the options, because my json array gives me an error :

```auto
[
2020,
2021,
2022,
2023,
2024
]

```
