Append ID to API Call

I’m trying to make an NFT marketplace (just for fun, nothing official) and I’m trying to append an ID to the end of an API before calling it and then using the response data on screen.

Here is the address and I need to pull ID from the database in Bubble, append it to the address and then pull things like image url and asset name from it.

https://api.x.immutable.com/v1/assets/0xac98d8d1bb27a94e79fbf49198210240688bb1ed/{ID}

I have the Bubble API plugin but I’m not sure how to make it so I can append the ID rather than a parameter pair. I tried submitting a manual response that I got from another tool with a call that included an ID but that doesn’t seem to be what I want.

Any guidance would be great!

Just use square brackets [] for the dynamic data (i.e. the ID)

https://api.x.immutable.com/v1/assets/0xac98d8d1bb27a94e79fbf49198210240688bb1ed/[ID]

Mane sure to uncheck the ‘private’ option so you can set it in your workflows or datasource

Perfect, thank you!

1 Like