Skip to content

Commit f085d9b

Browse files
committed
fix(instagram): publish api connector 2.0.1
1 parent eeaf1d7 commit f085d9b

5 files changed

Lines changed: 51 additions & 5 deletions

File tree

Binary file not shown.

connector-index.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,43 @@
421421
"iconKey": "instagram",
422422
"defaultScope": "instagram.profile"
423423
}
424+
},
425+
{
426+
"connectorId": "instagram-api-playwright",
427+
"company": "meta",
428+
"version": "2.0.1",
429+
"name": "Instagram (API)",
430+
"status": "experimental",
431+
"description": "Exports your Instagram profile, posts, followers, following, and ad interests using API-first network replay (no DOM scraping for data).",
432+
"sourceFiles": {
433+
"script": "meta/instagram-api-playwright.js",
434+
"metadata": "meta/instagram-api-playwright.json"
435+
},
436+
"publishedAt": "2026-04-15T00:00:00Z",
437+
"gitRef": "fix/instagram-api-compat",
438+
"pageApiVersion": 1,
439+
"manifestSha256": "sha256:a03ca2ab8cabc2a9989ceb13b9d4336bd8db231307010131aa6757d2a27871ec",
440+
"scriptSha256": "sha256:429997c09879ddfc41cfcab66ebaf93f5d8d94b5dd1be99d08488fbf1cc59774",
441+
"artifactSha256": "sha256:8a68821282853f22c86b3aaceea44f4f4d1d50de375fece17340de03a7a3212b",
442+
"artifactPath": "artifacts/instagram-api-playwright/instagram-api-playwright-2.0.1.tgz",
443+
"artifactUrl": "https://raw.githubusercontent.com/vana-com/data-connectors/fix/instagram-api-compat/artifacts/instagram-api-playwright/instagram-api-playwright-2.0.1.tgz",
444+
"scopes": [
445+
"instagram.profile",
446+
"instagram.posts",
447+
"instagram.followers",
448+
"instagram.following",
449+
"instagram.ads"
450+
],
451+
"consumerMetadata": {
452+
"sourceId": "instagram",
453+
"displayName": "Instagram (API)",
454+
"brandDomain": "instagram.com",
455+
"aliases": [
456+
"meta"
457+
],
458+
"iconKey": "instagram",
459+
"defaultScope": "instagram.profile"
460+
}
424461
}
425462
],
426463
"instagram-playwright": [

connectors/meta/instagram-api-playwright.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
const IG_APP_ID = '936619743392459';
1818
const PLATFORM = 'instagram';
19-
const VERSION = '2.0.0-api-playwright';
19+
const VERSION = '2.0.1-api-playwright';
2020
const CANONICAL_SCOPES = [
2121
'instagram.profile',
2222
'instagram.posts',
@@ -33,8 +33,17 @@ const DISCOVERY_TIMEOUT_MS = 20000;
3333
const DISCOVERY_POLL_MS = 250;
3434
const MAX_LOGIN_ATTEMPTS = 3;
3535

36-
let PLATFORM_LOGIN = process.env.USER_LOGIN_INSTAGRAM || '';
37-
let PLATFORM_PASSWORD = process.env.USER_PASSWORD_INSTAGRAM || '';
36+
const readOptionalProcessEnv = (key) => {
37+
if (typeof process === 'undefined' || !process?.env) {
38+
return '';
39+
}
40+
41+
const value = process.env[key];
42+
return typeof value === 'string' ? value : '';
43+
};
44+
45+
let PLATFORM_LOGIN = readOptionalProcessEnv('USER_LOGIN_INSTAGRAM');
46+
let PLATFORM_PASSWORD = readOptionalProcessEnv('USER_PASSWORD_INSTAGRAM');
3847

3948
const makeConnectorError = (
4049
errorClass,

connectors/meta/instagram-api-playwright.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": "1.0",
33
"connector_id": "instagram-api-playwright",
44
"source_id": "instagram",
5-
"version": "2.0.0",
5+
"version": "2.0.1",
66
"name": "Instagram (API)",
77
"company": "Meta",
88
"description": "Exports your Instagram profile, posts, followers, following, and ad interests using API-first network replay (no DOM scraping for data).",

registry.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
{
8282
"id": "instagram-api-playwright",
8383
"company": "meta",
84-
"version": "2.0.0",
84+
"version": "2.0.1",
8585
"name": "Instagram (API)",
8686
"status": "experimental",
8787
"description": "Exports your Instagram profile, posts, followers, following, and ad interests using API-first network replay (no DOM scraping for data).",

0 commit comments

Comments
 (0)