Go through this https://lix-it.com/blog/how-to-extract-data-from-the-linkedin-api/ things will get more clear to you.