المطور والمرجع

واجهة التقاط الشاشات API

لصور عالية الجودة فورًا مع واجهتنا المؤسسية. ضمان 99.99% وتخصيص قوي للمطورين.

طلب الرؤوس

Name Required Description
X-RapidAPI-Key required Your RapidAPI key. Get one free.
X-RapidAPI-Host required website-screenshot-capture-api.p.rapidapi.com

نقاط النهاية

GET /v1/screenshots/image

صورة

حدود

NameTypeRequiredDefaultConstraints
urlstringoptional—مطلوب
widthstringoptional—الافتراضي: 1920
heightstringoptional—الافتراضي: 1080
typestringoptional—الافتراضي: png
qualitystringoptional—الافتراضي: 80
full_pagestringoptional—الافتراضي: false
dark_modestringoptional—الافتراضي: false
block_adsstringoptional—الافتراضي: true
emulate_devicestringoptional—اختياري
delaystringoptional—الافتراضي: 0
timeoutstringoptional—الافتراضي: 30000

أمثلة على الكود

curl --request GET \
  --url 'https://website-screenshot-capture-api.p.rapidapi.com/v1/screenshots/image?url=example&width=example' \
  --header 'x-rapidapi-key: YOUR_API_KEY' \
  --header 'x-rapidapi-host: website-screenshot-capture-api.p.rapidapi.com'
GET /v1/screenshots/json

JSON Base64

حدود

NameTypeRequiredDefaultConstraints
urlstringoptional—مطلوب
widthstringoptional—الافتراضي: 1920
heightstringoptional—الافتراضي: 1080
typestringoptional—الافتراضي: png
qualitystringoptional—الافتراضي: 80
full_pagestringoptional—الافتراضي: false
dark_modestringoptional—الافتراضي: false
block_adsstringoptional—الافتراضي: true
emulate_devicestringoptional—اختياري
delaystringoptional—الافتراضي: 0
timeoutstringoptional—الافتراضي: 30000

أمثلة على الكود

curl --request GET \
  --url 'https://website-screenshot-capture-api.p.rapidapi.com/v1/screenshots/json?url=example&width=example' \
  --header 'x-rapidapi-key: YOUR_API_KEY' \
  --header 'x-rapidapi-host: website-screenshot-capture-api.p.rapidapi.com'
GET /v1/screenshots/pdf

PDF

حدود

NameTypeRequiredDefaultConstraints
urlstringoptional—مطلوب
paper_sizestringoptional—الافتراضي: A4
landscapestringoptional—الافتراضي: false
scalestringoptional—الافتراضي: 1.0
print_backgroundstringoptional—الافتراضي: true
block_adsstringoptional—الافتراضي: true
delaystringoptional—الافتراضي: 0

أمثلة على الكود

curl --request GET \
  --url 'https://website-screenshot-capture-api.p.rapidapi.com/v1/screenshots/pdf?url=example&paper_size=example' \
  --header 'x-rapidapi-key: YOUR_API_KEY' \
  --header 'x-rapidapi-host: website-screenshot-capture-api.p.rapidapi.com'
GET /v1/devices

الأجهزة

أمثلة على الكود

curl --request GET \
  --url 'https://website-screenshot-capture-api.p.rapidapi.com/v1/devices' \
  --header 'x-rapidapi-key: YOUR_API_KEY' \
  --header 'x-rapidapi-host: website-screenshot-capture-api.p.rapidapi.com'

مثال تفاعلي

website-screenshot-capture-api
$ GET /v1/screenshots/image
{
  "screenshot": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...",
  "url": "https://example.com",
  "options": {
    "width": 1920,
    "height": 1080,
    "type": "png",
    "full_page": false
  }
}

دليل التكامل والاستخدام

Transform web pages into high-quality images instantly with our enterprise-grade screenshot API. Featuring 99.99% uptime and powerful customization options for developers who demand reliability and precision.

🎯 Try the Live Demo →

🚀 Key Features

  • Multiple Output Formats: PNG, JPEG, WebP support
  • Device Emulation: Capture screenshots from various device perspectives
  • Customizable Resolution: Up to 1920x1080 and beyond
  • Enterprise Reliability: 99.99% uptime guarantee
  • Advanced Controls: Dark mode, ad blocking, custom delays, and more

✅ What Our Customers Say

“The Website Screenshot API is one of the most straightforward and reliable APIs I’ve seen on the internet. I spent weeks building what the screenshot API did in less than a minute”

