Skip to content
YAS.SH
Network & DNS🌐 سيرفر YASمتاح عبر APIbeginner

عنوان IP الخاص بي (نص فقط)

يعرض عنوان IP العام الخاص بك كنص صريح ونظيف وسريع ومثالي لسكربتات السيرفر والأتمتة عبر curl.

معالجة عبر YAS · لا يتم تخزين المدخلات
جاهز للاستخدام الفوريمعالجة فورية فائقة السرعة
كل الأدوات →
Your public IP — plain text, curl-friendly
100% free / open-source — no API key. Client IP is resolved securely: proxy headers are only trusted when behind a configured reverse proxy (TRUST_PROXY).
curl (plain)
curl -s https://yas.sh/ip
curl (JSON)
curl -s https://yas.sh/ip?format=json
# {"ip":"1.2.3.4"}

curl -s https://yas.sh/api/v1/tools/ip
# 1.2.3.4

curl -X POST https://yas.sh/api/v1/tools/what-is-my-ip \
  -H "Content-Type: application/json" -d '{}'
# full geo + VPN/Tor
Why this is free & open-source
  • No paid feed — uses ipapi.co (1k/day) → ipwho.is → ip-api.com (45/min) fallback chain.
  • Tor detection via public bulk exit list https://check.torproject.org/torbulkexitlist (cached 1h).
  • VPN/proxy/hosting from free security flags (ipapi.co vpn/proxy/tor, ipwho.is security.*, ip-api.com proxy/hosting).
  • Client-IP headers (X-Real-IP / XFF / CF-Connecting-IP) are trusted only behind a configured proxy (TRUST_PROXY) — no spoofable echoes.
  • Self-hostable: no secret, no DB write, 15-min memory cache.

إيه اللي الأداة دي بتعمله؟

يعرض عنوان IP العام الخاص بك كنص صريح ونظيف وسريع ومثالي لسكربتات السيرفر والأتمتة عبر curl.

إمتى أستخدمها؟

  • جلب عنوان IP العام برمجياً في سكربتات bash و Python دون أي وسوم HTML إضافية.
  • تحديث سجلات DNS الديناميكية (Dynamic DNS - DDNS) لخوادمك المنزلية.
  • معرفة عنوان IP بسرعة البرق وبأقل استهلاك ممكن للبيانات.

مثال واقعي

الإدخال
curl https://yas.sh/ip
الناتج
198.51.100.42

استجابة سريعة بنص نقي مع ترويسة Content-Type: text/plain.

إدخال → معالجة → ناتج → الخطوة التالية

الإدخال
أرسل طلب HTTP عادي أو عبر الطرفية (Terminal).
المعالجة
يستخرج السيرفر عنوان العميل المباشر ويرسله كنص صريح فوراً.
الناتج
عنوان الـ IP العام فقط دون أي نصوص إضافية.
الخطوة التالية
مرر المخرجات إلى أدوات السكربت التالية في بيئة عملك.

أخطاء شائعة

  • استدعاء الرابط بشكل متكرر دون فاصل زمني مما قد يفعّل حدود المعدل (Rate Limiting).
  • توقع الحصول على معلومات الموقع الجغرافي (هذه الأداة مصممة للنص النقي فقط — استخدم What Is My IP للموقع).
  • استخدام بروتوكول HTTP غير المشفر بدلاً من HTTPS.

يعني إيه النتيجة

عنوان IP العام الصريح لشبكتك بصيغة مهيأة تماماً للاستخدام المباشر في الأوامر والسكربتات.

الخصوصية والأمان

Your input is sent to YAS infrastructure because the tool requires server-side processing or public network queries. Input is not stored.

API

Endpoint
POST https://yas.sh/api/v1/tools/ip
Request Header
Content-Type: application/json
cURL
curl -X POST "https://yas.sh/api/v1/tools/ip" \
  -H "Content-Type: application/json" \
  -d '{}'
JavaScript
const res = await fetch("https://yas.sh/api/v1/tools/ip", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({}),
});
const data = await res.json();
Python
import requests

r = requests.post("https://yas.sh/api/v1/tools/ip", json={})
data = r.json()
FieldTypeRequiredDescription
ipstringNoOptional specific IP to look up (defaults to your own).
Success response
{ "slug": "ip", "result": "8.8.8.8" }  // GET returns bare text: 8.8.8.8

Your public IP address and nothing else — also available as plain text via GET.

Error responses
  • 400 VALIDATION_ERROR — invalid input or unsupported option.
  • 413 PAYLOAD_TOO_LARGE — input exceeds the 64 KB limit.
  • 429 RATE_LIMIT_EXCEEDED — rate limit exceeded (60 req/min).
Limits
  • Maximum input: 64 KB per request.
  • Rate limit: 60 requests/min per IP address.
  • Authenticated accounts benefit from higher tier quotas.
اسأل مساعد YAS
🍪 ملفات الارتباط والخصوصية. ملفات ضرورية لتسجيل الدخول واللغة والسمة. قد يستخدم Google AdSense ملفات للإعلانات بعد اختيار «قبول الكل». يعمل reCAPTCHA على صفحات تسجيل الدخول والتواصل. كيفية استخدام Google للبيانات: https://policies.google.com/technologies/partner-sites سياسة الكوكيز · سياسة الخصوصية.
الإعدادات