Title: get theme version from outside a wp instance
Last modified: August 30, 2016

---

# get theme version from outside a wp instance

 *  Resolved [quenenni](https://wordpress.org/support/users/quenenni/)
 * (@quenenni)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/get-theme-version-from-outside-a-wp-instance/)
 * Hello,
 * I wrote few days ago about getting plugins version from outside WP:
    [https://wordpress.org/support/topic/get-plugins-version-from-outside-a-wp-instance](https://wordpress.org/support/topic/get-plugins-version-from-outside-a-wp-instance)
 * My script works perfectly.
 * Now I’m trying to do the same for the themes, but so far, no luck, and I don’t
   know why.
 * Instead of using the address
    [https://api.wordpress.org/plugins/info/1.0/](https://api.wordpress.org/plugins/info/1.0/)
   I’m using: [https://api.wordpress.org/themes/info/1.0/](https://api.wordpress.org/themes/info/1.0/)
 * As stated here [http://codex.wordpress.org/WordPress.org_API](http://codex.wordpress.org/WordPress.org_API)
 * >  Themes
   >  v1.0 will return its content serialized, v1.1 as a JSON object.
   >  [https://api.wordpress.org/themes/info/1.0/](https://api.wordpress.org/themes/info/1.0/)
   > 
   > [https://api.wordpress.org/themes/info/1.1/](https://api.wordpress.org/themes/info/1.1/)
 * But no matter what I tried, I have a “404 page not found.”
    I tried with several
   themes (included all the twentysomething, the WP defaults themes), and with the
   3 different extensions (json / xml / php). I tried also using parameters in the
   query.. but also without luck.
 * Any idea why it doesn’t work for the themes?
    A problem with the API / server?
 * Thanks
 * PS: Am I missing something or there is no preview available when writing a post?

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

 *  [yorman](https://wordpress.org/support/users/yorman/)
 * (@yorman)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/get-theme-version-from-outside-a-wp-instance/#post-6202414)
 * Use the _$request_ parameter to pass the arguments, for example to get information
   of the _“Twentyfifteen”_ theme use this [1]. You can also search by keywords 
   and so on.
 * Reference: [http://stackoverflow.com/a/30027689](http://stackoverflow.com/a/30027689)
 * [1] [https://api.wordpress.org/themes/info/1.1/?action=theme_information&request%5Bslug%5D=twentyfifteen](https://api.wordpress.org/themes/info/1.1/?action=theme_information&request%5Bslug%5D=twentyfifteen)
 *  Thread Starter [quenenni](https://wordpress.org/support/users/quenenni/)
 * (@quenenni)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/get-theme-version-from-outside-a-wp-instance/#post-6202509)
 * That’s perfect.
 * Thanks for your help Yorman
 * NB:
    The link in the post didn’t correctly transcribed here but was correct in
   the mail I received and is correct in the stackoverflow post. (add brackets around
   the word ‘slug’)
 * Thanks again.

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

The topic ‘get theme version from outside a wp instance’ is closed to new replies.

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [outside](https://wordpress.org/support/topic-tag/outside/)
 * [Themes](https://wordpress.org/support/topic-tag/themes/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 2 replies
 * 2 participants
 * Last reply from: [quenenni](https://wordpress.org/support/users/quenenni/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/get-theme-version-from-outside-a-wp-instance/#post-6202509)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
