Search Comments by URL API

Extract comments from
post URLs directly

Simply paste any post URL to extract all comments with detailed commenter profiles. Support for UGC and activity post formats with automatic URL parsing.

Supported URL formats

Our API supports all major post URL formats with automatic parsing

UGC Post Format

Standard user-generated content posts

https://www.lin...../posts/{author_slug}_{post-title}-ugcPost-{post_id}-{post_suffix}/

Activity Post Format

Activity-based posts and shares

https://www.lin...../posts/{author_slug}_{post-title}-activity-{post_id}-{post_suffix}/

Query Parameters

Parameters are automatically ignored during parsing

URLs with ?utm_source=... parameters

URL-based comment extraction made simple

No more complex URN extraction - just paste the URL and get comprehensive comment data

URL-Based Extraction

Extract comments directly from post URLs without needing URNs

Multiple URL Formats

Support for both UGC post and activity post URL formats

Easy Integration

Simply paste URLs to get comprehensive comment data

Complete Profiles

Get detailed commenter information including names, titles, and profile links

Engagement Metrics

Analyze comment performance with detailed reaction and engagement data

Reliable Processing

Robust URL parsing handles query parameters and variations automatically

Search Comments by URL API
curl 'https://api.enrich.so/v1/api/search-comment-by-url?post_url=https://www.lin...../posts/marclouvion_ive-created-a-monsterdatafast-realtime-ugcPost-7310642749228085248--KfN/&page=1' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json'
Response
200 OK
{
  "success": true,
  "message": "Comments for post found.",
  "data": {
    "page": 1,
    "total_page": 3,
    "num": 10,
    "data": [
      {
        "activity_id": "urn:li:comment:(ugcPost:7310642749228085248,7311696747326509056)",
        "commentary": "What's the tech stack of this",
        "reaction_breakdown": {
          "likes": 0,
          "empathy": 0,
          "other": 0
        },
        "li_url": "https://www.lin...../feed/update/urn:li:ugcPost:7310642749228085248",
        "commenter": {
          "profile_id": "ACoAAERECx0BG5STlmUhZHtSWmYSdiplhaD1tyk",
          "first_name": "Tushar",
          "last_name": "kumar",
          "sub_title": "--"
        }
      }
    ]
  },
  "total_credits": 36075,
  "credits_used": 22455.05,
  "credits_remaining": 13619.95
}
View API docs

Simplify your social media analysis

Extract valuable insights from posts with just a URL - no complex setup required

Quick Comment Analysis

Instantly analyze comments from any post URL you find

Instant analysisURL convenienceFast insights

Competitor Monitoring

Monitor engagement on competitor posts by simply copying their URLs

Competitor researchMarket monitoringEngagement tracking

Content Research

Research successful content by analyzing comments on viral posts

Content strategyViral analysisAudience research

Lead Discovery

Find potential leads from people commenting on industry-relevant posts

Lead generationProspect researchIndustry networking

Join thousands of happy
customers worldwide

Discover why leading companies trust us to power their data intelligence needs.

Frequently asked questions

What post URL formats are supported?

We support both UGC post format (ugcPost-{post_id}) and activity post format (activity-{post_id}). Query parameters like UTM parameters are automatically ignored during processing.

Do I need to clean URLs before sending them?

No, our API automatically handles URL parsing and ignores query parameters. You can send the URL exactly as you copy it from .

What's the difference between this and the URN-based endpoint?

This endpoint accepts post URLs directly, making it more convenient when you have the URL. The URN-based endpoint requires you to extract the URN first but may be faster for batch processing.

Can I extract comments from private or restricted posts?

The API can only access comments from posts that are publicly visible or accessible through 's standard visibility rules.

Ready to extract comments from URLs?

Start analyzing post comments with simple URL-based extraction. Perfect for quick insights and social media research.