Content Classifier API

API Endpoint Specifications

  • Endpoint Path: /api/1/content-classifier
  • Type of Data: JSON & 20/minute
  • Data Source: BUYFROMLO
  • Request Limit: 500 request/month
  • Script & Integration: Code to integrate with cURL, JS, Python, Ruby, Php, Node.js, Java, .NET, Rust, Go, Typescript
Content Classifier API Endpoint Basic Info

API Endpoint Path

required

Content & Topic Classifier API

api/1/content-classifier


Call Method

Required

POST

Type of Data Return

JSON

Output structured JSON data on classified content


Available API Arguments & Parameters

token

required

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

originalContent

required

Upload the original English content.

contentType

required

Current available content type: aitools, ainews, smarthome, digitalmarketing, technologynews, python, datascience, promptengineering, cryptocurrency, nft, web3, smartdevice


bundledContent

Optional

Topic combination. Current available options: ai, massivescraping (Detect and classify all relevant trending technlogy )


Content & Topic Classifier API

api/1/content-classifier


Code Integration and Response

Python Code Sample


import requests

apiendpoint = "https://api.buyfromlo.com/api/1/content-classifier"

## Required Arguments & Parameters ##

token = "your buyfromlo token"
originalContent = ""
contentType = ""
bundledContent = ""

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

## Call the api ##
response = requests.post(
    apiendpoint, 
    json={
            "originalContent":originalContent,
            "contentType":contentType,
            "bundledContent": bundledContent
        }, headers=headers
    )
print(response.status_code)
print(response.json())
                        

JSON Response Sample


{
    "Category Name"
}