When using the Get Device Neighbors by Topology Type API I can request L2 or L3 neighbours from a device. The L3 result looks the same in format just providing L3 neighbours instead of L2, naturally.
For L2, I get a result that looks like this
{'neighbors': [{'hostname': 'R4', 'interface': 'Ethernet0/1 123.10.1.1/30'},.....
What you will immediately realize is that it is a simple JSON list giving neighbouring hostname and its interface.What you will not get is the interface on the queried switch to which the neighbours are connected. This L2 information would be very usefull and even for L3 it would be interesting if the local L3 interface were provided.
