Changelog

OpenAPI specification: http://localhost:3040/openapi.yaml

Comments

List comments

Return all comments. Filter to one post with postId.

GEThttps://jsonplaceholder.typicode.com/comments

Servers

https://jsonplaceholder.typicode.com

Live public API

Parameters

Query parameters

postIdqueryinteger
Only return comments on this post.

Responses

An array of comments.

RequestcURL
curl --request GET \
  --url 'https://jsonplaceholder.typicode.com/comments?postId=1'
Response

Send a request to preview the response.

Was this page helpful?