api-response-mocker
Generate realistic mock API responses with fake data. Use for testing, prototyping, or creating sample data for frontend development.
npx skills add majiayu000/claude-skill-registry --skill api-response-mocker-dkyazzentwatwa-chatgpt-skills --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# API Response Mocker Generate realistic mock API responses with fake data using Faker. ## Features - **Schema-Based Generation**: Define response structure - **Faker Integration**: Realistic fake data - **Nested Objects**: Complex nested structures - **Arrays**: Generate lists of objects - **Relationships**: Reference other mock data - **Multiple Formats**: JSON, XML output ## Quick Start ```python from api_mocker import APIMocker mocker = APIMocker() # Generate user response user = mocker.generate({ "id": "uuid", "name": "name", "email": "email", "created_at": "datetime" }) # Generate list of users users = mocker.generate_list({ "id": "uuid", "name": "name", "email": "email" }, count=10) ``` ## CLI Usage ```bash # Generate from schema file python api_mocker.py --schema user_schema.json --output user.json # Generate list python api_mocker.py --schema product.json --count 50 --output products.json # Generate with seed (reproducible) python api_mocker.py --schema order.json --seed 42 --output order.json # Preview without saving python api_mocker.py --schema customer.json --preview ``` ## Schema Format Define fields using Faker provider names: ```json { "id": "uuid", "first_name": "f
- Features
- Quick Start
- CLI Usage
- Schema Format
- Available Data Types
- Personal
- Address
- Internet
- Business
- Financial
- Date/Time
- Text
- Numeric
- Advanced Schemas
Generate from schema file python api_mocker.py --schema user_schema.json --output user.json Generate list python api_mocker.py --schema product.json --count 50 --output products.json Generate with seed (reproducible) python api_mocker.py --schema order.json --seed 42 --output order.json Preview without saving python api_mocker.py --schema customer.json --preview
What does the api-response-mocker skill do?
Generate realistic mock API responses with fake data. Use for testing, prototyping, or creating sample data for frontend development.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill api-response-mocker-dkyazzentwatwa-chatgpt-skills --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
