Quickstart
A quick way to start using the Peekalink API
In this guide, you’ll learn how to make your first request to the Peekalink API. By the end, you’ll be able to send a link to Peekalink and receive a detailed, enriched preview in return.
Prerequisites
- API Key: Sign up and visit the Dashboard to get your API key.
- HTTP Client: Any tool you prefer (cURL, Postman, or your favorite language’s HTTP library).
1. Get Your API Key
Head over to the Dashboard and copy your API key. You’ll use this key to authenticate your requests.
2. Make Your First Request
Below is a simple example using curl
. Replace YOUR_API_KEY
with your actual key, and LINK_TO_PREVIEW
with the URL you want to preview.
For example:
3. Check the Response
A successful request returns a JSON object with rich metadata. Here’s an example of what you might see when previewing a YouTube video:
All successful responses will return a JSON object with the following pattern:
- title: The title extracted from the link.
- description: A descriptive summary, if available.
- image: Optimized image previews hosted on Peekalink’s CDN.
- Platform-specific data: For YouTube Videos, you’ll see a
youtubeVideo
object with details like viewCount, likeCount, and duration.
4. Build Into Your Application
You can now use this metadata to create rich previews in your app. For example:
- Social Feeds: Show thumbnails, titles, descriptions and platform-specific details for shared links.
- AI Chatbots: Give your bot immediate context about shared URLs.
- Content Aggregation: Store and analyze structured link metadata at scale.
5. Next Steps
- Explore the API Reference to learn about all supported formats and fields.
- Check the Supported Link Types and Blog for best practices and advanced integrations.
- View Pricing to select the plan that matches your usage needs.
You’ve just made your first request to Peekalink and received a rich link preview 🎉.
Happy building! 🚀