Title: SimilarWeb API
Last modified: January 6, 2018

---

# SimilarWeb API

 *  Resolved [infogeniuz](https://wordpress.org/support/users/infogeniuz/)
 * (@infogeniuz)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/similarweb-api/)
 * i would like to be able to enter a URL in a field, pass the URL to your plugin
   for API call and then parse the JSON output for SimilarWeb.com API. is that doable?
   i am a newbie to API coding.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsimilarweb-api%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/similarweb-api/#post-9840293)
 * You describe the basic idea of this plugin.
    [https://developer.similarweb.com/estimated_visits_api](https://developer.similarweb.com/estimated_visits_api)
   shows that you need a apikey (provided by the api). with that you can [jsoncontentimporter
   url=https://api.similarweb.com/v1/website/cnn.com/total-traffic-and-engagement/
   visits?api_key={UserKey}&start_date=2016-01&end_date=2016-03&main_domain_only
   =false&granularity=monthly] {subloop-array:visits:-1} {visits.date} {/subloop-
   array:visits} [/jsoncontentimporter]
 * Bernhard
 *  Thread Starter [infogeniuz](https://wordpress.org/support/users/infogeniuz/)
 * (@infogeniuz)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/similarweb-api/#post-9840368)
 * Cool. How could i have a user input the URL, start and end dates?
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/similarweb-api/#post-9840425)
 * This is a PRO-feature 😉
    There is a shortcode-parameter urlparam to manage that.
 *  Thread Starter [infogeniuz](https://wordpress.org/support/users/infogeniuz/)
 * (@infogeniuz)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/similarweb-api/#post-9840446)
 * i will buy pro, if i know how to implement the variable insertion.
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/similarweb-api/#post-9841112)
 * This done this way:
    [jsoncontentimporterpro url=https://api.similarweb.com/v1/
   website/cnn.com/total-traffic-and-engagement/visits?api_key={UserKey}&start_date
   =2016-01&end_date=2016-03&main_domain_only=false&granularity=monthly urlparam
   =start_date#end_date] {subloop-array:visits:-1} {visits.date} {/subloop-array:
   visits} [/jsoncontentimporterpro]
 * Then you can do “wp-page-url?end_date=2016-02” which will add the value of end_date
   to the url.

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

The topic ‘SimilarWeb 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

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

 * 5 replies
 * 2 participants
 * Last reply from: [berkux](https://wordpress.org/support/users/berkux/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/similarweb-api/#post-9841112)
 * Status: resolved