Somewhat. https://octopart.com/ (I'm a hardware guy so take my SWE-speak with a grain of salt)
Like many things in tech, each manufacturer/vendor/distributor does not have the same "API" (if it even exists) to broadcast their stock status.
Here's some links to parts that have been a pain in my side. We have to result to hoarding brokers with 1000x markups to continue production (not my call, I'm the guy with the oscilloscope not the suit...).