NAV
JavaScript PHP Ruby Python Bash Go Java R iOS

manyapis.com - API Documentation v1.0.0

Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.

API Documentation for manyapis.com. manyapis.com is a collection of APIs for developers to integrate into their applications. We provide APIs for Country Details, Currency Information, Currency Exchange Rates, Domain Tools, Email Validation, IP2Location, IP GeoLocation, Phone Number Validation, Url Shortener and more.

Base URLs:

Terms of service Email: manyapis.com team Web: manyapis.com team License: Proprietary license

Authentication

Country

Country Details, Information and Facts APIs

v1GetCountry

Code samples


const headers = {
  'Accept':'application/json',
  'x-api-key':'API_KEY'
};

fetch('https://api.manyapis.com/v1-get-country?code=string',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

<?php

require 'vendor/autoload.php';

$headers = array(
    'Accept' => 'application/json',
    'x-api-key' => 'API_KEY',
);

$client = new \GuzzleHttp\Client();

// Define array of request body.
$request_body = array();

try {
    $response = $client->request('GET','https://api.manyapis.com/v1-get-country', array(
        'headers' => $headers,
        'json' => $request_body,
       )
    );
    print_r($response->getBody()->getContents());
 }
 catch (\GuzzleHttp\Exception\BadResponseException $e) {
    // handle exception or api errors.
    print_r($e->getMessage());
 }

 // ...

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json',
  'x-api-key' => 'API_KEY'
}

result = RestClient.get 'https://api.manyapis.com/v1-get-country',
  params: {
  'code' => 'string'
}, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json',
  'x-api-key': 'API_KEY'
}

r = requests.get('https://api.manyapis.com/v1-get-country', params={
  'code': 'string'
}, headers = headers)

print(r.json())

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        "x-api-key": []string{"API_KEY"},
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "https://api.manyapis.com/v1-get-country", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

URL obj = new URL("https://api.manyapis.com/v1-get-country?code=string");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

GET /v1-get-country

Get country detail by country code ISO 4217

Parameters

Name In Type Required Description
code query string true code - country code ISO 4217

Example responses

200 Response

{
  "iso2": "string",
  "iso3": "string",
  "name": "string"
}

Responses

Status Meaning Description Schema
200 OK country details response Country
400 Bad Request invalid request HttpError
401 Unauthorized unauthorized request HttpError

v1ListCountry

Code samples


const headers = {
  'Accept':'application/json',
  'x-api-key':'API_KEY'
};

fetch('https://api.manyapis.com/v1-list-country',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

<?php

require 'vendor/autoload.php';

$headers = array(
    'Accept' => 'application/json',
    'x-api-key' => 'API_KEY',
);

$client = new \GuzzleHttp\Client();

// Define array of request body.
$request_body = array();

try {
    $response = $client->request('GET','https://api.manyapis.com/v1-list-country', array(
        'headers' => $headers,
        'json' => $request_body,
       )
    );
    print_r($response->getBody()->getContents());
 }
 catch (\GuzzleHttp\Exception\BadResponseException $e) {
    // handle exception or api errors.
    print_r($e->getMessage());
 }

 // ...

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json',
  'x-api-key' => 'API_KEY'
}

result = RestClient.get 'https://api.manyapis.com/v1-list-country',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json',
  'x-api-key': 'API_KEY'
}

r = requests.get('https://api.manyapis.com/v1-list-country', headers = headers)

print(r.json())

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        "x-api-key": []string{"API_KEY"},
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "https://api.manyapis.com/v1-list-country", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

URL obj = new URL("https://api.manyapis.com/v1-list-country");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

GET /v1-list-country

Get list of all countries

Example responses

200 Response

[
  {
    "iso2": "string",
    "iso3": "string",
    "name": "string"
  }
]

Responses

Status Meaning Description Schema
200 OK List countries response Inline
400 Bad Request Invalid request HttpError
401 Unauthorized Unauthorized request HttpError

Response Schema

Status Code 200

Name Type Required Restrictions Description
anonymous [Country] false none [Country details]
» iso2 string false none Country code ISO 3166-1 alpha-2
» iso3 string false none Country code ISO 3166-1 alpha-3
» name string false none Country name

Currency

APIs for currency information and exchange rates

v1GetCurrency

Code samples


const headers = {
  'Accept':'application/json',
  'x-api-key':'API_KEY'
};

fetch('https://api.manyapis.com/v1-get-currency?code=string',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

<?php

require 'vendor/autoload.php';

$headers = array(
    'Accept' => 'application/json',
    'x-api-key' => 'API_KEY',
);

$client = new \GuzzleHttp\Client();

// Define array of request body.
$request_body = array();

try {
    $response = $client->request('GET','https://api.manyapis.com/v1-get-currency', array(
        'headers' => $headers,
        'json' => $request_body,
       )
    );
    print_r($response->getBody()->getContents());
 }
 catch (\GuzzleHttp\Exception\BadResponseException $e) {
    // handle exception or api errors.
    print_r($e->getMessage());
 }

 // ...

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json',
  'x-api-key' => 'API_KEY'
}

result = RestClient.get 'https://api.manyapis.com/v1-get-currency',
  params: {
  'code' => 'string'
}, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json',
  'x-api-key': 'API_KEY'
}

r = requests.get('https://api.manyapis.com/v1-get-currency', params={
  'code': 'string'
}, headers = headers)

print(r.json())

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        "x-api-key": []string{"API_KEY"},
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "https://api.manyapis.com/v1-get-currency", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

