Getting the WebID from a AF path

is there an easy way to get the WebID using the path for the attributes in AF?

I need to poll close to 3000 attributes and kinda hard to do it manually.

Thanks