How to get multiple questions IframeUrl at one time

Hello can i get multiple question's iframeUrl by passing multiple question id ? is it possible without creating dashboard??

payload = {
  "resource": {"question": 1},
  "params": {
    
  },
  "exp": round(time.time()) + (60 * 10) # 10 minute expiration
}
token = jwt.encode(payload, METABASE_SECRET_KEY, algorithm="HS256")

iframeUrl = METABASE_SITE_URL + "/embed/question/" + token + "#bordered=true&titled=true"

Thanks

Hi @mahmudul5809
You would have to generate multiple tokens, since each would be in it's own iframe.
In other words, no, it's only possible with a dashboard if it needs to be in the same iframe.

Thanks , No it does not need to be in the same iframe . So need to generate multiple token with different question id. I can not pass list of question ids in payload .???

Thanks .

@mahmudul5809 No, you need to create multiple payloads.

Hello , so like this way

payload_top_sell = {
    "resource": {"question": 1},
    "params": {},
    "exp": round(time.time()) + (60 * 10)
}
top_sell_token = jwt.encode(payload_to_sell, METABASE_SECRET_KEY, algorithm="HS256")
iframeUrlTopSell = METABASE_SITE_URL + "/embed/question/" + top_sell_token + "#bordered=true&titled=true"



payload_test = {
    "resource": {"question": 5},
    "params": {},
    "exp": round(time.time()) + (60 * 10)
}
test_token = jwt.encode(payload_to_sell, METABASE_SECRET_KEY, algorithm="HS256") 
testUrl = METABASE_SITE_URL + "/embed/question/" + test_token + "#bordered=true&titled=true"

Thanks