URL obj = new URL("https://api.manyapis.com/v1-get-currency?code=string");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

GET /v1-get-currency

Get currency facts and information

Parameters

Name In Type Required Description
code query string true code - currency code ISO 4217

Example responses

200 Response

{
  "code": "string",
  "name": "string",
  "symbol": "string",
  "symbolName": "string",
  "country": {
    "iso2": "string",
    "iso3": "string",
    "name": "string"
  }
}

Responses

Status Meaning Description Schema
200 OK Currency details response Currency
400 Bad Request Invalid request HttpError
401 Unauthorized Unauthorized request HttpError

v1ListCurrency

Code samples


const headers = {
  'Accept':'application/json',
  'x-api-key':'API_KEY'
};

fetch('https://api.manyapis.com/v1-list-currency',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

<?php

require 'vendor/autoload.php';

$headers = array(
    'Accept' => 'application/json',
    'x-api-key' => 'API_KEY',
);

$client = new \GuzzleHttp\Client();

// Define array of request body.
$request_body = array();

try {
    $response = $client->request('GET','https://api.manyapis.com/v1-list-currency', array(
        'headers' => $headers,
        'json' => $request_body,
       )
    );
    print_r($response->getBody()->getContents());
 }
 catch (\GuzzleHttp\Exception\BadResponseException $e) {
    // handle exception or api errors.
    print_r($e->getMessage());
 }

 // ...

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json',
  'x-api-key' => 'API_KEY'
}

result = RestClient.get 'https://api.manyapis.com/v1-list-currency',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json',
  'x-api-key': 'API_KEY'
}

r = requests.get('https://api.manyapis.com/v1-list-currency', headers = headers)

print(r.json())

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        "x-api-key": []string{"API_KEY"},
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "https://api.manyapis.com/v1-list-currency", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

URL obj = new URL("https://api.manyapis.com/v1-list-currency");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

GET /v1-list-currency

Get list of all currencies

Example responses

200 Response

[
  {
    "code": "string",
    "name": "string",
    "symbol": "string",
    "symbolName": "string",
    "country": {
      "iso2": "string",
      "iso3": "string",
      "name": "string"
    }
  }
]

Responses

Status Meaning Description Schema
200 OK List currencies response Inline
400 Bad Request Invalid request HttpError
401 Unauthorized Unauthorized request HttpError

Response Schema

Status Code 200

Name Type Required Restrictions Description
anonymous [Currency] false none [Currency details]
» code string false none Currency code ISO 4217
» name string false none Currency name
» symbol string false none Currency symbol
» symbolName string false none Currency symbol name
» country Country false none Country details
»» iso2 string false none Country code ISO 3166-1 alpha-2
»» iso3 string false none Country code ISO 3166-1 alpha-3
»» name string false none Country name

v1ConvertCurrency

Code samples


const headers = {
  'Accept':'application/json',
  'x-api-key':'API_KEY'
};

fetch('https://api.manyapis.com/v1-convert-currency?from=string&to=string',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

<?php

require 'vendor/autoload.php';

$headers = array(
    'Accept' => 'application/json',
    'x-api-key' => 'API_KEY',
);

$client = new \GuzzleHttp\Client();

// Define array of request body.
$request_body = array();

try {
    $response = $client->request('GET','https://api.manyapis.com/v1-convert-currency', array(
        'headers' => $headers,
        'json' => $request_body,
       )
    );
    print_r($response->getBody()->getContents());
 }
 catch (\GuzzleHttp\Exception\BadResponseException $e) {
    // handle exception or api errors.
    print_r($e->getMessage());
 }

 // ...

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json',
  'x-api-key' => 'API_KEY'
}

result = RestClient.get 'https://api.manyapis.com/v1-convert-currency',
  params: {
  'from' => 'string',
'to' => 'string'
}, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json',
  'x-api-key': 'API_KEY'
}

r = requests.get('https://api.manyapis.com/v1-convert-currency', params={
  'from': 'string',  'to': 'string'
}, headers = headers)

print(r.json())

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        "x-api-key": []string{"API_KEY"},
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "https://api.manyapis.com/v1-convert-currency", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

URL obj = new URL("https://api.manyapis.com/v1-convert-currency?from=string&to=string");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

GET /v1-convert-currency

Get exchange rate for a currency pair and convert amount from one currency to another

Parameters

Name In Type Required Description
amount query number false amount - amount to convert
from query string true from - currency to convert from
to query string true to - currency to convert to

Example responses

200 Response

{
  "from": "string",
  "to": "string",
  "exchangeRate": 0,
  "rateTime": "string",
  "originalAmount": 0,
  "convertedAmount": 0
}

Responses

Status Meaning Description Schema
200 OK Convert currency response ConvertCurrency
400 Bad Request Invalid request HttpError
401 Unauthorized Unauthorized request HttpError

Domain

Domain Tools APIs

v1GetDomainWhois

Code samples


const headers = {
  'Accept':'application/json',
  'x-api-key':'API_KEY'
};

fetch('https://api.manyapis.com/v1-get-domain-whois',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

<?php

require 'vendor/autoload.php';

$headers = array(
    'Accept' => 'application/json',
    'x-api-key' => 'API_KEY',
);

$client = new \GuzzleHttp\Client();

// Define array of request body.
$request_body = array();

try {
    $response = $client->request('GET','https://api.manyapis.com/v1-get-domain-whois', array(
        'headers' => $headers,
        'json' => $request_body,
       )
    );
    print_r($response->getBody()->getContents());
 }
 catch (\GuzzleHttp\Exception\BadResponseException $e) {
    // handle exception or api errors.
    print_r($e->getMessage());
 }

 // ...

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json',
  'x-api-key' => 'API_KEY'
}

