> For the complete documentation index, see [llms.txt](https://trxyazilim.gitbook.io/instagram-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trxyazilim.gitbook.io/instagram-api/hesap-islemleri/kullanici-islemleri/takip-islemleri/takip-etme-istegi.md).

# Takip Etme İsteği

Takip Etme İşlemi İçin İki farklı fonksiyon bulunuyor kullanıcı id ile istek atma ve kullanıcı adı ile istek atma kullanıcı adı ile istek atarken ilk olarak kullanıcının bilgisini çekmekte bu nedenle iki kez istek atmaktan kaçınmak istiyorsanız eğer elinizde daha önceden veritabanında kayıt edilmiş kullanıcı id si var ise onunla işlem yapmanız daha iyi olur

```php
// Kullanıcı id ile takip isteği Atma
require 'vendor/autoload.php';

$ig = new trxyazilim\InstagramAPI();

$ig->login('username','password');
echo $ig->people->follow_id('user_id');// JSON Formatında Çıktı Verir


```

```php
// Kullanıcı adı ile istek atma
require 'vendor/autoload.php';

$ig = new trxyazilim\InstagramAPI();

$ig->login('username','password');
echo $ig->people->follow('username');// JSON Formatında Çıktı Verir


```

```json
{
  "previous_following": false,
  "friendship_status": {
    "is_private": false,
    "followed_by": false,
    "muting": false,
    "incoming_request": false,
    "subscribed": false,
    "is_eligible_to_subscribe": false,
    "blocking": false,
    "is_restricted": false,
    "following": true,
    "is_feed_favorite": false,
    "outgoing_request": false,
    "is_bestie": false
  },
  "status": "ok"
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://trxyazilim.gitbook.io/instagram-api/hesap-islemleri/kullanici-islemleri/takip-islemleri/takip-etme-istegi.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.
