This project provides an API for fetching data layer information from a given URL.
- Clone this repository.
- Install the required dependencies with
pip install -r requirements.txt
.
Start the server with the command python main.py
.
The API has two endpoints:
GET /
: Returns a welcome message.POST /url
: Fetches the data layer from the provided URL.
To fetch the data layer from a URL, send a POST request to /url
with the following JSON body:
{
"target_url": "https://example.com"
}