import { CodeSnippet } from "@/components/CodeSnippet"; import { Footer } from "@/components/Footer"; import { Button } from "@/components/ui/button"; import { motion } from "framer-motion"; import { DollarSign, Code2, Key, ChevronDown } from "lucide-react"; import { Link } from "react-router-dom"; import { useState } from "react"; import { getBaseUrl } from "@/lib/api-url"; export default function Home() { const exampleFetchCode = `// Completely easy to use API! const res = await fetch("${getBaseUrl()}/api/data"); const json = await res.json(); console.log(json) // Check out your console! `; const [openFaq, setOpenFaq] = useState(null); const faqs = [ { question: "Do I need an API key to use DitzzyAPI?", answer: "No! DitzzyAPI is completely free and doesn't require any API key. Just start making requests right away." }, { question: "Is there really no usage limit?", answer: "DitzzyAPI is free and unlimited for everyone. However, we implement rate limiting to ensure fair usage and keep our servers stable for all users." }, { question: "What are the rate limits?", answer: "We apply reasonable rate limits per IP address to prevent abuse and maintain server stability. Normal usage patterns are well within these limits." }, { question: "How do you keep the service free?", answer: "We're passionate about supporting the developer community. Rate limits help us manage costs while keeping the service free for everyone." } ]; return (
{/* Hero Section */}
DitzzyAPI has an official bot script, Click here to check now! Build faster with the
ultimate developer API
Free, unlimited, open-source API, and no API key required. Start building instantly with our developer-friendly API.
{/* Stats Section */}
{[ { value: "100%", label: "Free Forever" }, { value: "No Keys", label: "Just Start Coding" }, { value: "<100ms", label: "Avg Response" }, { value: "24/7", label: "Always Online" } ].map((stat, i) => (
{stat.value}
{stat.label}
))}
{/* Features Section */}

Why choose DitzzyAPI?

No registration, no API keys, no hidden fees. Just pure simplicity.

{[ { icon: Key, title: "No API Key Needed", desc: "Start using immediately. No sign-ups, no authentication hassles." }, { icon: DollarSign, title: "Free Unlimited", desc: "Completely free with unlimited requests. No credit card required." }, { icon: Code2, title: "Developer Friendly", desc: "Simple endpoints, clear documentation, and 24/7 availability." } ].map((feature, i) => (

{feature.title}

{feature.desc}

))}
{/* FAQ Section */}

Frequently Asked Questions

Everything you need to know about DitzzyAPI

{faqs.map((faq, i) => ( {openFaq === i && (
{faq.answer}
)}
))}
{/* CTA Section */}

Ready to get started?

Join thousands of developers using DitzzyAPI. No registration needed, just pick an endpoint and start coding!

); }