You probably want to poke this information in over the REST interface. Start reading at https://developer.atlassian.com/confdev/confluence-rest-api
It looks like you're new here. Sign in or register to get started.