Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

I'm looking for a way to embed a Stack Overflow answer into my blog, as I embed my JSfiddle into a blog.

Is there an API to embed Stack Overflow's answers or questions?

Edit: the JSfiddle syntaxe to embed a fiddle is as easy as the single line :

<iframe src=",js,html,css/" 
style="height: 300px; width: 100%;">

StackTack needs 12 lines of code.

share|improve this question

migrated from Apr 1 '13 at 19:57

This question came from our site for professional and enthusiast programmers.

Embedded I don't know but: – cheesemacfly Apr 1 '13 at 18:20
Even better:… – cheesemacfly Apr 1 '13 at 18:22

Just use StackTack, which is the highest upvoted application on Looks like there's also a WordPress plugin for it (assuming you use WordPress).

Here is a screenshot of it in action:


Edit: Looks like someone in the comments cheesemacfly beat me to it.

share|improve this answer
What if we no use WordPrez – Cole Johnson Apr 1 '13 at 21:57
@ColeJohnson Then use the Javascript thing. I was saying there's also a WordPress plugin for it. – Piccolo Apr 1 '13 at 21:58
Whoops. Didn't read fully... – Cole Johnson Apr 1 '13 at 22:00
Am I wrong or it needs 12 lines of code ? Not really a shortcut. – Hugolpz Apr 2 '13 at 22:16
You are wrong. You already have a head part of your code, may or may not already use jQuery (if you do, you don't need that line), and you already have a <body> All you need to do is add this to your <head>: <script src=""></script><script>$(docume‌​nt).ready(function(){$(document).stacktack();});</script> and then add this where you want it: <div id="stacktack-518021"></div> It really isn't that much, and as I said, there is a WordPress plugin for it if that's what you use. The only other way short of writing your own script is an iframe – Piccolo Apr 3 '13 at 2:05
@Hugolpz If that's too long for you to embed on a page, then don't embed it. It's the best there is. – Piccolo Apr 3 '13 at 2:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .