Title: Error when using with the wp rest api
Last modified: June 2, 2017

---

# Error when using with the wp rest api

 *  Resolved [friendlyfire](https://wordpress.org/support/users/friendlyfire/)
 * (@friendlyfire)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/error-when-using-with-the-wp-rest-api/)
 * I have a site that is using this plugin (1.2.17) and the native wp rest api (
   tested on wp 4.7.3 and 4.7.5).
 * When I try to fetch pages with params: [http://mysite.com/wp-json/wp/v2/pages?order=desc&orderby=id&page=1&per_page=30](http://mysite.com/wp-json/wp/v2/pages?order=desc&orderby=id&page=1&per_page=30)
 * I get:
 * > Something went wrong fetching URL with JSON-data: A valid URL was not provided.
   > error: get of json-data failed – plugin aborted: check url of json-feed<hr>
   > problems with JSON-structure: check basenode-param<hr><br>please open ticket
   > at [wordpress.org](https://wordpress.org/plugins/json-content-importer/)<hr
   > >
 * however, if I remove the per_page param:
    /wp-json/wp/v2/pages?order=desc&orderby
   =id&page=1
 * I get a lists of posts
 * if I use /wp-json/wp/v2/pages?per_page=12
 * I get a list of posts.
 * If i use: /wp-json/wp/v2/pages?per_page=20
 * I get the error again.
 * It looks like anything over the amount of 20 posts triggers the error. Why your
   plugin is giving an error on the wp endpoint is a mystery. It’s only happening
   on the pages endpoint.
    -  This topic was modified 8 years, 12 months ago by [friendlyfire](https://wordpress.org/support/users/friendlyfire/).

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

 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/error-when-using-with-the-wp-rest-api/#post-9195414)
 * Hi,
 * the errormessage is “problems with JSON-structure: check basenode-param”.
    This
   comes up when the retrieved JSON is neither object nor array.
 * Can you check if your JSON-Feeds are valid. You can do this e.g. with
    [http://www.jsoneditoronline.org/](http://www.jsoneditoronline.org/)
 * Sometime Plugins like WP-Supercache add some data so that invalid JSON is created.
 * You can open a ticket at
    [https://json-content-importer.com/legal-contact/](https://json-content-importer.com/legal-contact/)
   there you can post me the real URL in private.
 * Bernhard
 *  [sus](https://wordpress.org/support/users/susgeek/)
 * (@susgeek)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/error-when-using-with-the-wp-rest-api/#post-9659768)
 * Is there a way to strip any data from a caching plugin?
    -  This reply was modified 8 years, 6 months ago by [sus](https://wordpress.org/support/users/susgeek/).

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

The topic ‘Error when using with the wp rest 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/)

## Tags

 * [wp rest api](https://wordpress.org/support/topic-tag/wp-rest-api/)

 * 2 replies
 * 3 participants
 * Last reply from: [sus](https://wordpress.org/support/users/susgeek/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/error-when-using-with-the-wp-rest-api/#post-9659768)
 * Status: resolved