Cost:10 credits / successful request.This endpoint retrieves comments from a LinkedIn post. Simply provide the LinkedIn post URL and the API will extract the activity ID automatically and return paginated comments.
Page number for pagination. Use the cursor value from the previous response to get the next page. You can send it as page or as cursor; if you send both, page is used.
Number of top-level comments on the post. Replies are not counted here: they are returned nested inside each comment (top_replies, counted by replies_count). The comment count LinkedIn shows on a post includes replies, so it is usually higher than total.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Datamagnet API","description":"Learn everything there is to know about the Datamagnet API and integrate Datamagnet into your product.","colors":{"primary":"#10b981","light":"#34d399","dark":"#059669"},"logo":{"light":"https://mintcdn.com/datamagnet/SW4nLtirTM2YPsD9/logo/logo.svg?fit=max\u0026auto=format\u0026n=SW4nLtirTM2YPsD9\u0026q=85\u0026s=357a8b0e19b9716ef9f49fffcb91764e","dark":"https://mintcdn.com/datamagnet/SW4nLtirTM2YPsD9/logo/logo.svg?fit=max\u0026auto=format\u0026n=SW4nLtirTM2YPsD9\u0026q=85\u0026s=357a8b0e19b9716ef9f49fffcb91764e"},"favicon":"https://mintcdn.com/datamagnet/Te85XCZXrXqMYoCk/logo/favicon.png?fit=max\u0026auto=format\u0026n=Te85XCZXrXqMYoCk\u0026q=85\u0026s=f6a67aa9db0be06077aca1f4c444022d","api":{"playground":{"display":"interactive"},"mdx":{"auth":{"method":"bearer"},"server":"https://api.datamagnet.co"}},"appearance":{"default":"light","strict":false},"background":{"decoration":"gradient"},"navbar":{"links":[{"href":"https://datamagnet.co/auth/register","label":"Register for API"}],"primary":{"type":"button","label":"Dashboard","href":"https://datamagnet.co/app/api-keys"}},"footer":{"socials":{"linkedin":"https://linkedin.com/company/datamagnet-co"}},"search":{"prompt":"Find something..."},"styling":{"eyebrows":"breadcrumbs","latex":false},"integrations":{"ga4":{"measurementId":"G-5YQ8KLR3J7"},"gtm":{"tagId":"GTM-KNM5ZQPB"},"intercom":{"appId":"njr64ahv"},"posthog":{"apiKey":"phc_IRc9k1hAzVslo9KFV5iOxrfBoPkrPRoVNC3OJ7rM1IV","apiHost":"https://posthog-analytics-proxy.datachroma.workers.dev"}},"contextual":{"options":["copy","chatgpt","claude","perplexity","grok","aistudio","mcp"],"display":"header"},"interaction":{"drilldown":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"datamagnet","hasAudioNarration":false,"actualSubdomain":"datamagnet","customDomains":["docs.datamagnet.co"],"gitSource":{"type":"github","owner":"pratik-dani","repo":"data-collection","deployBranch":"main","contentDirectory":"datamagnet-docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad876f416faa66f78bb0b84","collectionId":"b0222c8c-2738-4ab1-891a-48ed4f8d7a59","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad876f416faa66f78bb0b84"},"feedback":{"edits":true,"issues":true,"thumbs":true,"agentFeedback":true},"entitlements":{},"buildId":"6ad876f416faa66f78bb0b84","clientVersion":"0.0.3966","searchFilterCounts":[{"language":"default","tag":"API Reference","count":44},{"language":"default","tag":"Changelog","count":18},{"language":"default","tag":"Getting Started","count":16},{"language":"default","tag":"Guides","count":11},{"language":"default","tag":"Cookbooks","count":9},{"language":"default","tag":"Concepts","count":6},{"language":"default","tag":"Signals","count":5},{"language":"default","tag":"Posts","count":4},{"language":"default","tag":"Company","count":3},{"language":"default","tag":"ICP Search","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":".card{transition:all .2s ease;border-radius:8px}.card:hover{transform:translateY(-2px)}:focus-visible{outline:2px solid #10b981;outline-offset:2px}"}],"page":{"pagePath":"api-reference/endpoints/post-comments","slug":"/api-reference/endpoints/post-comments","pageMetadata":{"title":"Post Comments","api":"POST https://api.datamagnet.co/api/v1/post/comments","description":"Retrieve all comments on a LinkedIn post by URL, including commenter profiles, comment text, timestamps, and reply threads for engagement analysis.","href":"/api-reference/endpoints/post-comments"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Retrieve all comments on a LinkedIn post by URL, including commenter profiles, comment text, timestamps, and reply threads for engagement analysis.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`post-comments`,children:`Post Comments`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Cost:`}),` `,_jsx(_components.code,{children:`10`}),` credits / successful request.`]}),`\n`,_jsx(_components.p,{children:`This endpoint retrieves comments from a LinkedIn post. Simply provide the LinkedIn post URL and the API will extract the activity ID automatically and return paginated comments.`}),`\n`,_jsx(Heading,{level:`2`,id:`post-comments-endpoint`,children:`Post comments endpoint`}),`\n`,_jsx(_components.p,{children:`This endpoint allows you to get comments from any LinkedIn post by providing its URL.`}),`\n`,_jsx(Heading,{level:`3`,id:`required-attributes`,children:`Required attributes`}),`\n`,_jsxs(ParamField,{body:`url`,type:`string`,required:true,id:`param-url`,children:[_jsx(_components.p,{children:`The LinkedIn post URL. Supports multiple URL formats:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`https://www.linkedin.com/posts/username_slug-activity-7430615551086850048-XXXX`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`https://www.linkedin.com/posts/username_slug-ugcPost-7430527985071595520-XXXX`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`https://www.linkedin.com/feed/update/urn:li:activity:7430615551086850048`})}),`\n`]})]}),`\n`,_jsx(Heading,{level:`3`,id:`optional-attributes`,children:`Optional attributes`}),`\n`,_jsx(ParamField,{body:`page`,type:`integer`,default:`1`,id:`param-page`,children:_jsxs(_components.p,{children:[`Page number for pagination. Use the `,_jsx(_components.code,{children:`cursor`}),` value from the previous response to get the next page. You can send it as `,_jsx(_components.code,{children:`page`}),` or as `,_jsx(_components.code,{children:`cursor`}),`; if you send both, `,_jsx(_components.code,{children:`page`}),` is used.`]})}),`\n`,_jsx(ParamField,{body:`sort`,type:`string`,id:`param-sort`,children:_jsxs(_components.p,{children:[`Order of the comments: `,_jsx(_components.code,{children:`\"recent\"`}),` (newest first) or `,_jsx(_components.code,{children:`\"relevance\"`}),`. When omitted, comments are returned newest first. Any other value returns a `,_jsx(_components.code,{children:`400`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,`\n`,_jsx(Heading,{level:`2`,id:`the-post-comments-model`,children:`The post comments model`}),`\n`,_jsx(Heading,{level:`3`,id:`properties`,children:`Properties`}),`\n`,_jsx(ResponseField,{name:`cursor`,type:`integer | null`,id:`param-cursor`,children:_jsxs(_components.p,{children:[`The next page number for pagination. Pass this value as the `,_jsx(_components.code,{children:`page`}),` parameter in your next request. Returns `,_jsx(_components.code,{children:`null`}),` when there are no more pages.`]})}),`\n`,_jsxs(ResponseField,{name:`message`,type:`object`,id:`param-message`,children:[_jsx(_components.p,{children:`The response payload containing comments.`}),_jsxs(Expandable,{title:`Message object`,children:[_jsx(ResponseField,{name:`total`,type:`integer`,id:`param-total`,children:_jsxs(_components.p,{children:[`Number of top-level comments on the post. Replies are not counted here: they are returned nested inside each comment (`,_jsx(_components.code,{children:`top_replies`}),`, counted by `,_jsx(_components.code,{children:`replies_count`}),`). The comment count LinkedIn shows on a post includes replies, so it is usually higher than `,_jsx(_components.code,{children:`total`}),`.`]})}),_jsxs(ResponseField,{name:`comments`,type:`array`,id:`param-comments`,children:[_jsx(_components.p,{children:`List of comment objects.`}),_jsxs(Expandable,{title:`Comment object`,children:[_jsx(ResponseField,{name:`text`,type:`string`,id:`param-text`,children:_jsx(_components.p,{children:`The comment text content.`})}),_jsx(ResponseField,{name:`permalink`,type:`string`,id:`param-permalink`,children:_jsx(_components.p,{children:`Direct permalink to the comment on LinkedIn.`})}),_jsx(ResponseField,{name:`timestamp`,type:`number`,id:`param-timestamp`,children:_jsx(_components.p,{children:`Unix timestamp (milliseconds) when the comment was posted.`})}),_jsx(ResponseField,{name:`times`,type:`string`,id:`param-times`,children:_jsxs(_components.p,{children:[`The same moment as `,_jsx(_components.code,{children:`timestamp`}),`, as an ISO 8601 string (e.g. `,_jsx(_components.code,{children:`\"2026-02-22T16:46:14.489Z\"`}),`).`]})}),_jsx(ResponseField,{name:`pinned`,type:`boolean`,id:`param-pinned`,children:_jsx(_components.p,{children:`Whether the comment is pinned by the post author.`})}),_jsx(ResponseField,{name:`edited`,type:`boolean`,id:`param-edited`,children:_jsx(_components.p,{children:`Whether the comment has been edited.`})}),_jsx(ResponseField,{name:`replies_count`,type:`integer`,id:`param-replies-count`,children:_jsx(_components.p,{children:`Number of replies to this comment.`})}),_jsxs(ResponseField,{name:`mentions`,type:`array`,id:`param-mentions`,children:[_jsxs(_components.p,{children:[`People and companies tagged in the comment. Empty when nobody is tagged. Replies in `,_jsx(_components.code,{children:`top_replies`}),` carry the same array.`]}),_jsxs(Expandable,{title:`Mention object`,children:[_jsx(ResponseField,{name:`entity_urn`,type:`string`,id:`param-entity-urn`,children:_jsxs(_components.p,{children:[`URN of the tagged profile (`,_jsx(_components.code,{children:`urn:li:fsd_profile:…`}),`) or company (`,_jsx(_components.code,{children:`urn:li:fsd_company:…`}),`).`]})}),_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name`,children:_jsx(_components.p,{children:`Name of the tagged person or company.`})}),_jsx(ResponseField,{name:`type`,type:`string`,id:`param-type`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`\"profileMention\"`}),` or `,_jsx(_components.code,{children:`\"companyMention\"`}),`.`]})})]})]}),_jsx(Heading,{level:`4`,id:`commenter`,children:`Commenter`}),_jsxs(ResponseField,{name:`commenter`,type:`object`,id:`param-commenter`,children:[_jsxs(_components.p,{children:[`Details about who wrote the comment. Usually a member, but company and school pages comment too: check `,_jsx(_components.code,{children:`navigation_url`}),` (`,_jsx(_components.code,{children:`/in/`}),`, `,_jsx(_components.code,{children:`/company/`}),`, `,_jsx(_components.code,{children:`/school/`}),`).`]}),_jsxs(Expandable,{title:`Commenter object`,children:[_jsx(ResponseField,{name:`title`,type:`string`,id:`param-title`,children:_jsx(_components.p,{children:`Commenter’s name.`})}),_jsx(ResponseField,{name:`subtitle`,type:`string`,id:`param-subtitle`,children:_jsx(_components.p,{children:`Commenter’s LinkedIn headline.`})}),_jsx(ResponseField,{name:`image`,type:`string`,id:`param-image`,children:_jsxs(_components.p,{children:[`Commenter’s profile picture URL. `,_jsx(_components.code,{children:`null`}),` or absent when the commenter has no picture.`]})}),_jsx(ResponseField,{name:`navigation_url`,type:`string`,id:`param-navigation-url`,children:_jsx(_components.p,{children:`Link to the commenter’s LinkedIn profile or page.`})}),_jsx(ResponseField,{name:`sales_nav_id`,type:`string`,id:`param-sales-nav-id`,children:_jsxs(_components.p,{children:[`The commenter’s LinkedIn member id (`,_jsx(_components.code,{children:`ACoA…`}),`), the id in `,_jsx(_components.code,{children:`urn:li:fsd_profile:\u003cid>`}),`. Absent for company and school pages.`]})})]})]}),_jsx(Heading,{level:`4`,id:`engagement`,children:`Engagement`}),_jsxs(ResponseField,{name:`reaction_type_counts`,type:`array`,id:`param-reaction-type-counts`,children:[_jsx(_components.p,{children:`Breakdown of reactions on the comment.`}),_jsxs(Expandable,{title:`Reaction object`,children:[_jsx(ResponseField,{name:`count`,type:`number`,id:`param-count`,children:_jsx(_components.p,{children:`Number of this reaction type.`})}),_jsx(ResponseField,{name:`type`,type:`string`,id:`param-type-1`,children:_jsxs(_components.p,{children:[`Reaction type: `,_jsx(_components.code,{children:`\"LIKE\"`}),`, `,_jsx(_components.code,{children:`\"PRAISE\"`}),`, `,_jsx(_components.code,{children:`\"EMPATHY\"`}),`, `,_jsx(_components.code,{children:`\"ENTERTAINMENT\"`}),`, etc.`]})})]})]}),_jsx(ResponseField,{name:`top_replies`,type:`array`,id:`param-top-replies`,children:_jsx(_components.p,{children:`Replies to the comment (if any), in the same shape as a comment.`})})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`pagination`,children:`Pagination`}),`\n`,_jsx(_components.p,{children:`To paginate through all comments:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Make an initial request without the `,_jsx(_components.code,{children:`page`}),` parameter (defaults to page 1).`]}),`\n`,_jsxs(_components.li,{children:[`Check the `,_jsx(_components.code,{children:`cursor`}),` field in the response.`]}),`\n`,_jsxs(_components.li,{children:[`If `,_jsx(_components.code,{children:`cursor`}),` is not `,_jsx(_components.code,{children:`null`}),`, make another request with `,_jsx(_components.code,{children:`page`}),` set to the `,_jsx(_components.code,{children:`cursor`}),` value.`]}),`\n`,_jsxs(_components.li,{children:[`Repeat until `,_jsx(_components.code,{children:`cursor`}),` returns `,_jsx(_components.code,{children:`null`}),`.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:`Example`,numberOfLines:`18`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`18`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`url `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.datamagnet.co/api/v1/post/comments\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`page `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`all_comments `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` []`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`while`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` page `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`is`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` not`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(url, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://www.linkedin.com/posts/username_slug-activity-7430615551086850048-XXXX\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"page\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: page`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` data `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.json()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` all_comments.extend(data[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`][`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"comments\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` page `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` data.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cursor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Total comments fetched: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`len`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(all_comments)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Post Comments","api":"POST https://api.datamagnet.co/api/v1/post/comments","description":"Retrieve all comments on a LinkedIn post by URL, including commenter profiles, comment text, timestamps, and reply threads for engagement analysis.","href":"/api-reference/endpoints/post-comments"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`post-comments`,children:`Post Comments`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Cost:`}),` `,_jsx(_components.code,{children:`10`}),` credits / successful request.`]}),`\n`,_jsx(_components.p,{children:`This endpoint retrieves comments from a LinkedIn post. Simply provide the LinkedIn post URL and the API will extract the activity ID automatically and return paginated comments.`}),`\n`,_jsx(Heading,{level:`2`,id:`post-comments-endpoint`,children:`Post comments endpoint`}),`\n`,_jsx(_components.p,{children:`This endpoint allows you to get comments from any LinkedIn post by providing its URL.`}),`\n`,_jsx(Heading,{level:`3`,id:`required-attributes`,children:`Required attributes`}),`\n`,_jsxs(ParamField,{body:`url`,type:`string`,required:true,id:`param-url`,children:[_jsx(_components.p,{children:`The LinkedIn post URL. Supports multiple URL formats:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`https://www.linkedin.com/posts/username_slug-activity-7430615551086850048-XXXX`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`https://www.linkedin.com/posts/username_slug-ugcPost-7430527985071595520-XXXX`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`https://www.linkedin.com/feed/update/urn:li:activity:7430615551086850048`})}),`\n`]})]}),`\n`,_jsx(Heading,{level:`3`,id:`optional-attributes`,children:`Optional attributes`}),`\n`,_jsx(ParamField,{body:`page`,type:`integer`,default:`1`,id:`param-page`,children:_jsxs(_components.p,{children:[`Page number for pagination. Use the `,_jsx(_components.code,{children:`cursor`}),` value from the previous response to get the next page. You can send it as `,_jsx(_components.code,{children:`page`}),` or as `,_jsx(_components.code,{children:`cursor`}),`; if you send both, `,_jsx(_components.code,{children:`page`}),` is used.`]})}),`\n`,_jsx(ParamField,{body:`sort`,type:`string`,id:`param-sort`,children:_jsxs(_components.p,{children:[`Order of the comments: `,_jsx(_components.code,{children:`\"recent\"`}),` (newest first) or `,_jsx(_components.code,{children:`\"relevance\"`}),`. When omitted, comments are returned newest first. Any other value returns a `,_jsx(_components.code,{children:`400`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`Response`,numberOfLines:`41`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`41`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cursor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"comments\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"commenter\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"navigation_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://www.linkedin.com/company/example-co/posts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"subtitle\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"22,134 followers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Example Co\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"edited\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"permalink\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://www.linkedin.com/feed/update/urn:li:activity:7321383686006882304?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7321383686006882304%2C7321434896030183426%29\u0026dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287321434896030183426%2Curn%3Ali%3Aactivity%3A7321383686006882304%29\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pinned\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reaction_type_counts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"replies_count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Awesome work Pratik Dani ❤️ \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timestamp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1745566104897`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"top_replies\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: []`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"commenter\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"image\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://media.licdn.com/dms/image/v2/D5603AQGBD4qUbB0j0A/profile-displayphoto-crop_800_800/B56ZhbUiPVHMAI-/0/1753878768080?e=1773273600\u0026v=beta\u0026t=92JTYvAs8ZBUhsC2K5eJ0P3NzfB8ND8EM-iTajxtvUk\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"navigation_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://www.linkedin.com/in/anushka-tripathi-33631a21a\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sales_nav_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ACoAADbZ2yIBx1dPq0aN7v8EXAMPLEidY4mVt0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"subtitle\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"M.A. Public Policy\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Anushka Tripathi\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"edited\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"permalink\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://www.linkedin.com/feed/update/urn:li:activity:7321383686006882304?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7321383686006882304%2C7321422705793118208%29\u0026dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287321422705793118208%2Curn%3Ali%3Aactivity%3A7321383686006882304%29\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"pinned\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reaction_type_counts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"replies_count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Many congratulations 🎉\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timestamp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1745563198517`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"times\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2025-04-25T06:39:58.517Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"top_replies\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: []`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`2`,id:`the-post-comments-model`,children:`The post comments model`}),`\n`,_jsx(Heading,{level:`3`,id:`properties`,children:`Properties`}),`\n`,_jsx(ResponseField,{name:`cursor`,type:`integer | null`,id:`param-cursor`,children:_jsxs(_components.p,{children:[`The next page number for pagination. Pass this value as the `,_jsx(_components.code,{children:`page`}),` parameter in your next request. Returns `,_jsx(_components.code,{children:`null`}),` when there are no more pages.`]})}),`\n`,_jsxs(ResponseField,{name:`message`,type:`object`,id:`param-message`,children:[_jsx(_components.p,{children:`The response payload containing comments.`}),_jsxs(Expandable,{title:`Message object`,children:[_jsx(ResponseField,{name:`total`,type:`integer`,id:`param-total`,children:_jsxs(_components.p,{children:[`Number of top-level comments on the post. Replies are not counted here: they are returned nested inside each comment (`,_jsx(_components.code,{children:`top_replies`}),`, counted by `,_jsx(_components.code,{children:`replies_count`}),`). The comment count LinkedIn shows on a post includes replies, so it is usually higher than `,_jsx(_components.code,{children:`total`}),`.`]})}),_jsxs(ResponseField,{name:`comments`,type:`array`,id:`param-comments`,children:[_jsx(_components.p,{children:`List of comment objects.`}),_jsxs(Expandable,{title:`Comment object`,children:[_jsx(ResponseField,{name:`text`,type:`string`,id:`param-text`,children:_jsx(_components.p,{children:`The comment text content.`})}),_jsx(ResponseField,{name:`permalink`,type:`string`,id:`param-permalink`,children:_jsx(_components.p,{children:`Direct permalink to the comment on LinkedIn.`})}),_jsx(ResponseField,{name:`timestamp`,type:`number`,id:`param-timestamp`,children:_jsx(_components.p,{children:`Unix timestamp (milliseconds) when the comment was posted.`})}),_jsx(ResponseField,{name:`times`,type:`string`,id:`param-times`,children:_jsxs(_components.p,{children:[`The same moment as `,_jsx(_components.code,{children:`timestamp`}),`, as an ISO 8601 string (e.g. `,_jsx(_components.code,{children:`\"2026-02-22T16:46:14.489Z\"`}),`).`]})}),_jsx(ResponseField,{name:`pinned`,type:`boolean`,id:`param-pinned`,children:_jsx(_components.p,{children:`Whether the comment is pinned by the post author.`})}),_jsx(ResponseField,{name:`edited`,type:`boolean`,id:`param-edited`,children:_jsx(_components.p,{children:`Whether the comment has been edited.`})}),_jsx(ResponseField,{name:`replies_count`,type:`integer`,id:`param-replies-count`,children:_jsx(_components.p,{children:`Number of replies to this comment.`})}),_jsxs(ResponseField,{name:`mentions`,type:`array`,id:`param-mentions`,children:[_jsxs(_components.p,{children:[`People and companies tagged in the comment. Empty when nobody is tagged. Replies in `,_jsx(_components.code,{children:`top_replies`}),` carry the same array.`]}),_jsxs(Expandable,{title:`Mention object`,children:[_jsx(ResponseField,{name:`entity_urn`,type:`string`,id:`param-entity-urn`,children:_jsxs(_components.p,{children:[`URN of the tagged profile (`,_jsx(_components.code,{children:`urn:li:fsd_profile:…`}),`) or company (`,_jsx(_components.code,{children:`urn:li:fsd_company:…`}),`).`]})}),_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name`,children:_jsx(_components.p,{children:`Name of the tagged person or company.`})}),_jsx(ResponseField,{name:`type`,type:`string`,id:`param-type`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`\"profileMention\"`}),` or `,_jsx(_components.code,{children:`\"companyMention\"`}),`.`]})})]})]}),_jsx(Heading,{level:`4`,id:`commenter`,children:`Commenter`}),_jsxs(ResponseField,{name:`commenter`,type:`object`,id:`param-commenter`,children:[_jsxs(_components.p,{children:[`Details about who wrote the comment. Usually a member, but company and school pages comment too: check `,_jsx(_components.code,{children:`navigation_url`}),` (`,_jsx(_components.code,{children:`/in/`}),`, `,_jsx(_components.code,{children:`/company/`}),`, `,_jsx(_components.code,{children:`/school/`}),`).`]}),_jsxs(Expandable,{title:`Commenter object`,children:[_jsx(ResponseField,{name:`title`,type:`string`,id:`param-title`,children:_jsx(_components.p,{children:`Commenter’s name.`})}),_jsx(ResponseField,{name:`subtitle`,type:`string`,id:`param-subtitle`,children:_jsx(_components.p,{children:`Commenter’s LinkedIn headline.`})}),_jsx(ResponseField,{name:`image`,type:`string`,id:`param-image`,children:_jsxs(_components.p,{children:[`Commenter’s profile picture URL. `,_jsx(_components.code,{children:`null`}),` or absent when the commenter has no picture.`]})}),_jsx(ResponseField,{name:`navigation_url`,type:`string`,id:`param-navigation-url`,children:_jsx(_components.p,{children:`Link to the commenter’s LinkedIn profile or page.`})}),_jsx(ResponseField,{name:`sales_nav_id`,type:`string`,id:`param-sales-nav-id`,children:_jsxs(_components.p,{children:[`The commenter’s LinkedIn member id (`,_jsx(_components.code,{children:`ACoA…`}),`), the id in `,_jsx(_components.code,{children:`urn:li:fsd_profile:\u003cid>`}),`. Absent for company and school pages.`]})})]})]}),_jsx(Heading,{level:`4`,id:`engagement`,children:`Engagement`}),_jsxs(ResponseField,{name:`reaction_type_counts`,type:`array`,id:`param-reaction-type-counts`,children:[_jsx(_components.p,{children:`Breakdown of reactions on the comment.`}),_jsxs(Expandable,{title:`Reaction object`,children:[_jsx(ResponseField,{name:`count`,type:`number`,id:`param-count`,children:_jsx(_components.p,{children:`Number of this reaction type.`})}),_jsx(ResponseField,{name:`type`,type:`string`,id:`param-type-1`,children:_jsxs(_components.p,{children:[`Reaction type: `,_jsx(_components.code,{children:`\"LIKE\"`}),`, `,_jsx(_components.code,{children:`\"PRAISE\"`}),`, `,_jsx(_components.code,{children:`\"EMPATHY\"`}),`, `,_jsx(_components.code,{children:`\"ENTERTAINMENT\"`}),`, etc.`]})})]})]}),_jsx(ResponseField,{name:`top_replies`,type:`array`,id:`param-top-replies`,children:_jsx(_components.p,{children:`Replies to the comment (if any), in the same shape as a comment.`})})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`pagination`,children:`Pagination`}),`\n`,_jsx(_components.p,{children:`To paginate through all comments:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Make an initial request without the `,_jsx(_components.code,{children:`page`}),` parameter (defaults to page 1).`]}),`\n`,_jsxs(_components.li,{children:[`Check the `,_jsx(_components.code,{children:`cursor`}),` field in the response.`]}),`\n`,_jsxs(_components.li,{children:[`If `,_jsx(_components.code,{children:`cursor`}),` is not `,_jsx(_components.code,{children:`null`}),`, make another request with `,_jsx(_components.code,{children:`page`}),` set to the `,_jsx(_components.code,{children:`cursor`}),` value.`]}),`\n`,_jsxs(_components.li,{children:[`Repeat until `,_jsx(_components.code,{children:`cursor`}),` returns `,_jsx(_components.code,{children:`null`}),`.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:`Example`,numberOfLines:`18`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`18`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`url `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.datamagnet.co/api/v1/post/comments\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`page `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`all_comments `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` []`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`while`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` page `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`is`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` not`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(url, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://www.linkedin.com/posts/username_slug-activity-7430615551086850048-XXXX\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"page\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: page`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` data `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.json()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` all_comments.extend(data[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`][`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"comments\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` page `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` data.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cursor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Total comments fetched: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`len`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(all_comments)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Post Comments","api":"POST https://api.datamagnet.co/api/v1/post/comments","description":"Retrieve all comments on a LinkedIn post by URL, including commenter profiles, comment text, timestamps, and reply threads for engagement analysis.","href":"/api-reference/endpoints/post-comments"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Post Comments","slug":"post-comments","depth":1,"children":[]},{"title":"Post comments endpoint","slug":"post-comments-endpoint","depth":2,"children":[{"title":"Required attributes","slug":"required-attributes","depth":3,"children":[]},{"title":"Optional attributes","slug":"optional-attributes","depth":3,"children":[]},{"title":"Response","slug":"response","depth":3,"children":[]}]},{"title":"The post comments model","slug":"the-post-comments-model","depth":2,"children":[{"title":"Properties","slug":"properties","depth":3,"children":[]}]},{"title":"Pagination","slug":"pagination","depth":2,"children":[]}],"codeExamples":{"response":{"type":"ResponseExample","children":[{"filename":"Response","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"41\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"cursor\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"comments\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"commenter\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"navigation_url\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://www.linkedin.com/company/example-co/posts\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"subtitle\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"22,134 followers\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"title\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Example Co\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"edited\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"permalink\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://www.linkedin.com/feed/update/urn:li:activity:7321383686006882304?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7321383686006882304%2C7321434896030183426%29\u0026#x26;dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287321434896030183426%2Curn%3Ali%3Aactivity%3A7321383686006882304%29\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"pinned\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"reaction_type_counts\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"replies_count\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"text\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Awesome work Pratik Dani ❤️ \"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"timestamp\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1745566104897\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"top_replies\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: []\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"commenter\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"image\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://media.licdn.com/dms/image/v2/D5603AQGBD4qUbB0j0A/profile-displayphoto-crop_800_800/B56ZhbUiPVHMAI-/0/1753878768080?e=1773273600\u0026#x26;v=beta\u0026#x26;t=92JTYvAs8ZBUhsC2K5eJ0P3NzfB8ND8EM-iTajxtvUk\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"navigation_url\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://www.linkedin.com/in/anushka-tripathi-33631a21a\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"sales_nav_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"ACoAADbZ2yIBx1dPq0aN7v8EXAMPLEidY4mVt0\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"subtitle\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"M.A. Public Policy\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"title\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Anushka Tripathi\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"edited\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"permalink\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://www.linkedin.com/feed/update/urn:li:activity:7321383686006882304?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7321383686006882304%2C7321422705793118208%29\u0026#x26;dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287321422705793118208%2Curn%3Ali%3Aactivity%3A7321383686006882304%29\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"pinned\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"reaction_type_counts\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"replies_count\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"text\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Many congratulations 🎉\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"timestamp\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1745563198517\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"times\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2025-04-25T06:39:58.517Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"top_replies\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: []\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"total\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">2\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Post Comments","path":"/api/v1/post/comments","servers":[{"url":"https://api.datamagnet.co"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"url":[{"type":"string","description":"The LinkedIn post URL. Supports multiple URL formats: `https://www.linkedin.com/posts/username_slug-activity-7430615551086850048-XXXX` `https://www.linkedin.com/posts/username_slug-ugcPost-7430527985071595520-XXXX` `https://www.linkedin.com/feed/update/urn:li:activity:7430615551086850048`","required":true}],"page":[{"type":"integer","description":"Page number for pagination. Use the `cursor` value from the previous response to get the next page. You can send it as `page` or as `cursor` ; if you send both, `page` is used."}],"sort":[{"type":"string","description":"Order of the comments: `\"recent\"` (newest first) or `\"relevance\"` . When omitted, comments are returned newest first. Any other value returns a `400` ."}]}}],"examples":{"example":{"value":{"url":"\u003cstring>","page":123,"sort":"\u003cstring>"}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"cursor":[{"type":"object","properties":{},"description":"The next page number for pagination. Pass this value as the `page` parameter in your next request. Returns `null` when there are no more pages."}],"message":[{"type":"object","properties":{"total":[{"type":"integer","description":"Number of top-level comments on the post. Replies are not counted here: they are returned nested inside each comment ( `top_replies` , counted by `replies_count` ). The comment count LinkedIn shows on a post includes replies, so it is usually higher than `total` ."}],"comments":[{"type":"array","items":[{"type":"object","properties":{"text":[{"type":"string","description":"The comment text content."}],"permalink":[{"type":"string","description":"Direct permalink to the comment on LinkedIn."}],"timestamp":[{"type":"number","description":"Unix timestamp (milliseconds) when the comment was posted."}],"times":[{"type":"string","description":"The same moment as `timestamp` , as an ISO 8601 string (e.g. `\"2026-02-22T16:46:14.489Z\"` )."}],"pinned":[{"type":"boolean","description":"Whether the comment is pinned by the post author."}],"edited":[{"type":"boolean","description":"Whether the comment has been edited."}],"replies_count":[{"type":"integer","description":"Number of replies to this comment."}],"mentions":[{"type":"array","items":[{"type":"object","properties":{"entity_urn":[{"type":"string","description":"URN of the tagged profile ( `urn:li:fsd_profile:…` ) or company ( `urn:li:fsd_company:…` )."}],"name":[{"type":"string","description":"Name of the tagged person or company."}],"type":[{"type":"string","description":"`\"profileMention\"` or `\"companyMention\"` ."}]}}],"description":"People and companies tagged in the comment. Empty when nobody is tagged. Replies in `top_replies` carry the same array."}],"commenter":[{"type":"object","properties":{"title":[{"type":"string","description":"Commenter’s name."}],"subtitle":[{"type":"string","description":"Commenter’s LinkedIn headline."}],"image":[{"type":"string","description":"Commenter’s profile picture URL. `null` or absent when the commenter has no picture."}],"navigation_url":[{"type":"string","description":"Link to the commenter’s LinkedIn profile or page."}],"sales_nav_id":[{"type":"string","description":"The commenter’s LinkedIn member id ( `ACoA…` ), the id in `urn:li:fsd_profile:\u003cid>` . Absent for company and school pages."}]},"description":"Details about who wrote the comment. Usually a member, but company and school pages comment too: check `navigation_url` ( `/in/` , `/company/` , `/school/` )."}],"reaction_type_counts":[{"type":"array","items":[{"type":"object","properties":{"count":[{"type":"number","description":"Number of this reaction type."}],"type":[{"type":"string","description":"Reaction type: `\"LIKE\"` , `\"PRAISE\"` , `\"EMPATHY\"` , `\"ENTERTAINMENT\"` , etc."}]}}],"description":"Breakdown of reactions on the comment."}],"top_replies":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Replies to the comment (if any), in the same shape as a comment."}]}}],"description":"List of comment objects."}]},"description":"The response payload containing comments."}]}}],"examples":{"example":{"value":{"cursor":{},"message":{"total":123,"comments":[{"text":"\u003cstring>","permalink":"\u003cstring>","timestamp":123,"times":"\u003cstring>","pinned":true,"edited":true,"replies_count":123,"mentions":[{"entity_urn":"\u003cstring>","name":"\u003cstring>","type":"\u003cstring>"}],"commenter":{"title":"\u003cstring>","subtitle":"\u003cstring>","image":"\u003cstring>","navigation_url":"\u003cstring>","sales_nav_id":"\u003cstring>"},"reaction_type_counts":[{"count":123,"type":"\u003cstring>"}],"top_replies":[{}]}]}}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"datamagnet","siteName":"Datamagnet API","title":"Post Comments - Datamagnet API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-05T14:09:42.662Z","originalFileLocation":"api-reference/endpoints/post-comments.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Retrieve all comments on a LinkedIn post by URL, including commenter profiles, comment text, timestamps, and reply threads for engagement analysis.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Datamagnet API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/datamagnet/PlmQURYGnh2o6UGy/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/datamagnet/PlmQURYGnh2o6UGy/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/datamagnet/PlmQURYGnh2o6UGy/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/datamagnet/PlmQURYGnh2o6UGy/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/datamagnet/PlmQURYGnh2o6UGy/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/datamagnet/PlmQURYGnh2o6UGy/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/datamagnet/PlmQURYGnh2o6UGy/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/datamagnet/PlmQURYGnh2o6UGy/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/datamagnet/PlmQURYGnh2o6UGy/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Post Comments - Datamagnet API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Retrieve all comments on a LinkedIn post by URL, including commenter profiles, comment text, timestamps, and reply threads for engagement analysis.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Datamagnet API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.datamagnet.co/api-reference/endpoints/post-comments\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://datamagnet.mintlify.app/_mintlify/api/og/v2?division=Posts\u0026amp;title=Post+Comments\u0026amp;description=Retrieve+all+comments+on+a+LinkedIn+post+by+URL%2C+including+commenter+profiles%2C+comment+text%2C+timestamps%2C+and+reply+threads+for+engagement+analysis.\u0026amp;theme=ff7f501a073ed2eb86f83c60\u0026amp;signature=b566308c1bae99b80e6d8c7b7eb9d87674e5204baf9bd9cb8e5080bf7fe40804\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Post Comments - Datamagnet API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Retrieve all comments on a LinkedIn post by URL, including commenter profiles, comment text, timestamps, and reply threads for engagement analysis.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://datamagnet.mintlify.app/_mintlify/api/og/v2?division=Posts\u0026amp;title=Post+Comments\u0026amp;description=Retrieve+all+comments+on+a+LinkedIn+post+by+URL%2C+including+commenter+profiles%2C+comment+text%2C+timestamps%2C+and+reply+threads+for+engagement+analysis.\u0026amp;theme=ff7f501a073ed2eb86f83c60\u0026amp;signature=b566308c1bae99b80e6d8c7b7eb9d87674e5204baf9bd9cb8e5080bf7fe40804\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/datamagnet/PlmQURYGnh2o6UGy/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Datamagnet API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#10b981\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.datamagnet.co/api-reference/endpoints/post-comments\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoints/post-comments.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.datamagnet.co/#organization\",\"name\":\"Datamagnet API\",\"url\":\"https://docs.datamagnet.co\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/datamagnet/SW4nLtirTM2YPsD9/logo/logo.svg?fit=max\u0026auto=format\u0026n=SW4nLtirTM2YPsD9\u0026q=85\u0026s=357a8b0e19b9716ef9f49fffcb91764e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.datamagnet.co#website\",\"name\":\"Datamagnet API\",\"url\":\"https://docs.datamagnet.co\",\"publisher\":{\"@id\":\"https://docs.datamagnet.co/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.datamagnet.co/api-reference/endpoints/post-comments#webpage\",\"url\":\"https://docs.datamagnet.co/api-reference/endpoints/post-comments\",\"name\":\"Post Comments\",\"description\":\"Retrieve all comments on a LinkedIn post by URL, including commenter profiles, comment text, timestamps, and reply threads for engagement analysis.\",\"dateModified\":\"2026-10-05T14:09:42.662Z\",\"isPartOf\":{\"@id\":\"https://docs.datamagnet.co#website\"},\"breadcrumb\":{\"@id\":\"https://docs.datamagnet.co/api-reference/endpoints/post-comments#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.datamagnet.co/api-reference/endpoints/post-comments#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Posts\",\"item\":\"https://docs.datamagnet.co/api-reference/endpoints/post-detail\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Post Comments\",\"item\":\"https://docs.datamagnet.co/api-reference/endpoints/post-comments\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.datamagnet.co/api-reference/endpoints/post-comments#apireference\",\"headline\":\"Post Comments\",\"name\":\"Post Comments\",\"description\":\"Retrieve all comments on a LinkedIn post by URL, including commenter profiles, comment text, timestamps, and reply threads for engagement analysis.\",\"url\":\"https://docs.datamagnet.co/api-reference/endpoints/post-comments\",\"mainEntityOfPage\":{\"@id\":\"https://docs.datamagnet.co/api-reference/endpoints/post-comments#webpage\"},\"dateModified\":\"2026-10-05T14:09:42.662Z\",\"publisher\":{\"@id\":\"https://docs.datamagnet.co/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.datamagnet.co#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Datamagnet API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Datamagnet API","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/api-reference/introduction"}]},{"tab":"API Reference","anchors":[{"anchor":"API Reference","icon":"code","groups":[{"group":"People","pages":[{"title":"People Profile","api":"POST https://api.datamagnet.co/api/v1/person","href":"/api-reference/endpoints/people"},{"title":"Person Activity","api":"POST https://api.datamagnet.co/api/v1/person/activity","href":"/api-reference/endpoints/people-activity"}]},{"group":"Company","pages":[{"title":"Company Profile","api":"POST https://api.datamagnet.co/api/v1/company","href":"/api-reference/endpoints/company"},{"title":"Company Posts","api":"POST https://api.datamagnet.co/api/v1/company/posts","href":"/api-reference/endpoints/company-posts"},{"title":"Funding Rounds","api":"POST https://api.datamagnet.co/api/v1/company/funding-rounds","href":"/api-reference/endpoints/funding-rounds"}]},{"group":"Jobs","pages":[{"title":"Job Details","api":"POST https://api.datamagnet.co/api/v1/jobs/detail","href":"/api-reference/endpoints/job-details"},{"title":"Job Change Search","api":"POST https://api.datamagnet.co/api/v1/job-changes/search","href":"/api-reference/endpoints/job-changes-search"}]},{"group":"Posts","pages":[{"title":"Post Details","api":"POST https://api.datamagnet.co/api/v1/post","description":"Retrieve detailed information about a single LinkedIn post by URL, including author, content, media, engagement counts, and publish timestamp.","href":"/api-reference/endpoints/post-detail"},{"title":"Post Comments","api":"POST https://api.datamagnet.co/api/v1/post/comments","href":"/api-reference/endpoints/post-comments"},{"title":"Post Reactions","api":"POST https://api.datamagnet.co/api/v1/post/reactions","description":"Retrieve reactions on a LinkedIn post — likes, praise, empathy, insightful, and more — along with each reactor's profile for lead generation.","href":"/api-reference/endpoints/post-reactions"},{"title":"Post Reposts","api":"POST https://api.datamagnet.co/api/v1/post/reposts","href":"/api-reference/endpoints/post-reposts"}]},{"group":"Signals","pages":[{"title":"Create Signal","api":"POST https://api.datamagnet.co/api/v1/signal/create","href":"/api-reference/endpoints/signal-create"},{"title":"List Signals","api":"POST https://api.datamagnet.co/api/v1/signal/list","href":"/api-reference/endpoints/signal-list"},{"title":"List Signal Leads","api":"POST https://api.datamagnet.co/api/v1/signal/leads","href":"/api-reference/endpoints/signal-leads"},{"title":"Update Signal","api":"POST https://api.datamagnet.co/api/v1/signal/update","href":"/api-reference/endpoints/signal-update"},{"title":"Delete Signal","api":"POST https://api.datamagnet.co/api/v1/signal/delete","href":"/api-reference/endpoints/signal-delete"}]},{"group":"ICP Search","pages":[{"title":"ICP People Search","api":"POST https://api.datamagnet.co/api/v1/people-search/search","href":"/api-reference/endpoints/icp-people-search"},{"title":"ICP Company Search","api":"POST https://api.datamagnet.co/api/v1/people-search/search/company","href":"/api-reference/endpoints/icp-company-search"},{"title":"ICP Search — Suggest","api":"GET https://api.datamagnet.co/api/v1/people-search/suggest/{suggest_type}","href":"/api-reference/endpoints/icp-suggest"}]},{"group":"Database Search","pages":[{"title":"People Search DB","api":"POST https://api.datamagnet.co/api/v1/people/search/db","href":"/api-reference/endpoints/people-db-search"},{"title":"Company Search DB","api":"POST https://api.datamagnet.co/api/v1/company/search/db","href":"/api-reference/endpoints/company-db-search"}]},{"group":"Utilities","pages":[{"title":"Credit Balance","api":"GET https://api.datamagnet.co/api/v1/credit-check","href":"/api-reference/endpoints/credits"}]}]}]},{"tab":"Cookbooks","pages":[{"title":"Cookbooks","href":"/cookbooks/champion-tracking"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/october-2026"}]}]},"title":"Post Comments - Datamagnet API","buildId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","deploymentId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-DKJwRUt2.js","utils-CWD_VS3u.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-oFjciODD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C76WsxC3.js","snippetPresets-DvPMxpX_.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CuNQfndH.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BVFpVUoF.js","shallow-t59Jg5Kr.js","getApiPlaygroundDisplay-C_JZ4amX.js","CodeSnippet-CLRDnx_h.js","CodeSnippets-C2myU4kc.js","Page-7TwLLapg.js","getPastedJson-B-JaVXw7.js","icon-BA-iDhH3.js","MethodPill-D4qZABFp.js","DuplicateIcon-THIDKO1O.js","createIcon-CYYJwgFd.js","DynamicMarkdown-UGQuxDKp.js","SectionHeading-jYELb23h.js","axios-vUo_bRtp.js"]}