api-builder

Package Playwright browser automation into FastAPI endpoints with Pydantic models.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/nguynbon03/API-XuongMedia-Backup --skill api-builder-nguynbon03
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-builder
Source: https://github.com/nguynbon03/API-XuongMedia-Backup/tree/main/.claude/skills/api-builder
Command: npx skills add https://github.com/nguynbon03/API-XuongMedia-Backup --skill api-builder-nguynbon03

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Websites without APIs hinder automation and integration. api-builder provides a way to turn any website into a customizable API by packaging browser automation or scraping tasks into FastAPI endpoints, enabling rapid integration and automation.

Core Features & Use Cases

  • Browser automation (backend) + FastAPI (interface) to create on-demand APIs for non-API websites.
  • Record interactions, wrap into Python functions, expose endpoints, and add authentication, rate limiting, and automatic Swagger docs.
  • Use cases include rapid integration of legacy sites, automated data collection, and prototyping APIs from existing web interfaces.

Quick Start

Record a website interaction, wrap it as a Python function, and expose it via FastAPI with authentication.

Frequently Asked Questions about api-builder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create an API for a website that doesn't have one?

You can create an API for a non-API website by packaging browser automation or scraping tasks into FastAPI endpoints. This approach wraps website interactions into Python functions, exposing them as on-demand APIs with automatic Swagger documentation.

Can I use Playwright browser automation with FastAPI to scrape websites?

Yes, Playwright-based browser automation can be integrated with FastAPI to scrape websites. This combination allows you to record website interactions, wrap them as Python functions, and expose them as customizable API endpoints for automated data collection.

How do I add authentication and rate limiting to a custom web scraping API?

You can add API key authentication and rate limiting to a custom web scraping API by configuring these options within the FastAPI framework. This secures your generated endpoints and controls traffic when automating interactions with target websites.

What is the best way to automate interactions with legacy websites lacking native APIs?

The best way to automate interactions with legacy websites lacking native APIs is wrapping browser automation into FastAPI endpoints. This enables rapid integration of existing web interfaces into real-world workflows without waiting for official API support.

Do I need Pydantic models to build a FastAPI endpoint for web scraping?

Yes, Pydantic models are required to define the request and response schemas when building a FastAPI endpoint for web scraping. They ensure structured data validation for your automated browser interactions and generated API responses.