- Docs
- API reference
- Profile
- Get a Profile's recent comments.
Get a Profile's recent comments.
GEThttps://api.envoapi.com/v1/profiles/comments
Retrieve a profile's recent comments by username with EnvoAPI. Read comment activity and use the returned cursor to continue through results.
GET
/v1/profiles/comments
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”username
required
string
Example
reidhoffmancursor
string
To get the next page, use meta.paging.nextCursor from your last response. Omit for the first page. cursor_example is a placeholder.
Example
cursor_exampleResponses
Section titled “Responses”Recent Profile comments.
Media typeapplication/json
object
data
required
object
comments
required
Array<object>
object
text
required
string
createdAt
required
string format: date-time
edited
required
boolean
authorName
required
string
authorProfileUrl
required
string
reactionCount
required
integer
replyCount
required
integer
postUrl
required
string
postAuthorName
required
string
meta
required
object
Headers
Section titled “Headers”Date
string
Required response header.
Cache-Control
string
Required response header.
X-Request-Id
string
Required response header.
X-Credits-Remaining
integer
Required response header.
X-RateLimit-Limit
integer
Required response header.
X-RateLimit-Remaining
integer
Required response header.
X-RateLimit-Reset
integer
Required response header.
Errors
Section titled “Errors”Every error returns the same body. The status and error.code tell you what went wrong. The Errors guide covers handling and retries.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
retryable
required
boolean
details
required
Array<object>
object
field
required
string
code
required
string
message
required
string
meta
required
object
requestId
required
string
Headers
Section titled “Headers”Date
string
Required response header.
Cache-Control
string
Required response header.
X-Request-Id
string
Required response header.
| Status | error.code | Meaning |
|---|---|---|
| 400 | invalid_request, invalid_cursor, cursor_expired | A parameter is missing or has a value we cannot use. Read error.details, fix the value and try again. Also sends X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset. |
| 401 | invalid_api_key | Your API key is missing, wrong or switched off. Check it in your dashboard. |
| 402 | insufficient_credits | Your account has no credits left. Top up, then send a new call. Also sends X-Credits-Remaining, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset. |
| 403 | insufficient_scope, account_suspended | Your account is suspended or cannot use this endpoint. Resolve the account or its access first. |
| 404 | resource_not_found | Nothing matched what you sent. Check it for typos. Also sends X-Credits-Remaining, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset. |
| 405 | method_not_allowed | The route exists, but the request used a method other than GET. Use the method shown at the top of this page. Also sends Allow. |
| 406 | not_acceptable | The Accept header asks for a format we do not send. Ask for JSON with a supported Accept value. |
| 415 | unsupported_media_type | The request declared a media type we do not accept. Remove the body or use the documented media type. |
| 429 | rate_limit_exceeded | Too many calls in a short time. Honor Retry-After; use bounded retries with backoff and jitter. Also sends X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, Retry-After. |
| 500 | internal_error, response_too_large | Something failed on our side. Retry only when error.retryable is true. Also sends X-Credits-Remaining, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset. |
| 502 | upstream_error | A data source sent back something we could not use. Retry with bounded backoff. Also sends X-Credits-Remaining, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset. |
| 503 | service_unavailable | Lookups are unavailable for a moment. Follow error.retryable, and Retry-After when it is present. Also sends Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Credits-Remaining. |
| 504 | upstream_timeout | The lookup ran out of time. Retry with bounded backoff. Also sends X-Credits-Remaining, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset. |