Twitter Trending Post Scraper API

API Endpoint Specifications

  • Endpoint Path: /api/1/twitter-trending-post
  • Type of Data: JSON & 10/minute
  • Data Source: Twitter
  • Request Limit: 500 request/month
  • Script & Integration: Code to integrate with cURL, JS, Python, Ruby, Php, Node.js, Java, .NET, Rust, Go, Typescript
Twitter Trending Post Scraper API Endpoint Basic Info

API Endpoint Path

required

Twitter Trending Post Scraper

api/1/twitter-trending-post


Call Method

Required

POST

Type of Data Return

JSON

Output structured JSON data on Twitter trending post content


Available API Arguments & Parameters

token

required

BUYFROMLO API token. Subscription API is available on /api/1/twitter-trending-post, and accessible to on-site APP on /app/1/twitter-trending-post as well

keyword

required

Input a keyword to scrape related post content



Twitter Trending Post Scraper

api/1/twitter-trending-post


Code Integration and Response

Python Code Sample


import requests

apiendpoint = "https://api.buyfromlo.com/api/1/twitter-trending-post"

## Required Arguments & Parameters ##
token = "your buyfromlo token"
keyword = "Enter a commodity name referring to the options"

data={"keyword": keyword}
headers={"Authorization": "Bearer " + token}

## Call the api ##
response = requests.post(apiendpoint, json=data, headers=headers)
print(response.status_code)
print(response.json())
                        

JSON Response Sample


{
    "Post Date":"",
    "Post Content":"",
    "Post User ID":"",
    "Post URL":"",
    "api_module": ""
}