result = RestClient.get 'https://api.manyapis.com/v1-get-domain-whois',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json',
  'x-api-key': 'API_KEY'
}

r = requests.get('https://api.manyapis.com/v1-get-domain-whois', headers = headers)

print(r.json())

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        "x-api-key": []string{"API_KEY"},
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "https://api.manyapis.com/v1-get-domain-whois", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

URL obj = new URL("https://api.manyapis.com/v1-get-domain-whois");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

GET /v1-get-domain-whois

Get domain WHOIS details and registration information

Parameters

Name In Type Required Description
domain query string false Domain name to get details for

Example responses

200 Response

{
  "domain": "string",
  "whoisJson": {}
}

Responses

Status Meaning Description Schema
200 OK Get domain whois response GetDomainWhoisOut
400 Bad Request Invalid request HttpError
401 Unauthorized Unauthorized request HttpError

Email

Reliable and Accurate Mailbox Verification APIs

v1GetEmail

Code samples


const headers = {
  'Accept':'application/json',
  'x-api-key':'API_KEY'
};

fetch('https://api.manyapis.com/v1-get-email?email=string',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

<?php

require 'vendor/autoload.php';

$headers = array(
    'Accept' => 'application/json',
    'x-api-key' => 'API_KEY',
);

$client = new \GuzzleHttp\Client();

// Define array of request body.
$request_body = array();

try {
    $response = $client->request('GET','https://api.manyapis.com/v1-get-email', array(
        'headers' => $headers,
        'json' => $request_body,
       )
    );
    print_r($response->getBody()->getContents());
 }
 catch (\GuzzleHttp\Exception\BadResponseException $e) {
    // handle exception or api errors.
    print_r($e->getMessage());
 }

 // ...

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json',
  'x-api-key' => 'API_KEY'
}

result = RestClient.get 'https://api.manyapis.com/v1-get-email',
  params: {
  'email' => 'string'
}, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json',
  'x-api-key': 'API_KEY'
}

r = requests.get('https://api.manyapis.com/v1-get-email', params={
  'email': 'string'
}, headers = headers)

print(r.json())

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        "x-api-key": []string{"API_KEY"},
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "https://api.manyapis.com/v1-get-email", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

URL obj = new URL("https://api.manyapis.com/v1-get-email?email=string");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

GET /v1-get-email

Get email validation details

Parameters

Name In Type Required Description
email query string true email - email address
verifyMx query boolean false verifyMx - verify domain dns for MX record
verifySmtp query boolean false verifySmtp - verify mailbox with SMTP Connect and Reply

Example responses

200 Response

{
  "email": "string",
  "validMx": true,
  "validSmtp": true,
  "validFormat": true,
  "isDisposable": true
}

Responses

Status Meaning Description Schema
200 OK Get email details response Email
400 Bad Request Invalid request HttpError
401 Unauthorized Unauthorized request HttpError

IP

IP2Location and IP GeoLocation Data APIs

v1GetIp

Code samples


const headers = {
  'Accept':'application/json',
  'x-api-key':'API_KEY'
};

fetch('https://api.manyapis.com/v1-get-ipv4-detail',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

<?php

require 'vendor/autoload.php';

$headers = array(
    'Accept' => 'application/json',
    'x-api-key' => 'API_KEY',
);

$client = new \GuzzleHttp\Client();

// Define array of request body.
$request_body = array();

try {
    $response = $client->request('GET','https://api.manyapis.com/v1-get-ipv4-detail', array(
        'headers' => $headers,
        'json' => $request_body,
       )
    );
    print_r($response->getBody()->getContents());
 }
 catch (\GuzzleHttp\Exception\BadResponseException $e) {
    // handle exception or api errors.
    print_r($e->getMessage());
 }

 // ...

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json',
  'x-api-key' => 'API_KEY'
}

result = RestClient.get 'https://api.manyapis.com/v1-get-ipv4-detail',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json',
  'x-api-key': 'API_KEY'
}

r = requests.get('https://api.manyapis.com/v1-get-ipv4-detail', headers = headers)

print(r.json())

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        "x-api-key": []string{"API_KEY"},
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "https://api.manyapis.com/v1-get-ipv4-detail", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

URL obj = new URL("https://api.manyapis.com/v1-get-ipv4-detail");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

GET /v1-get-ipv4-detail

Get IP GEO Location detail

Parameters

Name In Type Required Description
ip query string false IP Address

Example responses

200 Response

{
  "ip": "string",
  "city": {
    "name": "string",
    "latitude": 0,
    "longitude": 0,
    "state1": "string",
    "state2": "string",
    "timezone": "string"
  },
  "country": {
    "iso2": "string",
    "iso3": "string",
    "name": "string"
  },
  "asn": "string",
  "aso": "string"
}

Responses

Status Meaning Description Schema
200 OK Get ip details response IP
400 Bad Request Invalid request HttpError
401 Unauthorized Unauthorized request HttpError

Phone

Global Phone Number Validation & Lookup JSON APIs

v1GetPhone

Code samples


const headers = {
  'Accept':'application/json',
  'x-api-key':'API_KEY'
};

