Filter by custom field (meta_key) using JSON API

As this is too much for a comment, I’ll post here and delete later:

http://example.org // domain
?json=get_recent_posts // controller
# Arguments for the query start here
&post_type=mytype 
&custom_fields=myfield
&include=title,custom_fields
&meta_key=myfield
&meta_value=myvalue

Have you tried the following?

  • Debug the response: http://www.example.org/api/get_page_index/?dev=1
  • Widget-style JSONP output: http://www.example.org/api/get_recent_posts/?callback=show_posts_widget&read_more=More&count=3
  • Redirect on error: http://www.example.org/api/posts/create_post/?callback_error=http%3A%2F%2Fwww.example.org%2Fhelp.html

And could you post what you get out from the debug?

error code: 523