You can expose XF as json and use the content in your third party applications.
Make sure you take care of CORS and all.
I you want to expose XF as HTML then expose using content selector. (e.g. /content/ex..../expereince-fragment-1/master.content.html)
Thanks Arun, how to export as a json and use in third party applications.
Could you please let me know what are steps needs to be done to export the XF info as JSON and use in third party applications.
Experience Fragments (short: XF) in AEM are a great way to reuse your content at various places, being it inside of AEM or on other channels. See also here for a high level overview. XF are usually meant to be consumed as rendered HTML for external applications/channels, see also the Plain HTML rendition.
If you want to expose rendered HTML to a 3rd party application, XF is the right option.
If you are looking to expose content as structured data, please refer to Content Fragments (short: CF) instead.
Hope that helps!
Please refer to following links:
Both the links contain code-snippets with use-cases on how you can export XF to external applications
@AjayBoddu Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.