fetch('https://api.manyapis.com/v1-get-phone?phone=string',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

<?php

require 'vendor/autoload.php';

$headers = array(
    'Accept' => 'application/json',
    'x-api-key' => 'API_KEY',
);

$client = new \GuzzleHttp\Client();

// Define array of request body.
$request_body = array();

try {
    $response = $client->request('GET','https://api.manyapis.com/v1-get-phone', array(
        'headers' => $headers,
        'json' => $request_body,
       )
    );
    print_r($response->getBody()->getContents());
 }
 catch (\GuzzleHttp\Exception\BadResponseException $e) {
    // handle exception or api errors.
    print_r($e->getMessage());
 }

 // ...

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json',
  'x-api-key' => 'API_KEY'
}

result = RestClient.get 'https://api.manyapis.com/v1-get-phone',
  params: {
  'phone' => 'string'
}, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json',
  'x-api-key': 'API_KEY'
}

r = requests.get('https://api.manyapis.com/v1-get-phone', params={
  'phone': 'string'
}, headers = headers)

print(r.json())

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        "x-api-key": []string{"API_KEY"},
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "https://api.manyapis.com/v1-get-phone", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

URL obj = new URL("https://api.manyapis.com/v1-get-phone?phone=string");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

GET /v1-get-phone

Get phone validation details

Parameters

Name In Type Required Description
phone query string true Phone number to validate

Example responses

200 Response

{
  "number": "string",
  "valid": true,
  "country": "string",
  "callingCode": "string",
  "nationalNumber": "string",
  "type": "string"
}

Responses

Status Meaning Description Schema
200 OK Get phone details response Phone
400 Bad Request Invalid request HttpError
401 Unauthorized Unauthorized request HttpError

ShortUrl

Url Shortener API

v1CreateShortUrl

Code samples

const inputBody = '{
  "url": "string",
  "expiry": "5m"
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json',
  'x-api-key':'API_KEY'
};

fetch('https://api.manyapis.com/v1-create-short-url',
{
  method: 'POST',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

<?php

require 'vendor/autoload.php';

$headers = array(
    'Content-Type' => 'application/json',
    'Accept' => 'application/json',
    'x-api-key' => 'API_KEY',
);

$client = new \GuzzleHttp\Client();

// Define array of request body.
$request_body = array();

try {
    $response = $client->request('POST','https://api.manyapis.com/v1-create-short-url', array(
        'headers' => $headers,
        'json' => $request_body,
       )
    );
    print_r($response->getBody()->getContents());
 }
 catch (\GuzzleHttp\Exception\BadResponseException $e) {
    // handle exception or api errors.
    print_r($e->getMessage());
 }

 // ...

require 'rest-client'
require 'json'

headers = {
  'Content-Type' => 'application/json',
  'Accept' => 'application/json',
  'x-api-key' => 'API_KEY'
}

result = RestClient.post 'https://api.manyapis.com/v1-create-short-url',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'x-api-key': 'API_KEY'
}

r = requests.post('https://api.manyapis.com/v1-create-short-url', headers = headers)

print(r.json())

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Content-Type": []string{"application/json"},
        "Accept": []string{"application/json"},
        "x-api-key": []string{"API_KEY"},
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("POST", "https://api.manyapis.com/v1-create-short-url", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

URL obj = new URL("https://api.manyapis.com/v1-create-short-url");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

POST /v1-create-short-url

Create a short URL from a long URL

Body parameter

{
  "url": "string",
  "expiry": "5m"
}

Parameters

Name In Type Required Description
body body CreateShortUrl true Create short url request

Example responses

200 Response

{
  "url": "string",
  "shortUrl": "string",
  "sid": "string",
  "expiry": "5m",
  "expireAt": "string",
  "createdAt": "string",
  "updatedAt": "string"
}

Responses

Status Meaning Description Schema
200 OK Create short url response ShortUrl
400 Bad Request Invalid request HttpError
401 Unauthorized Unauthorized request HttpError

v1GetShortUrl

Code samples


const headers = {
  'Accept':'application/json',
  'x-api-key':'API_KEY'
};

fetch('https://api.manyapis.com/v1-get-short-url',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

<?php

require 'vendor/autoload.php';

$headers = array(
    'Accept' => 'application/json',
    'x-api-key' => 'API_KEY',
);

$client = new \GuzzleHttp\Client();

// Define array of request body.
$request_body = array();

try {
    $response = $client->request('GET','https://api.manyapis.com/v1-get-short-url', array(
        'headers' => $headers,
        'json' => $request_body,
       )
    );
    print_r($response->getBody()->getContents());
 }
 catch (\GuzzleHttp\Exception\BadResponseException $e) {
    // handle exception or api errors.
    print_r($e->getMessage());
 }

 // ...

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json',
  'x-api-key' => 'API_KEY'
}

result = RestClient.get 'https://api.manyapis.com/v1-get-short-url',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json',
  'x-api-key': 'API_KEY'
}

r = requests.get('https://api.manyapis.com/v1-get-short-url', headers = headers)

print(r.json())

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        "x-api-key": []string{"API_KEY"},
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "https://api.manyapis.com/v1-get-short-url", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

URL obj = new URL("https://api.manyapis.com/v1-get-short-url");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

GET /v1-get-short-url

Create a short URL from a long URL

Parameters

Name In Type Required Description
sid query string false Short url sid

Example responses

200 Response

{
  "url": "string",
  "shortUrl": "string",
  "sid": "string",
  "expiry": "5m",
  "expireAt": "string",
  "createdAt": "string",
  "updatedAt": "string"
}

Responses

Status Meaning Description Schema
200 OK response ShortUrl

v1ListShortUrl

Code samples


const headers = {
  'Accept':'application/json',
  'x-api-key':'API_KEY'
};

fetch('https://api.manyapis.com/v1-list-short-url',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

<?php

require 'vendor/autoload.php';

$headers = array(
    'Accept' => 'application/json',
    'x-api-key' => 'API_KEY',
);

$client = new \GuzzleHttp\Client();

// Define array of request body.
$request_body = array();

try {
    $response = $client->request('GET','https://api.manyapis.com/v1-list-short-url', array(
        'headers' => $headers,
        'json' => $request_body,
       )
    );
    print_r($response->getBody()->getContents());
 }
 catch (\GuzzleHttp\Exception\BadResponseException $e) {
    // handle exception or api errors.
    print_r($e->getMessage());
 }

 // ...

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json',
  'x-api-key' => 'API_KEY'
}

result = RestClient.get 'https://api.manyapis.com/v1-list-short-url',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json',
  'x-api-key': 'API_KEY'
}

