Ethernet Shield

Hello everyone, I'm wondering if the Ethernet Shield W5100 and the Ethernet Shield 2(W5500) both work with the arduino's ethernet library
ty

for the Ethernet Shield 2 is library Ethernet2. API is the same
link