How can we use EMPTY and NULL filters inside an api search link?

Hello all,
how can we use the empty and null filters in an api link? I can see it in the API documents. I tried to do something like the following: &filter=attributeInstanceID:empty but it didn’t work.