Title: kError code when trying to add historical data Jetpac
Last modified: January 21, 2025

---

# kError code when trying to add historical data Jetpac

 *  Resolved [noseknowsnonotes](https://wordpress.org/support/users/noseknowsnonotes/)
 * (@noseknowsnonotes)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/kerror-code-when-trying-to-add-historical-data-jetpac/)
 * Hello,
 * I really would love to add my historical stats data from Jetpack, so I was delighted
   to see that option now. However, I get the following message. I used the Api 
   Key as provided, and it also happens when I try to import 1 day only.
 * “An error occurred trying to import your statistics. Received non-JSON response
   from WordPress.com API:Error: api_key does not belong to an administrator of 
   blogRequired parameters: api_key, blog_id or blog_uri.Optional parameters: table,
   post_id, end, days, limit, summarize.Parameters:api_key String A secret unique
   to your WordPress.com user account.blog_id Integer The number that identifies
   your blog. Find it in other stats URLs.blog_uri String The full URL to the root
   directory of your blog. Including the full path.table String One of views, postviews,
   referrers, referrers_grouped, searchterms, clicks, videoplays.post_id Integer
   For use with postviews table. Also accepts a comma-separated list of integers.
   end String The last day of the desired time frame. Format is \’Y-m-d\’ (e.g. 
   2007-05-01) and default is UTC date.days Integer The length of the desired time
   frame. Default is 30. \”-1\” means unlimited.period String For use with views
   table and the \’days\’ parameter. The desired time period grouping. \’week\’ 
   or \’month\’ Use \’days\’ as the number of results to return (e.g. \’&period=
   week&days=12\’ to return 12 weeks)limit Integer The maximum number of records
   to return. Default is 100. \”-1\” means unlimited. If days is -1, limit is capped
   at 500.summarize Flag If present, summarizes all matching records.format String
   The format the data is returned in, \’csv\’, \’xml\’ or \’json\’. Default is \’
   csv\’.Non-working query example: ?api_key=123456789abc&blog_id=155&table=referrers&
   days=30&limit=-1&summarizeResult format is csv with one row per line and column
   names in first row.Strings containing double quotes, commas, or \”\n\” are enclosed
   in double-quotes. Double-qoutes in strings are escaped by inserting another double-
   quote.Example: \”pet food\” recipeBecomes: \”\”\”pet food\”\” recipe\”Developers,
   please cache the results for at least 180 seconds.”
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fkerror-code-when-trying-to-add-historical-data-jetpac%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/kerror-code-when-trying-to-add-historical-data-jetpac/#post-18256936)
 * Hi [@noseknowsnonotes](https://wordpress.org/support/users/noseknowsnonotes/),
 * This error indicates that your API key is not correct or at least not correct
   for the provided blog URL. Do you by any chance have multiple WordPress.com accounts
   and are you sure you’re getting the API key for the account that has the blog
   URL you’re providing in our Jetpack Importer form?
 * It could also indicate an issue with the blog URL, so please also make sure you’re
   providing the blog URL that is known to WordPress.com: [https://dashboard.wordpress.com/wp-admin/index.php?page=my-blogs](https://dashboard.wordpress.com/wp-admin/index.php?page=my-blogs)
    -  This reply was modified 1 year, 3 months ago by [Danny van Kooten](https://wordpress.org/support/users/dvankooten/).
 *  Thread Starter [noseknowsnonotes](https://wordpress.org/support/users/noseknowsnonotes/)
 * (@noseknowsnonotes)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/kerror-code-when-trying-to-add-historical-data-jetpac/#post-18257009)
 * My bad, the key was correct, but I forgot I had Jetpack/stats moved to a backup
   blog, when I moved away from WordPress, so the URL was incorrect.
 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/kerror-code-when-trying-to-add-historical-data-jetpac/#post-18257138)
 * Glad that’s sorted [@noseknowsnonotes](https://wordpress.org/support/users/noseknowsnonotes/).
   We’ll start linking to the page above from the Jetpack Import settings page so
   that it’s easier to check what one’s url is.

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

The topic ‘kError code when trying to add historical data Jetpac’ is closed to new
replies.

 * ![](https://ps.w.org/koko-analytics/assets/icon.svg?rev=2980600)
 * [Koko Analytics - Privacy Friendly Statistics for WordPress](https://wordpress.org/plugins/koko-analytics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/koko-analytics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/koko-analytics/)
 * [Active Topics](https://wordpress.org/support/plugin/koko-analytics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/koko-analytics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/koko-analytics/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/kerror-code-when-trying-to-add-historical-data-jetpac/#post-18257138)
 * Status: resolved