instagrapi icon indicating copy to clipboard operation
instagrapi copied to clipboard

Create account

Open Nishant87555 opened this issue 1 year ago • 5 comments

Can ve create insta account using instagrapi

Nishant87555 avatar Jun 23 '23 19:06 Nishant87555

I am writing an automated account creation process

  1. Check account - api
  2. Check email - api
  3. Send mail - api
  4. Confirm email belonging-get registration code - api
  5. Failed to invoke the creation interface. /api/v1/accounts/create/ -400 Bad Request; feedback_required

ins version number: 269.0.0.18.75

Do you have a partner to talk to? My email address is :[email protected]

RDKclick avatar Jun 27 '23 09:06 RDKclick

For me it is working.

sunmasters avatar Jul 12 '23 18:07 sunmasters

@sunmasters What kind of agent did you use

RDKclick avatar Jul 13 '23 01:07 RDKclick

@Nishant87555 How to use it? Can I see the code?

RDKclick avatar Jul 13 '23 01:07 RDKclick

It is very difficult to create a valid account via Email, but with SMS using phone APIs it is much easier. I won't go into details but the steps are as follows:

  1. Create Phone Device: url: 'api/v1/launcher/mobileconfig/', method: 'POST', form: { "bool_opt_policy": '0', "mobileconfigsessionless": '', "api_version": '3', "unit_type": '1'; "query_hash": 'b75d780f1c4cb7ae635c0c24e5dad1cb8d8d0a8c97a412f11978fb61d981d352' "ts": current_timestamp, "device_id": uuid "fetch_type": 'ASYNC_FULL', }

  2. Check Valid Phone Number: url: '/api/v1/accounts/check_phone_number/', form: { "phone_id": phone_id, "login_nonce_map": '{}', "phone_number": phone_number, "_csrftoken": csrf_token, "guid": device_uuid, "device_id": device_id, "prefill_shown": 'False', }

  3. Send SMS Code:
    url: '/api/v1/accounts/send_signup_sms_code/', form: { "phone_id": phone_id, "phone_number": phone_number, "_csrftoken": csrf_token, "guid": phone_number, "device_id": device_id, "android_build_type": 'release', "waterfall_id": guid, }

  4. Validate SMS Code: url: '/api/v1/accounts/validate_signup_sms_code/', form: { "verification_code": verification_code, "phone_number": phone_number, "_csrftoken": csrf_token, "guid": device_uuid, "device_id": device_id, "waterfall_id": guid }

  5. Finish Sign Up url: '/api/v1/accounts/create_validated/', form: { "is_secondary_account_creation": 'false', "jazoest": str_buffer_encrypted_phone_id, "tos_version": 'row', "suggestedUsername": '', "verification_code": verification_code, "logged_in_user_id": 0, "sn_result": ''GOOGLE_PLAY_UNAVAILABLE:+SERVICE_INVALID'', "do_not_auto_login_if_credentials_match": 'true', "phone_id": phone_id, "enc_password": encrypted_password, "phone_number": phone_number, "username": username, "first_name": first_name, "day": birth_day_int "adid": '00000000-0000-0000-0000-000000000000', "guid": device_uuid, "year": year_int, "device_id": device_id, "_uuid": device_uuid, "month": month_int, "sn_nonce": base64_phone_number_date_random, "force_sign_up_code": '', "logged_in_user_authorization_token":0, "waterfall_id": guid_waterfall_id, "qs_stamp": '', "has_sms_consent": 'true', "one_tap_opt_in": 'true', }

davidrodma avatar Apr 26 '24 14:04 davidrodma