Title: help with the reddit json api
Last modified: April 16, 2018

---

# help with the reddit json api

 *  Resolved [oculus123](https://wordpress.org/support/users/oculus123/)
 * (@oculus123)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/help-with-the-reddit-json-api/)
 * struggling to make it work with the reddit json
 * trying two things
    1/ title, domain and url from text subreddits ([https://www.reddit.com/r/news/hot.json](https://www.reddit.com/r/news/hot.json))
 * 2/ title, thumbnail_url and embed html code from media subreddits ([https://www.reddit.com/r/videos/hot.json](https://www.reddit.com/r/videos/hot.json))

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/help-with-the-reddit-json-api/#post-10187633)
 * try this:
 *     ```
       [jsoncontentimporter url=https://www.reddit.com/r/news/hot.json]
       kind: {kind}
       {subloop:data:-1}data.after: {data.after}
       {subloop-array:data.children:-1}
       data.children.kind:{data.children.kind}
       {subloop:data.children.data:-1}
       data.children.data.id: {data.children.data.id}
       {/subloop:data.children.data}<hr>
       {/subloop-array:data.children}
       {/subloop:data}
       [/jsoncontentimporter]
       ```
   
 *  Thread Starter [oculus123](https://wordpress.org/support/users/oculus123/)
 * (@oculus123)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/help-with-the-reddit-json-api/#post-10191210)
 * cheers
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/help-with-the-reddit-json-api/#post-10191325)
 * feel free to vote for my plugin.
 *  Thread Starter [oculus123](https://wordpress.org/support/users/oculus123/)
 * (@oculus123)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/help-with-the-reddit-json-api/#post-10193411)
 * sorry, but just tried embeding html with the 2nd one and no luck
 * [jsoncontentimporter url=https://www.reddit.com/r/videos/hot.json]
    {subloop:
   data:-1} {subloop-array:data.children:-1} {subloop:data.children.data:-1} {subloop:
   data.children.data.secure_media:-1} {subloop:data.children.data.secure_media.
   oembed:-1} data.children{data.children.data.secure_media.oembed.html}
 * {/subloop:data.children.data.secure_media.oembed}
    {/subloop:data.children.data.
   secure_media} {/subloop:data.children.data}<hr> {/subloop-array:data.children}{/
   subloop:data} [/jsoncontentimporter]
 * actually adding raw html doesn’t seem to work for any json, is this a security
   feature? can it be ignored for specific cases?
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/help-with-the-reddit-json-api/#post-10196026)
 * by default html-tags are converted to html.
    Add “:html” like
 * data.children{data.children.data.secure_media.oembed.html:html}
 * Bernhard

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘help with the reddit json api’ is closed to new replies.

 * ![](https://ps.w.org/json-content-importer/assets/icon-256x256.png?rev=3464653)
 * [Get Use APIs - JSON Content Importer](https://wordpress.org/plugins/json-content-importer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-content-importer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-content-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/json-content-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-content-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-content-importer/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [berkux](https://wordpress.org/support/users/berkux/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/help-with-the-reddit-json-api/#post-10196026)
 * Status: resolved