Can you query or get current OSPF neighbors' existing state, via API or some other method, specifically for Cisco devices?
Many vendors have an an OSPF mib with an object that can be polled to get the required data. Cisco does not, but OspfNbrState is available in MIB-2 and can be used instead. This is unmapped out of the box in Spectrum so will need to be mapped from mib tools.
Once it has been mapped it should be available on Cisco models in Spectrum, as a custom attribute from the attribute table or via CLI etc
e.g from REST use a simple get query
https://<hostname><:portnumber>/spectrum/restful/model/0x#####?attr=0x<custom att>