Content Similarity Classifier API

API Endpoint Specifications

  • Endpoint Path: /api/1/similarity-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 Similarity Classifier API Endpoint Basic Info

API Endpoint Path

required

Similar Content Object Classifer API

api/1/similarity-classifier


Call Method

Required

POST

Type of Data Return

JSON

Output structured JSON data on classified similar content


Available API Arguments & Parameters

token

required

BUYFROMLO API token. Free and paid subscription API are available: /api/1/similarity-classifier, and accessible to on-site APP on /app/1/similarity-classifier as well

originalContent

required

Submit the original English content in string

targetContent

required

Enter a list of target content in list datatype, which is used to compare to the original content



Similar Content Object Classifer API

api/1/similarity-classifier


Code Integration and Response

Python Code Sample


import requests

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

## Required Arguments & Parameters ##

token = "your buyfromlo token"
originalContent = ""

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

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

JSON Response Sample


{
    "similar items"
}