Revert "api script"

This reverts commit 3b1b75d6aa9e312738124b892a80d4c2d205bc1f.
Revert "Revert "api script""

This reverts commit 7c8cc7d2af76c583128ca337fa9fa7a3e6632dec.