Abdul Multi-API
Docs
Endpoints
Get API Access
Abdul Multi-API
Complete documentation and ready-to-use code samples for each endpoint.
Get API Access
View Endpoints
📍 Base URL:
http://localhost:5000
🌤️ Weather API
Get weather information for any location
GET /api/weather?get=London
Example Code:
Python
JavaScript
Node.js
import
requests
response = requests.get(
'http://localhost:5000/api/weather?get=London'
) data = response.json()
print
(data[
'temperature'
])
fetch
(
'http://localhost:5000/api/weather?get=London'
) .
then
(r => r.
json
()) .
then
(data =>
console
.
log
(data.temperature))
const
fetch =
require
(
'node-fetch'
);
fetch
(
'http://localhost:5000/api/weather?get=London'
) .
then
(r => r.
json
()) .
then
(data =>
console
.
log
(data.temperature));
⏰ Time API
Get current time in any timezone
GET /api/time?get=Asia/Karachi
Example Code:
Python
JavaScript
Node.js
import
requests
r = requests.get(
'http://localhost:5000/api/time?get=Asia/Karachi'
)
print
(r.json()[
'time'
])
# 14:35:22
fetch
(
'http://localhost:5000/api/time?get=Asia/Karachi'
) .
then
(r => r.
json
()) .
then
(data =>
console
.
log
(data.time))
const
fetch =
require
(
'node-fetch'
);
fetch
(
'http://localhost:5000/api/time?get=Asia/Karachi'
) .
then
(r => r.
json
()) .
then
(data =>
console
.
log
(data.time));
💱 Currency Converter
Convert between currencies
GET /api/currency?from=USD&to=EUR&amount=100
Example Code:
Python
JavaScript
Node.js
import
requests
url =
'http://localhost:5000/api/currency'
params = {
'from'
:
'USD'
,
'to'
:
'EUR'
,
'amount'
:
'100'
} r = requests.get(url, params=params)
print
(r.json()[
'converted'
])
const
params =
'?from=USD&to=EUR&amount=100'
;
fetch
(
'http://localhost:5000/api/currency'
+ params) .
then
(r => r.
json
()) .
then
(d =>
console
.
log
(d.converted));
const
fetch =
require
(
'node-fetch'
);
const
url =
'http://localhost:5000/api/currency?from=USD&to=EUR&amount=100'
;
fetch
(url).
then
(r => r.
json
()).
then
(d =>
console
.
log
(d.converted));
💭 Quote API
Get inspirational quotes
GET /api/quote
Example Code:
Python
JavaScript
Node.js
import
requests
r = requests.get(
'http://localhost:5000/api/quote'
) quote = r.json()
print
(f
'{quote["text"]} - {quote["author"]}'
)
fetch
(
'http://localhost:5000/api/quote'
) .
then
(r => r.
json
()) .
then
(q =>
console
.
log
(
'\`${q.text} - ${q.author}\`'
))
const
fetch =
require
(
'node-fetch'
);
fetch
(
'http://localhost:5000/api/quote'
) .
then
(r => r.
json
()) .
then
(q =>
console
.
log
(\`\${q.text} - \${q.author}\`));
👤 User Generator
Generate random user data
GET /api/user
Example Code:
Python
JavaScript
Node.js
import
requests
r = requests.get(
'http://localhost:5000/api/user'
) user = r.json()
print
(f
'{user["full_name"]} ({user["email"]})'
)
fetch
(
'http://localhost:5000/api/user'
) .
then
(r => r.
json
()) .
then
(u =>
console
.
log
(u.full_name))
const
fetch =
require
(
'node-fetch'
);
fetch
(
'http://localhost:5000/api/user'
) .
then
(r => r.
json
()) .
then
(u =>
console
.
log
(u.full_name));
🌐 IP Information
Get IP geolocation details
GET /api/ipinfo
Example Code:
Python
JavaScript
Node.js
import
requests
r = requests.get(
'http://localhost:5000/api/ipinfo'
) info = r.json()
print
(f
'{info["ip"]} - {info["city"]}, {info["country"]}'
)
fetch
(
'http://localhost:5000/api/ipinfo'
) .
then
(r => r.
json
()) .
then
(i =>
console
.
log
(\`\${i.city}, \${i.country}\`))
const
fetch =
require
(
'node-fetch'
);
fetch
(
'http://localhost:5000/api/ipinfo'
) .
then
(r => r.
json
()) .
then
(i =>
console
.
log
(\`\${i.city}, \${i.country}\`));
😂 Joke API
Get random jokes
GET /api/joke
Example Code:
Python
JavaScript
Node.js
import
requests
r = requests.get(
'http://localhost:5000/api/joke'
) joke = r.json()
print
(f
'{joke["setup"]}\n{joke["punchline"]}'
)
fetch
(
'http://localhost:5000/api/joke'
) .
then
(r => r.
json
()) .
then
(j =>
console
.
log
(j.setup + '\n' + j.punchline))
const
fetch =
require
(
'node-fetch'
);
fetch
(
'http://localhost:5000/api/joke'
) .
then
(r => r.
json
()) .
then
(j =>
console
.
log
(j.setup + '\n' + j.punchline));
🔐 Password Generator
Generate secure passwords
GET /api/password?length=20
Example Code:
Python
JavaScript
Node.js
import
requests
r = requests.get(
'http://localhost:5000/api/password?length=20'
) pwd = r.json()
print
(pwd[
'password'
])
# Secure password
fetch
(
'http://localhost:5000/api/password?length=20'
) .
then
(r => r.
json
()) .
then
(p =>
console
.
log
(p.password))
const
fetch =
require
(
'node-fetch'
);
fetch
(
'http://localhost:5000/api/password?length=20'
) .
then
(r => r.
json
()) .
then
(p =>
console
.
log
(p.password));
🔗 URL Information
Get URL metadata
GET /api/urlinfo?get=https://example.com
Example Code:
Python
JavaScript
Node.js
import
requests
url =
'http://localhost:5000/api/urlinfo'
params = {
'get'
:
'https://example.com'
} r = requests.get(url, params=params) info = r.json()
print
(f
'Status: {info["status_code"]}'
)
const
url =
'http://localhost:5000/api/urlinfo?get=https://example.com'
;
fetch
(url) .
then
(r => r.
json
()) .
then
(d =>
console
.
log
(d.status_code))
const
fetch =
require
(
'node-fetch'
);
const
url =
'http://localhost:5000/api/urlinfo?get=https://example.com'
;
fetch
(url).
then
(r => r.
json
()).
then
(d =>
console
.
log
(d.status_code));
📚 Word Definition
Get word definitions
GET /api/word?get=python
Example Code:
Python
JavaScript
Node.js
import
requests
r = requests.get(
'http://localhost:5000/api/word?get=python'
) word = r.json()
for
defn
in
word[
'definitions'
]:
print
(defn[
'definition'
])
fetch
(
'http://localhost:5000/api/word?get=python'
) .
then
(r => r.
json
()) .
then
(w => w.definitions.
forEach
(d =>
console
.
log
(d.definition)))
const
fetch =
require
(
'node-fetch'
);
fetch
(
'http://localhost:5000/api/word?get=python'
) .
then
(r => r.
json
()) .
then
(w => w.definitions.
forEach
(d =>
console
.
log
(d.definition)));
Copied