The Web Crawler API is a simple API that allows you to crawl websites and store the crawled data in a database. It uses GuzzleHttp to send HTTP requests and parses the HTML content to extract links from web pages. The API is built with Laravel framework.
GET /api/crawl: Crawls a website and stores the crawled data in the database. Required query parameter: url. Optional query parameter: depth (default: 1).
GET /api: Retrieves all crawled data from the database.
DELETE /api/crawl/{id}: Deletes a specific crawled data record from the database.
DELETE /api/crawl: Deletes all crawled data records from the database.