> For the complete documentation index, see [llms.txt](https://docs.trysavvy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trysavvy.com/other-useful-docs/work-in-progress/pending/work-in-progress-how-to-fetch-job-offers-from-levers-api.md).

# 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
