Social Media

Requests to this endpoint are free and do not consume any API units.

get/social-media/post-metrics

Request

  • Base URL
    https://api.ahrefs.com/v3
  • URL
    https://api.ahrefs.com/v3/social-media/post-metrics
  • Auth
    HTTP bearer

Query parameters

external_post_idstring required

Platform-specific post identifier.

channel_idstring required

Unique identifier for the social media channel.

date_fromstring date required

The start date of the historical period in YYYY-MM-DD format.

date_tostring date

The end date of the historical period in YYYY-MM-DD format.

output'json' | 'php'

The output format.

Response

OK

Changes

    • info

      added the optional property // to the response with the status (media type: application/json)

    • info

      added the optional property // to the response with the status (media type: application/xml)