How to get the content of a dynamic block in PHP

I’m just gonna pass the information generated from apiFetch as attributes to the PHP file, thus eliminating the need to do the whole get_terms() loop..

tech