3

WordPress.org provides several API end-points for data about themes and plugins.

For example for plugins there is the plugin_api: https://developer.wordpress.org/reference/functions/plugins_api/

And the themes API: https://developer.wordpress.org/reference/functions/themes_api/

But, what about a Support API?

The best option I have so far is to parse data from each forums RSS feed - for example:

https://wordpress.org/support/rss/plugin/export-user-data

But this returns the last 30 replies accross all topics for the specified plugin.

We would like to get

  • All the forum topics from the last 3 months
  • Each entry in those topics, with info such as author name, date, etc.

Thanks!

6
  • What data do you want, exactly?
    – Otto
    Jan 27, 2016 at 0:55
  • Thanks Otto - I updated the ticket with a little extra info
    – Q Studio
    Jan 27, 2016 at 8:43
  • @QStudio This is off-topic here. I am sure Otto will gladly help you if you drop him an email. Jan 27, 2016 at 8:50
  • @MarkKaplun - please explain why it's off topic.
    – Q Studio
    Jan 27, 2016 at 8:54
  • well, it has nothing to do with wordpress core. Jan 27, 2016 at 9:02

1 Answer 1

2

That´s no big deal if you got the RSS feed, have a look at it.

There is a pubDate which you can use to check for the age of the topic. strtotime() or anything alike will help you to check if that´s older than 30 days.

And you also got a link-element. This leads you to the topic, which has its own RSS feed, too.

Example:

https://wordpress.org/support/topic/cron-job-to-ftp#post-7943160
=> https://wordpress.org/support/rss/topic/cron-job-to-ftp

This is probably not as comfortable as a full API but nevertheless a good way to go.

5
  • But the original feed returns the 30 latest entries, which might be from topics new or old - I need to get the latest x topics as the starting point before I parse over the data to get extra info.
    – Q Studio
    Jan 27, 2016 at 8:56
  • I will probably end up scraping the topics from the plugin URL and then pulling entries from the RSS feeds of each topic - not ideal, but perhaps the best solution for now.
    – Q Studio
    Jan 27, 2016 at 10:48
  • 2
    I don´t see any other way right now, sorry.
    – flomei
    Jan 27, 2016 at 10:53
  • 1
    https://wordpress.org/support/plugin/export-user-data/feed/ will return the last 30 topics new to old, but if you need the last active topics (new to old), you can use https://wordpress.org/support/plugin/export-user-data/active/feed/. LIkewise for the unresolved topics: https://wordpress.org/support/plugin/export-user-data/unresolved/feed/. But yes, an API (especially if it allows to post answers too) would be awesome.
    – Ewout
    Aug 7, 2018 at 16:05
  • 1
    @Ewout - surfe thing youre right. I think that we need a API that supports the fetching of the data of the forums - i work on it. - again thanks for the help you provide
    – zero
    Jun 14, 2020 at 15:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.