How to find gameObject Types at a specified vector location?

Basically, I’m creating a 2D game, that checks if a specific object type exists at a particular x and y location. I have more than one object that lies on that axis, so I want to know what exists at that location. Is there a function to obtain the gameObject type?

I have implemented tags for the different type of objects, but is there a function that checks if a specific tag type exists at that location?

If those objects have a 2d collider attached you can simply use Physics2D.OverlapCircleAll or Physics2D.OverlapCircleNonAlloc. Both will give you all objects in a certain radius around a specific point.

For 3d colliders you can use Physics.OverlapSphere.