Skip to content

fagun18/api-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Endpoint Finder

A Python script that parses an HTML page and identifies API endpoints and their HTTP methods.

Requirements

This script requires the following libraries:

  • requests
  • bs4
  • termcolor These can be installed using pip:
pip install requests bs4 termcolor

Usage

  • Set the target URL by changing the url variable in the script.
  • Run the script using python api_endpoint_finder.py.
  • The script will output the API endpoints and their HTTP methods.

Sample Output

GET https://api.example.com/v1/users
Payload: {}

POST https://api.example.com/v1/users/new
Payload: {'username': 'johndoe', 'password': 'password'}

GET https://api.example.com/v1/users/1
Payload: {}

PUT https://api.example.com/v1/users/1
Payload: {'username': 'johndoe', 'password': 'newpassword'}

DELETE https://api.example.com/v1/users/1
Payload: {}

PATCH https://api.example.com/v1/users/1
Payload: {'username': 'johndoe'}

HEAD https://api.example.com/v1/users
Payload: {}

The HTTP methods are color-coded as follows:

GET: #0f6ab4

POST: #10a54a

PUT: #c5862b

DELETE: #a41e22

PATCH: #D38042

HEAD: #ffd20f

🚀 About Me

I am a Software QA Engineer and Certified Ethical Hacker, these two of my professional Designations. I Design manual and automated test frameworks from scratch, SDLC utilizes Waterfall and Scrum. Also Work with Software QA, verification, and validation of software products, Multiple online form factor validations, verified algorithm designs and ran Matlab scripts

🔗 Connect with me

Medium linkedin twitter Hashnode Facebook YouTube Try Hack Me

Used By

This project is public:

Releases

No releases published

Packages

No packages published

Languages