Simple, Free and Easy to use Public api
Endpoints
Deployment
Development
Search
reddit- Search for posts in redditurban dict- Search for definitions in urban dictwallpapers- Fetch wallpapers from redditnpm search- Search for npm packages1337x search- Search for torrents in 1337x
Language
Tools
password- Generates a random password according to the given lengthcolor_palette- Generate color palettes from imagescurrency- Exchange rate from 'x' to 'y'. Data is scraped from x-rates
File server
Fun
This api is open source, you can deploy your own version easily 🤗
git clone https://github.com/Itz-fork/Nexa-API
cd Nexa-API
pip3 install -r requirements.txt
bash start.shHere are somethings to note,
- You can find api wrappers in
wrappersdirectory - You can find config files in
configdirectory - Reusable functions are located in
functionsdirectory - You can find routes in
routesdirectory - Use
start scriptwhen running the dev server (bash start.sh dev)
- Create a new file in
routesdirectory (Ex:myRoute.py) - Add this code (Here we add new route named
/testwhich returns the text,Hello from Fastapi, Nexa API 🌊)
fromfastapiimportAPIRouterfrom ..functions.responseimportsend_responseroute=APIRouter()
@route.get("/test")asyncdeftest_route():
returnawaitsend_response("Hello from Nexa API 🌊")- Start the development server
bash start.sh dev- Licensed under MIT License
- Color scheme by catppuccin
- Swagger UI Dark theme by Itz-fork