r = requests.get('https://api.manyapis.com/v1-list-short-url', headers = headers)

print(r.json())

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        "x-api-key": []string{"API_KEY"},
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "https://api.manyapis.com/v1-list-short-url", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

URL obj = new URL("https://api.manyapis.com/v1-list-short-url");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

GET /v1-list-short-url

List short urls created by the user

Parameters

Name In Type Required Description
page query number false Page number
showExpired query string false Show expired urls

Enumerated Values

Parameter Value
showExpired true
showExpired false

Example responses

200 Response

[
  {
    "url": "string",
    "shortUrl": "string",
    "sid": "string",
    "expiry": "5m",
    "expireAt": "string",
    "createdAt": "string",
    "updatedAt": "string"
  }
]

Responses

Status Meaning Description Schema
200 OK response Inline

Response Schema

Status Code 200

Name Type Required Restrictions Description
anonymous [ShortUrl] false none none
» url string false none Original url
» shortUrl string false none Short url
» sid string false none Short url sid
» expiry string false none Short url expiry after which it will be deleted
» expireAt string false none Short url expiry timestamp
» createdAt string false none Created at timestamp
» updatedAt string false none Updated at timestamp

Enumerated Values

Property Value
expiry 5m
expiry 30m
expiry 1h
expiry 4h
expiry 12h
expiry 1d
expiry 3d
expiry 7d
expiry never

v1DeleteShortUrl

Code samples


const headers = {
  'Accept':'application/json',
  'x-api-key':'API_KEY'
};

fetch('https://api.manyapis.com/v1-delete-short-url',
{
  method: 'POST',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

<?php

require 'vendor/autoload.php';

$headers = array(
    'Accept' => 'application/json',
    'x-api-key' => 'API_KEY',
);

$client = new \GuzzleHttp\Client();

// Define array of request body.
$request_body = array();

try {
    $response = $client->request('POST','https://api.manyapis.com/v1-delete-short-url', array(
        'headers' => $headers,
        'json' => $request_body,
       )
    );
    print_r($response->getBody()->getContents());
 }
 catch (\GuzzleHttp\Exception\BadResponseException $e) {
    // handle exception or api errors.
    print_r($e->getMessage());
 }

 // ...

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json',
  'x-api-key' => 'API_KEY'
}

result = RestClient.post 'https://api.manyapis.com/v1-delete-short-url',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json',
  'x-api-key': 'API_KEY'
}

r = requests.post('https://api.manyapis.com/v1-delete-short-url', headers = headers)

print(r.json())

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        "x-api-key": []string{"API_KEY"},
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("POST", "https://api.manyapis.com/v1-delete-short-url", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

URL obj = new URL("https://api.manyapis.com/v1-delete-short-url");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

POST /v1-delete-short-url

Delete a short URL

Parameters

Name In Type Required Description
sid query string false Short url sid

Example responses

200 Response

{
  "isDeleted": true
}

Responses

Status Meaning Description Schema
200 OK Delete short url response Inline

Response Schema

Status Code 200

Name Type Required Restrictions Description
» isDeleted boolean false none Boolean flag to indicate if the url is deleted

v1UpdateShortUrl

Code samples

const inputBody = '{
  "sid": "string",
  "expiry": "5m"
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json',
  'x-api-key':'API_KEY'
};

