{"id":21867326,"url":"https://github.com/ktbsomen/linkedin-bot","last_synced_at":"2026-04-18T02:31:26.634Z","repository":{"id":241612845,"uuid":"807238581","full_name":"KTBsomen/LinkedIn-Bot","owner":"KTBsomen","description":"This repository hosts an Express.js server designed to interact with LinkedIn's API. It provides endpoints for fetching LinkedIn profiles, sending messages, and retrieving connections. The server uses custom headers and cookies for authentication, making it a robust solution for LinkedIn automation and data extraction.","archived":false,"fork":false,"pushed_at":"2024-05-28T18:33:22.000Z","size":1217,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-21T21:29:58.023Z","etag":null,"topics":["javascript","linkedin","linkedin-api","linkedin-scraper"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KTBsomen.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-28T18:05:29.000Z","updated_at":"2024-05-29T14:35:36.000Z","dependencies_parsed_at":"2024-05-29T09:24:02.219Z","dependency_job_id":"c3d79d68-16e7-404f-bc63-e40ce391f48f","html_url":"https://github.com/KTBsomen/LinkedIn-Bot","commit_stats":null,"previous_names":["ktbsomen/linkedin-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KTBsomen/LinkedIn-Bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KTBsomen%2FLinkedIn-Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KTBsomen%2FLinkedIn-Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KTBsomen%2FLinkedIn-Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KTBsomen%2FLinkedIn-Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KTBsomen","download_url":"https://codeload.github.com/KTBsomen/LinkedIn-Bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KTBsomen%2FLinkedIn-Bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31953760,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","linkedin","linkedin-api","linkedin-scraper"],"created_at":"2024-11-28T05:09:12.449Z","updated_at":"2026-04-18T02:31:26.619Z","avatar_url":"https://github.com/KTBsomen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# LinkedIn API Interaction Server\n\nThis repository hosts an Express.js server designed to interact with LinkedIn's API. It provides endpoints for fetching LinkedIn profiles, sending messages, and retrieving connections. The server uses custom headers and cookies for authentication, making it a robust solution for LinkedIn automation and data extraction.\n\n## Features\n\n- **Fetch LinkedIn Profiles**: Retrieve detailed information of any LinkedIn profile by ID.\n- **Send Messages**: Send personalized messages to LinkedIn users.\n- **Get Connections**: Access a user's LinkedIn connections with pagination support.\n\n## Endpoints\n\n### Fetch LinkedIn Profile\n- **URL**: `/getProfile/:id`\n- **Method**: POST\n- **Description**: Fetches a LinkedIn profile using the provided `id`.\n- **Parameters**:\n  - `id` (string, required): LinkedIn profile ID.\n  - Request Body:\n    - `headers` (object, optional): Custom headers.\n    - `cookie` (string, optional): Cookie string.\n\n### Send a Message\n- **URL**: `/send/:receiverId`\n- **Method**: POST\n- **Description**: Sends a message to a LinkedIn user.\n- **Parameters**:\n  - `receiverId` (string, required): LinkedIn receiver profile ID.\n  - Request Body:\n    - `text` (string, optional): Message text.\n    - `senderId` (string, optional): Sender profile ID.\n\n### Get Connections\n- **URL**: `/getConnections/:start/:count`\n- **Method**: POST\n- **Description**: Retrieves LinkedIn connections.\n- **Parameters**:\n  - `start` (number, required): Starting index.\n  - `count` (number, required): Number of connections to retrieve.\n  - Request Body:\n    - `headers` (object, optional): Custom headers.\n    - `cookie` (string, optional): Cookie string.\n\n## Usage\n\n### Fetching a Profile\n```bash\ncurl -X POST \"http://3.109.158.37/api/v1/getProfile/12345\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n  \"headers\": {\n{\n    full copied headers from the previous step\n  }  }\n}'\n```\n\n### Sending a Message\n```bash\ncurl -X POST \"http://3.109.158.37/api/v1/send/67890\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n  \"text\": \"Hello, this is a test message.\",\n  \"senderId\": \"ACoAADFPm0wBD8_2w8dpux66aLduR0lOhqN2zKk\"\n}'\n```\n\n### Getting Connections\n```bash\ncurl -X POST \"http://3.109.158.37/api/v1/getConnections/0/10\" \\\n-H \"Content-Type: application/json\" \\\n-d '{\n  \"headers\": {\n{\n    full copied headers from the previous step\n  }  }\n}'\n```\n\n## Headers Retrieval\nTo obtain the necessary headers for making requests:\n1. Open Developer Tools (F12 or Inspect).\n2. Go to the \"Network\" tab.\n3. Perform an action on LinkedIn that interacts with the API.\n4. Look for requests including \"voyager\" in their path.\n5. Copy the required headers (`csrf-token`, `cookie`).\n\n## Installation\nClone the repository and install dependencies:\n```bash\ngit clone http://3.109.158.37/api/v1/\ncd api-server\nnpm install\n```\n\n## Run the Server\nStart the Express server:\n```bash\nnode index.js\n```\n\n## Contributing\nContributions are welcome! Please fork this repository and submit pull requests.\n\n## License\nThis project is licensed under the GNU GENERAL PUBLIC LICENSE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktbsomen%2Flinkedin-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fktbsomen%2Flinkedin-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktbsomen%2Flinkedin-bot/lists"}