# Work in Progress: How to fetch job offers from Lever’s API

* Add an Option Buttons component
* Create a new computed field
* Add the following code:

```jsx
function result() {
    return fetch(`https://savvy-api-proxy.heysavvy.workers.dev/?url=${encodeURIComponent('<https://api.lever.co/v1/postings>')}`, {
      headers: {
        Authorization: "Basic API KEY" //replace with the API key
      }})
      .then(res => res.json())
      .then(json => {return json.data.filter(job => job.state == "published").map(j => ({ key: j.id, text: j.text, description: j.categories.team, url: j.urls.show, triggerEvent: 'open-url' }))})
  }
```

* Select the Option Buttons and go to More Options
* Open the Advanced dropdown and in the **OPTIONAL - BUTTON REPEATER KEY** select the computed field that fetches the options
