fzf is a Unix filter program that reads input from standard input and writes selected items to standard output. In order not to taint the standard output stream, it displays the finder to standard error. Having that in mind, you can easily integrate fzf into your programs. Here are a few examples. Feel free to add more examples for different programming languages.
Ruby
(source: https://junegunn.kr/2016/02/using-fzf-in-your-program)
We write with_filter function that takes fzf command as the first argument and a block which produces the input to the command, and returns the selected entries as an array.
The function is generic in the sense you can use it with any other external interactive/non-interactive filters, e.g. fzf-tmux or grep 123.
Clojure
You might have noticed a reference to /dev/tty which makes the code not portable across different platforms.
Go