# Genel Kullanımı

Bu API GET isteğiyle bir alan adı kabul edip, size çiğ WHOIS sorgusunu base64 ve çiğ yazı halinde döndürür.

## WHOIS Sorgulama

<mark style="color:blue;">`GET`</mark> `https://api.benegedeniz.com/whois/v1/lookup`

#### Query Parameters

| Name   | Type   | Description                             |
| ------ | ------ | --------------------------------------- |
| domain | string | Sorgulanacak alan adı (Ör. example.com) |

{% tabs %}
{% tab title="200 WHOIS verisi başarıyla alındığında dönen cevap." %}

```
{"status":"success","data":{"message":"WHOIS data succsessfully receieved.","statusCode":2000,"whois":{"raw":"ÇİĞ WHOIS CEVABI","base64":"BASE64 WHOIS CEVABI"}}}
```

{% endtab %}

{% tab title="400 Zorunlu parametrelerden biri veya birileri gönderilmediğinde dönen cevap." %}

```
{"status":"error","data":{"message":"Missing parameters.","statusCode":4000}}
```

{% endtab %}

{% tab title="404 Geçersiz TLD (uzantı) gönderildiğinde dönen cevap." %}

```
{"status":"error","data":{"message":"Invalid domain TLD.","statusCode":4004}}
```

{% endtab %}

{% tab title="406 Alan adı formatı geçersiz olunca dönen cevap." %}

```
{"status":"error","data":{"message":"Invalid domain format.","statusCode":4006}}
```

{% endtab %}

{% tab title="503 İlgili TLD için olan WHOIS sunucusuna bağlanılamayınca dönen cevap." %}

```
{"status":"error","data":{"message":"API server could connect to the required WHOIS server.","statusCode":5003}}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.benegedeniz.com/whois-sorgulama-api/genel-kullanim.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