Caleb Sakala - Co-founder of Chase Agents

🛠 API Endpoints

1. Capture Screenshot as Image

GET /v1/screenshots/image

Parameters:

  • url (required): The URL of the webpage to capture.
  • width (default: 1920): Width of the viewport in pixels.
  • height (default: 1080): Height of the viewport in pixels.
  • type (default: png): Output format (png/jpeg/webp).
  • quality (default: 80): Image quality (1-100), only for jpeg/webp.
  • full_page (default: false): Capture entire page height instead of just the viewport.
  • dark_mode (default: false): Emulate preferred color scheme as dark.
  • block_ads (default: true): Block ads and analytics trackers.
  • emulate_device (optional): Simulate a specific mobile or tablet device.
  • delay (default: 0): Wait time in milliseconds before capture.
  • timeout (default: 30000): Maximum load timeout in milliseconds.

2. Capture Screenshot as Base64 JSON

GET /v1/screenshots/json

Parameters:

  • url (required): The URL of the webpage to capture.
  • width (default: 1920): Width of the viewport in pixels.
  • height (default: 1080): Height of the viewport in pixels.
  • type (default: png): Output format (png/jpeg/webp).
  • quality (default: 80): Image quality (1-100), only for jpeg/webp.
  • full_page (default: false): Capture entire page height instead of just the viewport.
  • dark_mode (default: false): Emulate preferred color scheme as dark.
  • block_ads (default: true): Block ads and analytics trackers.
  • emulate_device (optional): Simulate a specific mobile or tablet device.
  • delay (default: 0): Wait time in milliseconds before capture.
  • timeout (default: 30000): Maximum load timeout in milliseconds.

Response Example:

{
  "screenshot": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...",
  "url": "https://example.com",
  "options": {
    "width": 1920,
    "height": 1080,
    "type": "png",
    "full_page": false
  }
}

3. Capture Screenshot as PDF

GET /v1/screenshots/pdf

Parameters:

  • url (required): Target website URL to convert to PDF.
  • paper_size (default: A4): PDF paper size (A4/Letter/Legal/A3).
  • landscape (default: false): Set orientation to landscape.
  • scale (default: 1.0): Render scale factor (0.1 to 2.0).
  • print_background (default: true): Print background colors and graphics.
  • block_ads (default: true): Block ads and analytics trackers.
  • delay (default: 0): Wait time in milliseconds before PDF generation.

4. List Available Devices

GET /v1/devices

Returns list of supported device emulation options, including width, height, user-agent, and device scale factors.

💡 Use Cases

  • E-commerce Monitoring
  • Website Testing
  • Content Archiving
  • Competitive Analysis
  • Automated Reports
  • Social Media Sharing

⚙️ Advanced Features

  • Ad Blocking: Clean screenshots without distractions
  • Custom User Agent: Flexible browser simulation
  • Dark Mode: Night-friendly captures
  • Full Page: Capture scrolling content
  • Device Emulation: Mobile-responsive testing
  • Flexible Timing: Customizable delays and timeouts

🌟 Why Choose Our API?

  • High Performance: Lightning-fast captures
  • Enterprise Ready: 99.99% uptime guarantee
  • Developer Friendly: Simple RESTful API
  • Flexible Output: Multiple image formats
  • Robust Features: Advanced customization options

الاشتراك والترخيص

يمكنك الوصول إلى واجهة برمجة التطبيقات هذه بمستويات جاهزة للاستخدام التجاري على RapidAPI. خطط مرنة مصممة للمشاريع الجانبية والشركات الناشئة وهياكل الإنتاج كبيرة الحجم.

عرض الأسعار والاشتراك

دعم المطورين

هل تحتاج إلى مساعدة في التكامل أو لديك طلب نقطة نهاية مخصص؟ فريقنا الهندسي موجود هنا للمساعدة في المصادقة ومخططات الحمولة وزيادة حدود معدل التردد العالي.

تواصل مع هندسة API

أداء النظام

مراقبة على مدار 24 ساعة طوال أيام الأسبوع مع وقت تشغيل بنسبة 99.9% لاتفاقية مستوى الخدمة. تم تصميمه فوق خدمات صغيرة سحابية أصلية مع تخزين مؤقت على الحافة موزع عالميًا لضمان أوقات استجابة منخفضة للغاية.

جميع الأنظمة التشغيلية