Word Tokenizer API

API Endpoint Specifications

  • Endpoint Path: /api/1/word-tokenizer
  • 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
Word Tokenizer API Endpoint Basic Info

API Endpoint Path

required

Content Word Tokenizer API

api/1/word-tokenizer


Call Method

Required

POST

Type of Data Return

JSON

Output structured JSON data on tokenized content


Available API Arguments & Parameters

token

required

BUYFROMLO API token. Paid subscription API is available: /api/1/word-tokenizer, and accessible to on-site APP on /app/1/word-tokenizer as well

originalContent

required

Submit the original English content.


language

Optional

Input the language. Default value is english


Content Word Tokenizer API

api/1/word-tokenizer


Code Integration and Response

Python Code Sample


import requests

apiendpoint = "https://api.buyfromlo.com/api/1/word-tokenizer"

## 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


{
    "Tokenised content"
}