By looking up the carrier you can then find the right company to complain to via their reporting process, if they have one. And additionally you can file a report to the FTC and FCC that mentions them.
EDIT: The idea is that you complain to the company whose platform is sending you spam, the regulatory agencies at https://consumercomplaints.fcc.gov/ and https://reportfraud.ftc.gov/, your own cell phone carrier by forwarding text spam to 7726, and that will result in actions that hopefully will address that one situation but also collectively reduce spam for everyone. Without identifying which platform sent you the spam, you cannot know which company to go complain to (they usually have a reporting tool on their website). And you can name them in your complaints to the FCC and FTC.
Iām assuming that you search for the originating phone number of spam callers? It was unclear to me from context how this would help in the manner you suggested, for blocking or reducing spam calls.