Extract All Social Media Handles & URLs

A JobScanner endpoint for extracting all social media handles and URLs from a webpage

This endpoint lets you quickly extract all the major social media handles found on the webpage.

Generally speaking, you will be able to find the social media handles of the platform where the job was published, the company that has the job opening, and occasionally, the recruiter details using this endpoint.


import requests

url = "https://job-search15.p.rapidapi.com/"


payload = {
  "api_type": "extract_social_media_handles",
  "url": "https://www.wsj.com/articles/a-powerful-force-teslas-momentum-leads-stock-market-surge-11595151001"
}


headers = {
  "content-type": "application/json",
  "X-RapidAPI-Key": "API_Key",
  "X-RapidAPI-Host": "job-search15.p.rapidapi.com"
}

response = requests.request("POST", url, json=payload, headers=headers)

print(response.text)
	
	POST / HTTP/1.1
Content-Type: application/json
X-Rapidapi-Key: API_Key
X-Rapidapi-Host: job-search15.p.rapidapi.com
Host: job-search15.p.rapidapi.com
Content-Length: 192

{
    "api_type": "extract_social_media_handles",
    "url": "https://www.wsj.com/articles/a-powerful-force-teslas-momentum-leads-stock-market-surge-11595151001"
}
	
	
Parameter Description
api_type extract_social_media_handles
url URL of the webpage

Output


[
"https://www.instagram.com/wsj/",
"@WSJ",
"https://www.snapchat.com/discover/Wall-Street-Journal/4806310285",
"https://www.youtube.com/user/WSJDigitalNetwork",
"https://twitter.com/WSJ",
"https://www.facebook.com/wsj"
]