RapidAPI logo

Linguatools English Collocations

FREEMIUM
By petapro
Updated 14 days ago
Education
5.2/10
Popularity Score
1711ms
Latency
91%
Success Rate

Linguatools English Collocations API Documentation

Looks up a word in a dictionary and returns all collocations

View API Details
GETcollocations
GETcollocations

looks up collocations

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
langSTRING
REQUIREDlanguage ISO 639-1 code for English
querySTRING
REQUIREDany word (case insensitive)
Optional Parameters
relationSTRING
OPTIONALOne of the following relations (case sensitive, optional): V:obj:N V:prep:N V:obj1+2:N V:obj+prep:N V:subj:N V:sc:V N:mod:A N:prep:N N:nn:N V:mod:A A:mod:A
min_sigSTRING
OPTIONALany number as the minimum significance (optional). Will return only collocations with significance >= min_sig
Code Snippet
unirest.get("https://linguatools-english-collocations.p.rapidapi.com/bolls/?lang=en&query=change")
.header("X-RapidAPI-Host", "linguatools-english-collocations.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://linguatools-english-collocations.p.rapidapi.com/bolls/
Request Method: GET
Response Headers
"cache-control": "max-age=0, private, must-revalidate"
"content-type": "application/json; charset=utf-8"
"date": "Tue, 04 Jun 2019 17:05:03 GMT"
"etag": "W/"ac6829559eb78a321c04fab34e8a712d""
"server": "RapidAPI-1.0.16"
"x-rapidapi-region": "AWS - eu-central-1"
"x-rapidapi-version": "1.0.16"
"x-request-id": "c26c1184-d0b7-46de-a681-cdf4b650059f"
"x-runtime": "2.121101"
"transfer-encoding": "chunked"
"connection": "Close"
Response Body
Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://linguatools-english-collocations.p.rapidapi.com/bolls/?lang=en&query=change")
.header("X-RapidAPI-Host", "linguatools-english-collocations.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication