Hashtag Scraper API
Oxylabs’ Hashtag Scraper is a data gathering solution allowing you to extract real-time information from any website effortlessly. This brief guide explains how an Hashtag Scraper works and provides code examples to understand better how you can use it hassle-free.
How it works
You can get hashtag results by providing your own URLs to our service. We can return the HTML for any hashtag page you like.
Python code example
The example below illustrates how you can get HTML of a hashtagify.me page.
import requests
from pprint import pprint
# Structure payload.
payload = {
'source': 'universal',
'url': 'https://hashtagify.me/hashtag/summer'
}
# Get response.
response = requests.request(
'POST',
'https://realtime.oxylabs.io/v1/queries',
auth=('user', 'pass1'),
json=payload,
)
# Instead of response with job status and results url, this will return the
# JSON response with the result.
pprint(response.json())
Find code examples for other programming languages here
Output Example
{
"results": [
{
"content": "<!doctype html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"wi ... </html>",
"created_at": "2023-12-18 11:38:54",
"updated_at": "2023-12-18 11:38:54",
"page": 1,
"url": "https://hashtagify.me/hashtag/summer",
"job_id": "7142478328442726401",
"status_code": 200
}
]
}
With our Hashtag Scraper, you can effortlessly pull hashtags from any post. Collect the necessary data such as likes, comments, shares along with hashtags to examine social media trends and get ahead of your competitors. If you need any assistance, our support team is readily available via live chat or you can email us at [email protected].