fetch('https://api.manyapis.com/v1-update-short-url',
{
  method: 'PUT',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

<?php

require 'vendor/autoload.php';

$headers = array(
    'Content-Type' => 'application/json',
    'Accept' => 'application/json',
    'x-api-key' => 'API_KEY',
);

$client = new \GuzzleHttp\Client();

// Define array of request body.
$request_body = array();

try {
    $response = $client->request('PUT','https://api.manyapis.com/v1-update-short-url', array(
        'headers' => $headers,
        'json' => $request_body,
       )
    );
    print_r($response->getBody()->getContents());
 }
 catch (\GuzzleHttp\Exception\BadResponseException $e) {
    // handle exception or api errors.
    print_r($e->getMessage());
 }

 // ...

require 'rest-client'
require 'json'

headers = {
  'Content-Type' => 'application/json',
  'Accept' => 'application/json',
  'x-api-key' => 'API_KEY'
}

result = RestClient.put 'https://api.manyapis.com/v1-update-short-url',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'x-api-key': 'API_KEY'
}

r = requests.put('https://api.manyapis.com/v1-update-short-url', headers = headers)

print(r.json())

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Content-Type": []string{"application/json"},
        "Accept": []string{"application/json"},
        "x-api-key": []string{"API_KEY"},
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("PUT", "https://api.manyapis.com/v1-update-short-url", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

URL obj = new URL("https://api.manyapis.com/v1-update-short-url");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("PUT");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

PUT /v1-update-short-url

Update a short URL

Body parameter

{
  "sid": "string",
  "expiry": "5m"
}

Parameters

Name In Type Required Description
body body UpdateShortUrl true Update short url request

Example responses

200 Response

{
  "url": "string",
  "shortUrl": "string",
  "sid": "string",
  "expiry": "5m",
  "expireAt": "string",
  "createdAt": "string",
  "updatedAt": "string"
}

Responses

Status Meaning Description Schema
200 OK Update short url response ShortUrl

Utils

Utils

v1Me

Code samples


const headers = {
  'Accept':'application/json',
  'x-api-key':'API_KEY'
};

fetch('https://api.manyapis.com/v1-me',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

<?php

require 'vendor/autoload.php';

$headers = array(
    'Accept' => 'application/json',
    'x-api-key' => 'API_KEY',
);

$client = new \GuzzleHttp\Client();

// Define array of request body.
$request_body = array();

try {
    $response = $client->request('GET','https://api.manyapis.com/v1-me', array(
        'headers' => $headers,
        'json' => $request_body,
       )
    );
    print_r($response->getBody()->getContents());
 }
 catch (\GuzzleHttp\Exception\BadResponseException $e) {
    // handle exception or api errors.
    print_r($e->getMessage());
 }

 // ...

require 'rest-client'
require 'json'

headers = {
  'Accept' => 'application/json',
  'x-api-key' => 'API_KEY'
}

result = RestClient.get 'https://api.manyapis.com/v1-me',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Accept': 'application/json',
  'x-api-key': 'API_KEY'
}

r = requests.get('https://api.manyapis.com/v1-me', headers = headers)

print(r.json())

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Accept": []string{"application/json"},
        "x-api-key": []string{"API_KEY"},
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("GET", "https://api.manyapis.com/v1-me", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

URL obj = new URL("https://api.manyapis.com/v1-me");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

GET /v1-me

Get current user details with subscription details

Example responses

200 Response

{
  "_id": "string",
  "name": "string",
  "email": "string",
  "authProvider": "google",
  "metadata": {},
  "verifiedAt": "string",
  "createdAt": "string",
  "updatedAt": "string",
  "subscription": {
    "planId": "string",
    "name": "string",
    "amount": 0,
    "currency": "string",
    "interval": "monthly",
    "status": "active",
    "requestsPerMonth": 0,
    "metadata": {},
    "createdAt": "string",
    "updatedAt": "string"
  }
}

Responses

Status Meaning Description Schema
200 OK User details response Me

Screenshot

Screenshot API

v1CreateUrlScreenshot

Code samples

const inputBody = '{
  "websiteUrl": "string",
  "responseFormat": "base64",
  "modifications": {
    "type": "jpeg",
    "width": "1280",
    "height": "800",
    "fullPage": false,
    "quality": 100
  }
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json',
  'x-api-key':'API_KEY'
};

fetch('https://api.manyapis.com/v1-create-url-screenshot',
{
  method: 'POST',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

<?php

require 'vendor/autoload.php';

$headers = array(
    'Content-Type' => 'application/json',
    'Accept' => 'application/json',
    'x-api-key' => 'API_KEY',
);

$client = new \GuzzleHttp\Client();

// Define array of request body.
$request_body = array();

try {
    $response = $client->request('POST','https://api.manyapis.com/v1-create-url-screenshot', array(
        'headers' => $headers,
        'json' => $request_body,
       )
    );
    print_r($response->getBody()->getContents());
 }
 catch (\GuzzleHttp\Exception\BadResponseException $e) {
    // handle exception or api errors.
    print_r($e->getMessage());
 }

 // ...

require 'rest-client'
require 'json'

headers = {
  'Content-Type' => 'application/json',
  'Accept' => 'application/json',
  'x-api-key' => 'API_KEY'
}

result = RestClient.post 'https://api.manyapis.com/v1-create-url-screenshot',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'x-api-key': 'API_KEY'
}

r = requests.post('https://api.manyapis.com/v1-create-url-screenshot', headers = headers)

print(r.json())

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Content-Type": []string{"application/json"},
        "Accept": []string{"application/json"},
        "x-api-key": []string{"API_KEY"},
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("POST", "https://api.manyapis.com/v1-create-url-screenshot", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

URL obj = new URL("https://api.manyapis.com/v1-create-url-screenshot");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

POST /v1-create-url-screenshot

Create a screenshot of a url and return the image as base64 encoded string or binary stream

Body parameter

{
  "websiteUrl": "string",
  "responseFormat": "base64",
  "modifications": {
    "type": "jpeg",
    "width": "1280",
    "height": "800",
    "fullPage": false,
    "quality": 100
  }
}

Parameters

Name In Type Required Description
body body CreateUrlScreenshotRequest true Create url screenshot request

Example responses

200 Response

"string"

Responses

Status Meaning Description Schema
200 OK Create url screenshot response CreateUrlScreenshot
400 Bad Request Invalid request HttpError
401 Unauthorized Unauthorized request HttpError

Image

Image Optimization, Transformation and OCR APIs

v1GetTextFromImage

Code samples

const inputBody = '{
  "text": "string"
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json',
  'x-api-key':'API_KEY'
};

fetch('https://api.manyapis.com/v1-get-text-from-image',
{
  method: 'POST',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

<?php

require 'vendor/autoload.php';

$headers = array(
    'Content-Type' => 'application/json',
    'Accept' => 'application/json',
    'x-api-key' => 'API_KEY',
);

$client = new \GuzzleHttp\Client();

// Define array of request body.
$request_body = array();

try {
    $response = $client->request('POST','https://api.manyapis.com/v1-get-text-from-image', array(
        'headers' => $headers,
        'json' => $request_body,
       )
    );
    print_r($response->getBody()->getContents());
 }
 catch (\GuzzleHttp\Exception\BadResponseException $e) {
    // handle exception or api errors.
    print_r($e->getMessage());
 }

 // ...

require 'rest-client'
require 'json'

headers = {
  'Content-Type' => 'application/json',
  'Accept' => 'application/json',
  'x-api-key' => 'API_KEY'
}

result = RestClient.post 'https://api.manyapis.com/v1-get-text-from-image',
  params: {
  }, headers: headers

p JSON.parse(result)

import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'x-api-key': 'API_KEY'
}

r = requests.post('https://api.manyapis.com/v1-get-text-from-image', headers = headers)

print(r.json())

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Content-Type": []string{"application/json"},
        "Accept": []string{"application/json"},
        "x-api-key": []string{"API_KEY"},
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("POST", "https://api.manyapis.com/v1-get-text-from-image", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

URL obj = new URL("https://api.manyapis.com/v1-get-text-from-image");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

POST /v1-get-text-from-image

Get Text From Image with OCR

Body parameter

{
  "text": "string"
}

Parameters

Name In Type Required Description
body body GetTextFromImageResponse true body

Example responses

200 Response

{
  "image": {},
  "url": "string",
  "lang": "string",
  "psm": "string"
}

Responses

Status Meaning Description Schema
200 OK Get text from image response GetTextFromImageRequest
400 Bad Request Invalid request HttpError
401 Unauthorized Unauthorized request HttpError

Schemas

Country

{
  "iso2": "string",
  "iso3": "string",
  "name": "string"
}

Country details

Properties

Name Type Required Restrictions Description
iso2 string false none Country code ISO 3166-1 alpha-2
iso3 string false none Country code ISO 3166-1 alpha-3
name string false none Country name

Currency

{
  "code": "string",
  "name": "string",
  "symbol": "string",
  "symbolName": "string",
  "country": {
    "iso2": "string",
    "iso3": "string",
    "name": "string"
  }
}

Currency details

Properties

Name Type Required Restrictions Description
code string false none Currency code ISO 4217
name string false none Currency name
symbol string false none Currency symbol
symbolName string false none Currency symbol name
country Country false none Country details

ConvertCurrency

{
  "from": "string",
  "to": "string",
  "exchangeRate": 0,
  "rateTime": "string",
  "originalAmount": 0,
  "convertedAmount": 0
}

Convert currency response

Properties

Name Type Required Restrictions Description
from string false none Currency to convert from
to string false none Currency to convert to
exchangeRate number false none Exchange rate
rateTime string false none Time of the exchange rate
originalAmount number false none Original amount input
convertedAmount number false none Converted amount

GetDomainWhoisOut

{
  "domain": "string",
  "whoisJson": {}
}

Domain WHOIS details

Properties

Name Type Required Restrictions Description
domain string false none Domain name
whoisJson object false none WHOIS JSON

Email

{
  "email": "string",
  "validMx": true,
  "validSmtp": true,
  "validFormat": true,
  "isDisposable": true
}

Email validation details

Properties

Name Type Required Restrictions Description
email string false none email address
validMx boolean false none is the domain is valid with dns MX record
validSmtp boolean false none is email address valid with SMTP Connect and Reply
validFormat boolean false none is email valid format
isDisposable boolean false none is disposable email

IP

{
  "ip": "string",
  "city": {
    "name": "string",
    "latitude": 0,
    "longitude": 0,
    "state1": "string",
    "state2": "string",
    "timezone": "string"
  },
  "country": {
    "iso2": "string",
    "iso3": "string",
    "name": "string"
  },
  "asn": "string",
  "aso": "string"
}

IP GEO Location details

Properties

Name Type Required Restrictions Description
ip string false none IP Address
city object false none none
» name string false none City Name
» latitude number false none City latitude
» longitude number false none City longitude
» state1 string false none City state1
» state2 string false none City state2
» timezone string false none City timezone
country object false none none
» iso2 string false none Country code ISO 3166-1 alpha-2
» iso3 string false none Country code ISO 3166-1 alpha-3
» name string false none Country name
asn string false none Carrier ASN
aso string false none Carrier organization

Continent

{
  "code": "string",
  "name": "string"
}

Continent details

Properties

Name Type Required Restrictions Description
code string false none Continent code ISO 3166-1 alpha-2
name string false none Continent name

City

{
  "name": "string",
  "region": "string",
  "longitude": 0,
  "latitude": 0,
  "accuracyRadius": 0,
  "timezone": "string",
  "postalCode": "string"
}

Properties

Name Type Required Restrictions Description
name string false none City Name
region string false none City region name
longitude number false none City longitude
latitude number false none City latitude
accuracyRadius number false none City radius
timezone string false none City time zone
postalCode string false none City postal code

Phone

{
  "number": "string",
  "valid": true,
  "country": "string",
  "callingCode": "string",
  "nationalNumber": "string",
  "type": "string"
}

Phone validation details

Properties

Name Type Required Restrictions Description
number string false none Phone number
valid boolean false none Is phone number valid
country string false none Country code associated with phone number ISO 3166-1 alpha-2
callingCode string false none Country calling code associated with phone number
nationalNumber string false none National number associated with phone number
type string false none Phone number type

CreateShortUrl

{
  "url": "string",
  "expiry": "5m"
}

Create short url request

Properties

Name Type Required Restrictions Description
url string false none long url
expiry string false none Short url expiry after which it will be deleted

Enumerated Values

Property Value
expiry 5m
expiry 30m
expiry 1h
expiry 4h
expiry 12h
expiry 1d
expiry 3d
expiry 7d
expiry never

UpdateShortUrl

{
  "sid": "string",
  "expiry": "5m"
}

Update short url request

Properties

Name Type Required Restrictions Description
sid string false none short url sid
expiry string false none Short url expiry after which it will be deleted

Enumerated Values

Property Value
expiry 5m
expiry 30m
expiry 1h
expiry 4h
expiry 12h
expiry 1d
expiry 3d
expiry 7d
expiry never

ShortUrl

{
  "url": "string",
  "shortUrl": "string",
  "sid": "string",
  "expiry": "5m",
  "expireAt": "string",
  "createdAt": "string",
  "updatedAt": "string"
}

Properties

Name Type Required Restrictions Description
url string false none Original url
shortUrl string false none Short url
sid string false none Short url sid
expiry string false none Short url expiry after which it will be deleted
expireAt string false none Short url expiry timestamp
createdAt string false none Created at timestamp
updatedAt string false none Updated at timestamp

Enumerated Values

Property Value
expiry 5m
expiry 30m
expiry 1h
expiry 4h
expiry 12h
expiry 1d
expiry 3d
expiry 7d
expiry never

Me

{
  "_id": "string",
  "name": "string",
  "email": "string",
  "authProvider": "google",
  "metadata": {},
  "verifiedAt": "string",
  "createdAt": "string",
  "updatedAt": "string",
  "subscription": {
    "planId": "string",
    "name": "string",
    "amount": 0,
    "currency": "string",
    "interval": "monthly",
    "status": "active",
    "requestsPerMonth": 0,
    "metadata": {},
    "createdAt": "string",
    "updatedAt": "string"
  }
}

Properties

Name Type Required Restrictions Description
_id string false none User id
name string false none User name
email string false none User email
authProvider string false none User auth provider
metadata object false none User metadata
verifiedAt string false none User verified at timestamp
createdAt string false none User created at timestamp
updatedAt string false none User updated at timestamp
subscription object false none User subscription details
» planId string false none Plan id to which the user is subscribed
» name string false none Plan name to which the user is subscribed
» amount number false none Plan amount to which the user is subscribed
» currency string false none Plan currency to which the user is subscribed
» interval string false none Plan interval
» status string false none Plan status
» requestsPerMonth number false none Plan requests per month
» metadata object false none Plan metadata
» createdAt string false none Plan created at timestamp
» updatedAt string false none Plan updated at timestamp

Enumerated Values

Property Value
authProvider google
authProvider github
authProvider email
interval monthly
interval yearly
status active
status canceled
status expired

CreateUrlScreenshot

"string"

Properties

Name Type Required Restrictions Description
anonymous string false none none

CreateUrlScreenshotRequest

{
  "websiteUrl": "string",
  "responseFormat": "base64",
  "modifications": {
    "type": "jpeg",
    "width": "1280",
    "height": "800",
    "fullPage": false,
    "quality": 100
  }
}

Create url screenshot request

Properties

Name Type Required Restrictions Description
websiteUrl string false none Website url to take screenshot of
responseFormat string false none Response format
modifications object false none Modifications to apply to the screenshot
» type string false none Screenshot format
» width number false none Screenshot width
» height number false none Screenshot height
» fullPage boolean false none Screenshot full page
» quality number false none Screenshot quality. Note: Only applicable for jpeg format

Enumerated Values

Property Value
responseFormat base64
responseFormat binary
type jpeg
type png

GetTextFromImageResponse

{
  "text": "string"
}

Properties

Name Type Required Restrictions Description
text string false none Parsed text from image

GetTextFromImageRequest

{
  "image": {},
  "url": "string",
  "lang": "string",
  "psm": "string"
}

Properties

Name Type Required Restrictions Description
image object(Base64 encoded image) false none image
url string(Remote Image URL) false none url
lang string(Language of the text) false none language
psm string(Page segmentation mode) false none page

HttpError

{
  "status": 0,
  "name": "string",
  "message": "string",
  "errors": [
    {
      "value": "string",
      "msg": "string",
      "param": "string",
      "location": "string"
    }
  ]
}

Properties

Name Type Required Restrictions Description
status number false none http status code
name string false none error name
message string false none error message
errors [Error] false none array of errors

Error

{
  "value": "string",
  "msg": "string",
  "param": "string",
  "location": "string"
}

Properties

Name Type Required Restrictions Description
value any false none error value

anyOf

Name Type Required Restrictions Description
» anonymous string false none none

or

Name Type Required Restrictions Description
» anonymous number false none none

continued

Name Type Required Restrictions Description
msg string false none error message
param string false none error parameters
location string false none location of the error