Search Companies Filters
Has anyone successfully managed to add filters to the search companies such as location, industry and company size??
I have tried to play with the code but to no success currently
This is a sample request i've noticed, not sure though what to do with it to create a way to input location and industry
{"request":"/voyager/api/search/dash/clusters?decorationId\u003Dcom.linkedin.voyager.dash.deco.search.SearchClusterCollection-169\u0026origin\u003DFACETED_SEARCH\u0026q\u003Dall\u0026query\u003D(keywords:energy%20savings%20%26%20hvac%20,flagshipSearchIntent:SEARCH_SRP,queryParameters:(companyHqGeo:List(106693272),industryCompanyVertical:List(112),resultType:List(COMPANIES)),includeFiltersInResponse:false)\u0026start\u003D0","status":200,"body":"bpr-guid-252675","method":"GET","headers":{"x-li-uuid":"AAXtw8ueapF9x/QyaHREXA\u003D\u003D"}}
As a follow up, I decided to use requests to make my own company search which instead of calling the voyager end points, plays with the html url for regions and keywords. What i have noticed is that when getting the html of the page, the results when inputting industry makes no difference and i assume it thus filtering the results of search type company, keywords and region with industry through JS which would require me using selenium to scrape. As a summary, I scrape the list of company urns which then are inputed and works with the linkedin-api get_company function and loop each code to get each company's info that i want through filtering the resulting json's. I have also gotten a database of country urn codes below:
105015875 - FRANCE 105646813 - SPAIN 101282230 - GERMANY 103350119 - ITALY 102299470 - UK 106693272 - Switzerland 103644278 - USA 101174742 - Canada 100565514 - Belgium 102890719 - Netherlands 104514075 - Denmark 102713980 - India 105117694 - Sweden 101620260 - Israel 100456013 - Finland 102454443 - singapore 104035573 - South Africa 103819153 - Norway 104738515 - ireland 104042105 - Luxembourg 103883259 - austria 102890883 - china 103323778 - Mexico 101452733 - australia 100364837 - Portugal 105072130 - Poland 104508036 - Czechia
If you want to deploy the model, this can also be used to allow users to input a country's name rather than finding the specific code for a country. Obviously, this is just a list relevant to my needs but is a good start for anyone who needs to find some urns for countries.