FastAPI

Backend

FastAPI is a Python framework for building APIs, and it's what the Web Security Scanner backend is built on.

How I use FastAPI

It brings automatic documentation, data validation and async database access through SQLAlchemy.

You get an API that rejects invalid data before processing and returns a clear message about what's wrong. The documentation comes from the code itself, so it always matches what the API actually does, which makes connecting other systems easier.

In practice I describe the shape of incoming and outgoing data with Pydantic models, so FastAPI checks every request on its own. Database access is asynchronous through SQLAlchemy, so the API doesn't sit idle while waiting on the database or an external site, which matters when one scan runs many checks.

I choose it when Python is a more natural fit for a project than JavaScript, and the frontend connects to it like any other REST API.

Used in: Web Security Scanner.

Projects using FastAPI

Websites and apps I built where FastAPI was used.

  • Web Security Scanner — Free Website Security Check

    Web Security Scanner — Free Website Security Check

    My own product: a passive website security scanner with more than 240 automated checks. Enter an address and get a score and a list of issues by area: SSL and TLS, HTTP headers, DNS, GDPR and cookies, SEO, performance, CORS, APIs and dependencies. The scanner sends no attacks and never changes the site it checks, and it has four strictness levels. It comes with a separate malware scanner with a damage report, a public results gallery and a blog with guides. Bilingual (Serbian and English) and free to use, with a Pro subscription through Lemon Squeezy. The backend is Python and FastAPI in Docker, with a Supabase database.

Frequently asked questions about FastAPI

What is FastAPI?

FastAPI is a Python framework for building APIs based on type hints. From those types it validates request data, creates documentation and supports asynchronous code.

Does FastAPI create API documentation automatically?

Yes, FastAPI automatically builds an OpenAPI schema and interactive documentation from the code. Every endpoint can be tried directly in the browser, and the docs change along with the code.

Do you build APIs with FastAPI?

Yes, I use FastAPI for API services in Python. The Web Security Scanner backend runs on it, with data validation and async database access through SQLAlchemy.

How much does a website or app built with FastAPI cost?

It depends on the type of project: Website Security Review from €80. These are starting prices; you get the final price and timeline in a written offer by email.

All skills →