Using confleuance api to get usage statistics

Craig J
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 25, 2025

I'm trying to access the page views using the documentation code found here:

https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-analytics/#api-wiki-rest-api-analytics-content-contentid-viewers-get

with intended output:

{"id":15,"count":53}

but when I run the code I get a 404 error

Is there a better way to do this?

 

image.png

2 answers

0 votes
HormigasAIS-ux
Banned
January 25, 2025

Uso de la API de confleuance para obtener estadísticas de uso

Integración en Diez

@Lucas Modzelewski _Lumo_ 

parche en sí se deriva de un desarrollo en el lenguaje que mejor adecuen para sí <no de un dominio (404) El parque

HormigasAIS-ux
Banned
January 25, 2025

Uso de la API de confleuance para obtener estadísticas de uso

Diámetros 

Necesarios crear un aporte desde tu sitio de lenguaje de desarrollo con el nombre que desees usar y las características que necesitas evalúa sus accesorios (archivos) correspondientes a el uso de ese API 

@comunidad

0 votes
Lucas Modzelewski _Lumo_
Atlassian Partner
January 25, 2025

Hi @Craig J , welcome to the Atlassian Community!

Check in browser if the ID is correct, as a 404 error means the resource doesn’t exist.

If the user doesn’t have access, the API will return a 401 error. For content that is restricted, a 403 error will be thrown if the given user (not anonymous) lacks the necessary permissions.

My quick test:

viewers api response.png

On the left (green box) existing content, on the right not existing with id '1'.

Windows from top: owner of restricted document, other user, at the bottom anonymous user.

Note space is public, but that given page is private

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events