Sync version of api

At the beginning it was just an experiment but we can add this functionality to the library.

Benefits:
  * Simpler code.
  * Faster code.

//cc @dodev, @lemmy-
wasn't