Thank you for the biblical question on Acts 12:21–23, “Which king was struck down by an angel of the Lord and eaten by worms before he died, because he did not give praise to God (Acts 12:21-23)?”
For your consideration, the descendants of King Herod who was the king who attempted to kill the infant Jesus in Matthew 2 who lived from 37–4 BCE. One of the descendants of Herod is listed in the same passage.
The text says this, “But when Herod died, behold, an angel of the Lord *appeared in a dream to Joseph in Egypt, and said, 20 “Get up, take the Child and His mother, and go into the land of Israel; for those who sought the Child’s life are dead.” 21 So Joseph got up, took the Child and His mother, and came into the land of Israel. 22 But when he heard that Archelaus was reigning over Judea in place of his father Herod, he was afraid to go there. Then after being warned by God in a dream, he left for the regions of Galilee, 23 and came and lived in a city called Nazareth. This was to fulfill what was spoken through the prophets: “He shall be called a Nazarene” (NIV).
Historians have traced the genealogy of King Herod. The proposed lineage is as follows by Bible Archaeology:
Thus historians consider the Herod mention in Acts 12 refers King Herod Agrippa I. There is some debate on descendant of King Herod’s son or grandsons who died for his arrogance.
SUMMARY: The King Herod refers to in Acts 12 is the grandson of King Herod through his wife, Mariamne I.