Subscribe form on a 3rd party website

Hi all,

I’m using the content API to get my blogs on another page of mine, which has been working great, but I now I would like to add a subscribe from on that page and I can’t seem to find a way to add a form on my own page. Is this possible? Or is subscribing to a blog only possible when I visit a page directly served from a Ghost serve?

Would it even be possible to have a widget that could be embedded similar to the one MailChimp offers?

Thanks and keep up the great work!!

1 Like

I want to do a similar thing but didn’t find a way yet.

Hey guys, I’ve been working on something similar that I think would work for what you’re trying to do.

I’ve been working on converting a theme I made for Ghost to headless using the Content API and Gatsby. Here’s the Github and the Demo.

You can add new subscribers with the Admin API, but it isn’t in the documentation yet. I figured it out by reading the Admin API docs and then some trial and error on the members endpoints by looking at this Github repo for the admin API client.

I then used a serverless function in Netlify to make the actual call to the Admin API to avoid exposing my Admin API key. The code for that function should give you a pretty good idea of how it all works.

Let me know if that’s useful - I was thinking of writing up a quick blog post on it sometime soon.