instagram-private-api / index / State
index.State
- adid
- adsOptOut
- authorization
- build
- capabilitiesHeader
- challenge
- checkpoint
- clientSessionIdLifetime
- connectionTypeHeader
- constants
- cookieJar
- cookieStore
- deviceId
- deviceString
- euDCEnabled
- igWWWClaim
- isLayoutRTL
- language
- passwordEncryptionKeyId
- passwordEncryptionPubKey
- phoneId
- pigeonSessionIdLifetime
- proxyUrl
- radioType
- supportedCapabilities
- thumbnailCacheBustingValue
- timezoneOffset
- uuid
- appUserAgent
- appVersion
- appVersionCode
- batteryLevel
- bloksVersionId
- challengeUrl
- clientSessionId
- cookieCsrfToken
- cookieUserId
- cookieUsername
- devicePayload
- experiments
- fbAnalyticsApplicationId
- fbOrcaApplicationId
- fbOtaFields
- isCharging
- loginExperiments
- pigeonSessionId
- signatureKey
- signatureVersion
- userBreadcrumbKey
- webUserAgent
- deserialize
- deserializeCookieJar
- extractCookie
- extractCookieValue
- extractUserId
- generateDevice
- isExperimentEnabled
- serialize
- serializeCookieJar
• new State()
• adid: string
Google Play Advertising ID.
The advertising ID is a unique ID for advertising, provided by Google Play services for use in Google Play apps. Used by Instagram.
see
https://support.google.com/googleplay/android-developer/answer/6048248?hl=en
• adsOptOut: boolean
= false
• Optional
authorization: string
• build: string
• capabilitiesHeader: string
= '3brTvwE='
• challenge: ChallengeStateResponse
= null
• checkpoint: CheckpointResponse
= null
• clientSessionIdLifetime: number
= 1200000
• connectionTypeHeader: string
= 'WIFI'
• constants: __module
• cookieJar: CookieJar
• cookieStore: MemoryCookieStore
• deviceId: string
• deviceString: string
• Optional
euDCEnabled: boolean
• Optional
igWWWClaim: string
• isLayoutRTL: boolean
= false
• language: string
= 'en_US'
• Optional
passwordEncryptionKeyId: string
| number
• Optional
passwordEncryptionPubKey: string
• phoneId: string
• pigeonSessionIdLifetime: number
= 1200000
• proxyUrl: string
• radioType: string
= 'wifi-none'
• supportedCapabilities: ({ name
: string
= "SUPPORTED_SDK_VERSIONS"; value
: string
= "13.0,14.0,15.0,16.0,17.0,18.0,19.0,20.0,21.0,22.0,23.0,24.0,25.0,26.0,27.0,28.0,29.0,30.0,31.0,32.0,33.0,34.0,35.0,36.0,37.0,38.0,39.0,40.0,41.0,42.0,43.0,44.0,45.0,46.0,47.0,48.0,49.0,50.0,51.0,52.0,53.0,54.0,55.0,56.0,57.0,58.0,59.0,60.0,61.0,62.0,63.0,64.0,65.0,66.0" } | { name
: string
= "FACE_TRACKER_VERSION"; value
: number
= 12 })[]
• thumbnailCacheBustingValue: number
= 1000
• timezoneOffset: string
• uuid: string
• get
appUserAgent(): string
string
• get
appVersion(): string
string
• get
appVersionCode(): string
string
• get
batteryLevel(): number
number
• get
bloksVersionId(): string
string
• get
challengeUrl(): string
string
• get
clientSessionId(): string
The current application session ID.
This is a temporary ID which changes in the official app every time the user closes and re-opens the Instagram application or switches account.
We will update it once an hour
string
• get
cookieCsrfToken(): string
string
• get
cookieUserId(): string
string
• get
cookieUsername(): string
string
• get
devicePayload(): Object
Object
Name | Type |
---|---|
android_release |
string |
android_version |
string |
manufacturer |
string |
model |
string |
• get
experiments(): string
string
• get
fbAnalyticsApplicationId(): string
string
• get
fbOrcaApplicationId(): string
string
• get
fbOtaFields(): string
string
• get
isCharging(): boolean
boolean
• get
loginExperiments(): string
string
• get
pigeonSessionId(): string
string
• get
signatureKey(): string
string
• get
signatureVersion(): string
string
• get
userBreadcrumbKey(): string
string
• get
webUserAgent(): string
string
▸ deserialize(state
): Promise
<void
>
Name | Type |
---|---|
state |
any |
Promise
<void
>
▸ deserializeCookieJar(cookies
): Promise
<void
>
Name | Type |
---|---|
cookies |
string | Serialized |
Promise
<void
>
▸ extractCookie(key
): Cookie
Name | Type |
---|---|
key |
string |
Cookie
▸ extractCookieValue(key
): string
Name | Type |
---|---|
key |
string |
string
▸ extractUserId(): string
string
▸ generateDevice(seed
): void
Name | Type |
---|---|
seed |
string |
void
▸ isExperimentEnabled(experiment
): boolean
Name | Type |
---|---|
experiment |
any |
boolean
▸ serialize(): Promise
<any
>
Promise
<any
>
▸ serializeCookieJar(): Promise
<Serialized
>
Promise
<Serialized
>