Hi @brotsky_pixie
You can export field group from “Custom Fields > Tools” (PRO version) or “Custom Fields > Export” (Free version).
Also, could you please share the full code of your current code (including the first code) here: https://gist.github.com/?
Thanks 🙂