deal api