Skip to content

Use Environment Variables in Filter

Using jq arg

PAGER_OFFSET=20
curl -X "GET" "https://someapi.com" | jq --arg PAGER_OFFSET "$PAGER_OFFSET" '.items += [{"uid": "spotify:pager", "title": "spotify:next", "arg": "spotify:pager:20", "subtitle":("results from next page, current offset: "+ $PAGER_OFFSET)}]'