مستكشف API
اختبار REST API في المتصفح مع تنسيق JSON
Requests are sent directly from your browser using fetch(). The target API must allow CORS (Access-Control-Allow-Origin) for cross-origin requests to succeed. Public APIs like JSONPlaceholder work out of the box.
Test REST requests and inspect responses in one place
API debugging usually breaks across multiple tabs: one place for cURL, another for auth headers, another for JSON formatting. The API Explorer keeps the request, the response, and the formatted payload together, with browser mode for public APIs and proxy mode when CORS gets in the way. That makes it useful for classic REST APIs, AI inference endpoints, and JSON-based tool gateways.
Use the API Explorer when you need to
Replay a request from cURL
Paste a cURL command from docs, logs, or terminal history and import the method, URL, headers, auth, and body.
Inspect a JSON API response
Send the request, then switch between formatted, raw, and tree views without leaving the page.
Quickly debug auth, prompt, and header issues
Adjust bearer, basic, or API key auth alongside headers and resend the request in seconds, even when the body contains structured AI instructions or tool payloads.
How to test an API request quickly
- 1
Enter the request URL manually or import a cURL command from your terminal or API docs.
- 2
Choose browser mode for CORS-enabled APIs or proxy mode for blocked endpoints, then set the method, headers, auth, and request body.
- 3
Inspect status, timing, response headers, and the formatted JSON body to confirm what changed.
Keep going
Read the REST API testing guide
See a fuller workflow for reproducing and debugging API requests.
Format JSON payloads
Clean up copied request and response bodies before sharing or diffing them.
Compare two API responses
Spot structural changes between expected and actual payloads faster.
Inspect JWT tokens
Decode bearer tokens when an auth bug might be caused by claims or expiry.
Common API debugging workflows
Recreate the request in the browser, tweak one header, token, or JSON body field, and resend immediately.
Run the same request twice, then pass both payloads into JSON Compare for structural diffs.
Test auth, body shape, and response timing before you start debugging frontend code.
أدوات ذات صلة
الأسئلة الشائعة
أدخل الرابط، اختر الطريقة (GET/POST/…)، أضف الرؤوس والجسم، ثم «إرسال». يستخدم fetch() من متصفحك مباشرة.
الخادم لا يرسل Access-Control-Allow-Origin. ميزة أمان في المتصفح. جرّب API عام يسمح بـ CORS أو بيئة خادمية.
لا — الطلب يذهب مباشرة من متصفحك للـ API. راقب تبويب الشبكة.
نعم — Bearer أو Basic أو رؤوس مخصصة من تبويب المصادقة؛ تبقى في المتصفح.