The SEO.getRank() Method

The following instruction is misspecified. A separate query parameter must be entered for the value of the method’s argument.

The SEO API lets you access a list of SEO metrics for the specified URL:
 Google PageRank, Google/Bing indexed pages Alexa Rank and age of the 
Domain name.    
 - SEO.getRank (url) [ Example in...]

All of the following specifications fail

&method=SEO.getRank(www.grammarcaptive.com)
&method=SEO.getRank(https://www.grammarcaptive.com)

&method=SEO.getRank(‘www.grammarcaptive.com’)
&method=SEO.getRank(‘https://www.grammarcaptive.com’)

You must enter, for example:

&method=SEO.getRank&url=www.grammarcaptive.com

Roddy

Hi,

That’s exactly what the docs say. You can’t make function calls in HTTP, the parameters always have to be GET or POST parameters.

https://developer.matomo.org/api-reference/reporting-api

You can simply click on Example in JSON and see an example URL.

Thank you, Lukas, for your reply, but clicking on JSON in the documentation at the point in the documentation to which I am referring does not provide a sample link. What it does provide is sample output thus giving the user an incentive to dig deeper into the documentation.

It would be most helpful to provide a sample implementation of how to interpret the notation on the same page that the notation is provided. It is misleading as currently stated.

Roddy