During search the clipboard api in gnome. Only find clipboard api in gtk3. it seems that the clipboard api was removed from gtk4.
Yes it has been removed. The lack of documentation seems to be an oversight: this really should be mentioned in the Migration section...
You may be able to use the GDK clipboard API instead: https://developer.gnome.org/gdk4/stable/gdk4-Clipboards.html