Social Media API for JavaScript
Access social media data from Node.js, Deno, Bun, or browser-side JavaScript. Use the native fetch API or axios to pull creator profiles, video analytics, and trending content across six platforms.
Key Features
- Works with native fetch, axios, or any HTTP client
- Full TypeScript compatibility with typed JSON responses
- Async/await support for clean, readable code
- Build with Next.js, Express, Fastify, or serverless functions
- Works in Node.js, Deno, Bun, and edge runtimes
Code Example
const API_KEY = 'your_api_key_here'
const BASE_URL = 'https://api.creatorcrawl.com/v1'
const headers = { 'x-api-key': API_KEY }
const profileResp = await fetch(
`${BASE_URL}/tiktok/profile?handle=charlidamelio`,
{ headers }
)
const profile = await profileResp.json()
console.log(`${profile.user.nickname}: ${profile.stats.followerCount} followers`)
const videosResp = await fetch(
`${BASE_URL}/tiktok/profile/videos?handle=charlidamelio`,
{ headers }
)
const { videos } = await videosResp.json()
videos.slice(0, 5).forEach(v =>
console.log(` ${v.desc.slice(0, 60)} - ${v.stats.playCount} views`)
)Getting Started
Get your API key
Sign up at creatorcrawl.com and copy your API key from the dashboard. You get 250 free credits, no card required.
Choose your HTTP client
Use the native fetch API (Node.js 18+, Deno, Bun) or install axios with npm install axios. No SDK needed.
Make your first call
Use fetch() or axios.get() with your API key in the x-api-key header. The base URL is https://api.creatorcrawl.com/v1.
Parse the response
Call .json() on the fetch response or access .data on the axios response. All endpoints return structured JSON.
Frequently Asked Questions
Does this work in the browser?
The API supports CORS, but you should never expose your API key in client-side code. Use a backend proxy or serverless function to keep your key secure.
Is there a TypeScript SDK?
Not yet, but the REST API returns predictable JSON structures that are easy to type. You can define your own TypeScript interfaces for the response shapes.
Can I use this with Next.js API routes?
Yes. Call the CreatorCrawl API from your Next.js API routes or Server Components. Store your API key in an environment variable and access it server-side only.
How do I handle rate limiting?
CreatorCrawl has no rate limits. You can make as many requests as your credit balance allows without throttling or cooldown periods.
What Node.js version do I need?
Node.js 18+ is recommended for native fetch support. If you use an older version, install node-fetch or use axios instead.