Dummy JSON
  1. Posts
Dummy JSON
  • Start your journey
  • Dummy JSON
    • Auth
      • Login user and get tokens
      • Get current auth user
    • Users
      • Get all users
      • Get a single user
      • Add a new user
      • Update a user
      • Delete a user
    • Products
      • Get all products
      • Get a single product
      • Search product
      • Limit and skip product
      • Sort products
      • Get all products categories
      • Get products category list
      • Get products by a category
      • Add a new product
      • Update a product
      • Delete a product
    • Posts
      • Get all post
        GET
      • Get a single post
        GET
      • Search posts
        GET
      • Limit and skip posts
        GET
      • Sort posts
        GET
      • Get all posts tags
        GET
      • Get posts tag list
        GET
      • Get posts by a tag
        GET
      • Get all post by user id
        GET
      • Get post's comments
        GET
      • Add a new post
        POST
      • Update a post
        PUT
      • Delete a post
        DELETE
  1. Posts

Limit and skip posts

GET
/posts
Last modified:2025-05-23 10:14:18
Maintainer:ekovegeance
You can pass limit and skip params to limit and skip the results for pagination, and use limit=0 to get all items.
You can pass select as query params with comma-separated values to select specific data

Request

Query Params
limit
string 
optional
Example:
10
skip
string 
optional
Example:
10
select
string 
optional
Example:
title,reactions,userId

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://dummyjson.com/posts?limit=10&skip=10&select=title,reactions,userId'

Responses

🟢200OK
application/json
Body
posts
array [object {4}] 
required
id
integer 
required
title
string 
required
reactions
object 
required
userId
integer 
required
total
integer 
required
skip
integer 
required
limit
integer 
required
Example
{
    "posts": [
        {
            "id": 0,
            "title": "string",
            "reactions": {
                "likes": 0,
                "dislikes": 0
            },
            "userId": 0
        }
    ],
    "total": 0,
    "skip": 0,
    "limit": 0
}
Modified at 2025-05-23 10:14:18
Previous
Search posts
Next
Sort posts
Built with