Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
lipet
Engaged Sweeper

Good day everyone,

I wrote a Python script to retrieve assets data from Lansweeper Cloud using GraphQL API. The following data were requested:
Mac Address
IP Address
Asset Type
Asset Name
Serial Number
Processor Speed
CPU Type
Operating System

My ask is, how do I retrieve the assets' hardware mac address? Which path can I use to retrieve the main mac address?

Thank you for your assistance.

1 ACCEPTED SOLUTION
EthanBills
Lansweeper Employee
Lansweeper Employee

Hi,

To retrieve the Mac address for an asset via the API, please use the field "assetBasicInfo.mac". You can find an extensive list of all fields that are available through the API here: Types specification | Documentation – Lansweeper. Lansweeper provides an extensive number of fields, so I would recommend searching the documentation via ctrl/cmd + F to find any specific field you are searching for. 

Thanks!

View solution in original post

2 REPLIES 2
lipet
Engaged Sweeper

Hello EthanBills,

Thank you for your prompt reply. I really appreciate.

EthanBills
Lansweeper Employee
Lansweeper Employee

Hi,

To retrieve the Mac address for an asset via the API, please use the field "assetBasicInfo.mac". You can find an extensive list of all fields that are available through the API here: Types specification | Documentation – Lansweeper. Lansweeper provides an extensive number of fields, so I would recommend searching the documentation via ctrl/cmd + F to find any specific field you are searching for. 

Thanks!

General Discussions

Find answers to technical questions about Lansweeper.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now