Help building API request to generate number of visits from given referrer

Hello,

Please help me build API url request to generate visitors from a given website.

I found the referrer API documentation, but it does not include how to compile visitors from a given referrer: http://piwik.org/docs/analytics-api/reference/#Referers

Also I found documentation on API segments for a url containing a given keyword, in the example piwik, but I can’t get it to work: Segmentation - Compare segments of visitors - Analytics Platform - Matomo


&segment=referrerName=@piwik

Return results where the Referer name (website domain or search engine name) contains the word “piwik”.

I need to generate a report, any format will do, of number of visitors from a given url, for example someurl.com. This url request can be any date, any period of time; what I really need help with is calling the given referrer and the number of visitors from that referrer.

Thanks in advance

I recommend you use the IFRAME solution to easily embed report: Embedding Piwik Reports in Other Websites or Apps - Analytics Platform - Matomo

or see this tutorial: http://new.piwik.org/docs/analytics-api/tutorials-examples/

Thank you for your response, but it is useless.

I am aware I can embed reports in websites. TO clarify my question, I need help building the url, particularly the part having to do with filtering users from a given url.

Your second links leads to a dead page.

Please, I am looking for help building the url, or give me pointers about the segment part to filter visitors from a given website .

Thank you

See http://piwik.org/docs/analytics-api/tutorials-examples/
and: Segmentation - Compare segments of visitors - Analytics Platform - Matomo