Lithosphere The Lithium Community

%3CLINGO-SUB%20id%3D%22lingo-sub-484703%22%20slang%3D%22en-US%22%3ELSI%20API%20call%20for%20Certain%20Metrics%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-484703%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Lithium%20Community%2C%26nbsp%3B%3C%2FP%3E%3CP%3EHave%20a%20quick%20question%20regarding%20using%20LSI%20API.%20Within%20my%20LSI%20backend%20I%20have%20some%20page%20metrics%20as%20below%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20935px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fcommunity.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F145678i6E0D4BA81EEB5204%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20srcset%3D%22%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F145678i6E0D4BA81EEB5204%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%201.0x%22%20alt%3D%22Screen%20Shot%202018-07-06%20at%204.31.09%20PM.png%22%20title%3D%22Screen%20Shot%202018-07-06%20at%204.31.09%20PM.png%22%20%2F%3E%3C%2FSPAN%3EI%20would%20like%20to%20retrieve%20say%20the%20Page%20views%2C%20Visits%2C%20Unique%20visitors%20for%20each%20community%20section.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20would%20be%20the%20API%20call%20to%20retrieve%20the%2050%2C478%20for%20page%20views%2C%2024%2C707%20for%20visits%20and%20so%20on.%20I%20can't%20seem%20to%20find%20any%20documentation%20on%20this.%20Would%20appreciate%20the%20help%20here!!%20I'm%20trying%20to%20create%20a%20reporting%20dashboard%20to%20pull%20the%20numbers%20automatically%20from%20here.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-484954%22%20slang%3D%22en-US%22%3ERe%3A%20LSI%20API%20call%20for%20Certain%20Metrics%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-484954%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.lithium.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F70902%22%20target%3D%22_blank%22%3E%40maxwelldhsu%3C%2FA%3E%26nbsp%3B-%26nbsp%3BThe%20bulk%20data%20API%20when%20triggered%20gives%20you%20a%20.csv%20file%20that%20contains%20records%20of%20all%20activity%20(refer%20to%20the%20different%20action%20keys%20in%20the%20documentation)%20that%20happened%20in%20the%20Community.%3C%2FP%3E%3CP%3EFor%20example%2C%20if%20you%20run%20the%20bulk%20data%20API%20for%20Jul%205th%20on%20Jul%206th%20after%2010%20AM%20UTC%2C%20a%20.csv%20file%20is%20generated%20with%20all%20community%20activity%20that%20happened%20on%20Jul%205th.%3C%2FP%3E%3CP%3EYou%20need%20to%20have%20the%20necessary%20infrastructure%20(Ex%3A%20Database)%20on%20your%20end%20to%20save%20these%20details%2C%20and%20then%20you%20can%20build%20your%20reporting%20dashboard%20from%20this%20database%20per%20your%20needs.%26nbsp%3BYou%20can%20generate%20and%20save%20data%20from%20the%20start%20of%20your%20community%20using%20the%20bulk%20data%20API.%3C%2FP%3E%3CP%3EHope%20this%20helps!%3C%2FP%3E%3CP%3EThanks%2C%3CBR%20%2F%3ESrujana.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-484939%22%20slang%3D%22en-US%22%3ERe%3A%20LSI%20API%20call%20for%20Certain%20Metrics%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-484939%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3BHi%26nbsp%3B%3Ca%20href%3D%22https%3A%2F%2Fcommunity.lithium.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F63438%22%3E%40srujanayeruvaka%3C%2Fa%3E%2C%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20response.%20I%20did%20look%20at%20the%20API%20doc.%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20I%20wasn't%20able%20to%20find%20the%20specific%20calls%20I%20was%20looking%20for.%20For%20example%20in%20my%20question%20above%2C%20I%20asked%2C%20what%20would%20be%20the%20API%20call%20to%20retrieve%20the%2050%2C478.%20Within%20the%20API%20doc%2C%20I%20don't%20see%20any%20call%20that%20pulls%20the%20page%20view%20numbers%2C%20in%20the%204th%20row%20of%20the%20Export%20Reference%20chart%2C%26nbsp%3B%20we%20see%20%22action.key%22%20can%20you%20tell%20me%20what%20I'd%20use%20to%20pull%20the%20page%20views%3F%20%22page.view%22%3F%2C%20%22view%22%3F%20this%20says%20its%20a%20request%20for%20a%20human%20page%20view.%20The%20documentation%20isn't%20clear%20on%20what%20call%20I'd%20need%20to%20use.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-484711%22%20slang%3D%22en-US%22%3ERe%3A%20LSI%20API%20call%20for%20Certain%20Metrics%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-484711%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3Ca%20href%3D%22https%3A%2F%2Fcommunity.lithium.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F70902%22%3E%40maxwelldhsu%3C%2Fa%3E%2C%3C%2FP%3E%3CP%3EWe%20leverage%20the%20Bulk%20data%20API%20to%20pull%20metrics%20for%20our%20reporting%20purposes.%20You%20can%20refer%20to%20the%20documentation%20here%26nbsp%3Bto%20see%20if%20this%20serves%20your%20purpose.%3C%2FP%3E%3CP%3EThanks%2C%3CBR%20%2F%3ESrujana.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Advisor
Occasional Advisor

LSI API call for Certain Metrics

Hi Lithium Community, 

Have a quick question regarding using LSI API. Within my LSI backend I have some page metrics as below: 

Screen Shot 2018-07-06 at 4.31.09 PM.pngI would like to retrieve say the Page views, Visits, Unique visitors for each community section.

 

What would be the API call to retrieve the 50,478 for page views, 24,707 for visits and so on. I can't seem to find any documentation on this. Would appreciate the help here!! I'm trying to create a reporting dashboard to pull the numbers automatically from here. 

0 Kudos
3 Replies
Highlighted
Esteemed Contributor
Esteemed Contributor

Re: LSI API call for Certain Metrics

Hi @maxwelldhsu,

We leverage the Bulk data API to pull metrics for our reporting purposes. You can refer to the documentation here to see if this serves your purpose.

Thanks,
Srujana.

 

0 Kudos
Reply
Loading...
Occasional Advisor
Occasional Advisor

Re: LSI API call for Certain Metrics

 Hi @srujanayeruvaka

Thanks for the response. I did look at the API doc. 

However, I wasn't able to find the specific calls I was looking for. For example in my question above, I asked, what would be the API call to retrieve the 50,478. Within the API doc, I don't see any call that pulls the page view numbers, in the 4th row of the Export Reference chart,  we see "action.key" can you tell me what I'd use to pull the page views? "page.view"?, "view"? this says its a request for a human page view. The documentation isn't clear on what call I'd need to use. 

0 Kudos
Reply
Loading...
Esteemed Contributor
Esteemed Contributor

Re: LSI API call for Certain Metrics

Hi @maxwelldhsu - The bulk data API when triggered gives you a .csv file that contains records of all activity (refer to the different action keys in the documentation) that happened in the Community.

For example, if you run the bulk data API for Jul 5th on Jul 6th after 10 AM UTC, a .csv file is generated with all community activity that happened on Jul 5th.

You need to have the necessary infrastructure (Ex: Database) on your end to save these details, and then you can build your reporting dashboard from this database per your needs. You can generate and save data from the start of your community using the bulk data API.

Hope this helps!

Thanks,
Srujana. 

0 Kudos
Reply
Loading...