Skip to content
This repository was archived by the owner on Apr 17, 2026. It is now read-only.
This repository was archived by the owner on Apr 17, 2026. It is now read-only.

How to deal with challenge required? #14

Closed

Description

@spapapan

I try to request the followers of a user like this:

    instagram.profile().getFollowers("user1")
            .setOnCompleteCallback(call ->
            {
                if (call.isSuccessful)
                {
                    List<String> followers = call.result;
                    for (String follower : followers)
                    {
                        Print.e(follower);
                    }
                }
            });

But I get the error challenge_required. How to deal with this error?

Activity

  1. spapapan commented on Jan 16, 2023

    @spapapan
    Author

    It is worth noting that I got this error the second time I tried to make a request, so it's not that I spammed.

  2. ErrorxCode commented on Jan 17, 2023

    @ErrorxCode
    Owner

    A big problem nowadays. Looks like instagram is improving their security algorithm day by day. They are somehow detection that we are using their API in unauthenticated way

    To avoid these challenge, you can :-

    • Use cache instead of logging everytime
    • Add human interpreted gap between every request
    • Do not use new accounts. accounts which are not older then 90 days suffer this problem the most. Instagram keep tracks of new account.

    I will update it as soon as I get the fix

  3. noirtier-villefort commented on Aug 18, 2023

    @noirtier-villefort

    A big problem nowadays. Looks like instagram is improving their security algorithm day by day. They are somehow detection that we are using their API in unauthenticated way

    To avoid these challenge, you can :-

    * Use cache instead of logging everytime
    
    * Add human interpreted gap between every request
    
    * Do not use new accounts. accounts which are not older then 90 days suffer this problem the most. Instagram keep tracks of new account.
    

    I will update it as soon as I get the fix

    Maybe we can avoid it by updating APP_VERSION in instagram4j IGConstants and using new IGAndroidDevice`s ???

  4. ErrorxCode commented on Aug 27, 2023

    @ErrorxCode
    Owner

    A big problem nowadays. Looks like instagram is improving their security algorithm day by day. They are somehow detection that we are using their API in unauthenticated way
    To avoid these challenge, you can :-

    * Use cache instead of logging everytime
    
    * Add human interpreted gap between every request
    
    * Do not use new accounts. accounts which are not older then 90 days suffer this problem the most. Instagram keep tracks of new account.
    

    I will update it as soon as I get the fix

    Maybe we can avoid it by updating APP_VERSION in instagram4j IGConstants and using new IGAndroidDevice`s ???

    Yeah, this is one of the crucial factor which is causing this problem. But instead of fixing that, we are again reverse engineering Instagram API with all the factors and constants taking in account. This one will be using Web API where as old instagran4j was using mobile version API.
    So instead of contributing to instagram4j, you can contribute in making of this new API

  5. Repository owner locked and limited conversation to collaborators on Apr 4, 2024
  6. converted this issue into a discussion #41 on Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions