Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pagination test that validates order #179

Open
2 tasks
lidel opened this issue Aug 18, 2022 · 0 comments
Open
2 tasks

Add pagination test that validates order #179

lidel opened this issue Aug 18, 2022 · 0 comments

Comments

@lidel
Copy link
Member

lidel commented Aug 18, 2022

There should be a test that

  1. adds 25 pins, each named with sequential number
  2. lists all of them, using limit=10
  3. confirms the pagination works, namely:
  • no pins are missing
  • no pins are duplicated

Reason

Today Pinata pagination is broken, but it was difficult to tell how exactly (they are working on a fix).

Only by having numbered pins, one can quickly understand what went wrong:
👉 pinata returns pins sorted in the wrong order (should be from the latest to the oldest)

For example, Kubo does pagination in batches of 10.
It should read 0,1,2....24,25, but it gets this broken loop:

$ ipfs pin remote ls --service=pinata-debug --status=pinned                                                                                 ~
QmekSUExxjF1pycq1DtaQZyHtMq6kCNjVB3ZogSdgEguB2	pinned	test-pin-16
QmZqzBwfCLSqN7VauZHQHnQPt925CGFy3XoT6HxJ32cZS5	pinned	test-pin-17
QmfPN5b8nZdGNeqBtZtQu7V2GSnfUKM3fg1HGFnzfB9GoY	pinned	test-pin-18
QmQTzvHwJZ8N3G8tQdiZ9ykGD3Nnxb5cyUh9tJRSXLeAmT	pinned	test-pin-19
QmUqgwLckMg5QvdtXgd9WES726TqfoTX3fRpsV57cy79YU	pinned	test-pin-20
QmbqbK7pakRu2rmp38rKpp1EwnDZ9ikQbQrYiQ3sAMeofR	pinned	test-pin-23
QmfQvgMkYj77amUviAqCT2kf3QkwsiCFRYc21SfPXSkpn8	pinned	test-pin-24
QmNThD2GkZMtzWoDvuHjb2XQnSH5NEFgWwzR5h6cqVZkB9	pinned	test-pin-21
QmTPZEhFu9tRcxNEvexkhz3Zoi4U9t9mmGncfhKqt1VyGf	pinned	test-pin-22
QmbCpjNfbwbMvJqMUUHAoDAjNqdoZFo7zWEGBkCCWEZ6nA	pinned	test-pin-25
QmRAaaZxYDdWjTERbPENBtqoC5aDnc5vf4Qg472ssnyCic	pinned	test-pin-14
QmaHq597QaoiqjHjwbFz2DKxjuezkPVhQ5iwGF5gxfNHb4	pinned	test-pin-15
QmU718ekePHsiEVhbRRvmRhkGb4aJwqeCoqGSD6mvdXSG6	pinned	test-pin-13
QmekSUExxjF1pycq1DtaQZyHtMq6kCNjVB3ZogSdgEguB2	pinned	test-pin-16
QmZqzBwfCLSqN7VauZHQHnQPt925CGFy3XoT6HxJ32cZS5	pinned	test-pin-17
QmfPN5b8nZdGNeqBtZtQu7V2GSnfUKM3fg1HGFnzfB9GoY	pinned	test-pin-18
QmQTzvHwJZ8N3G8tQdiZ9ykGD3Nnxb5cyUh9tJRSXLeAmT	pinned	test-pin-19
QmUqgwLckMg5QvdtXgd9WES726TqfoTX3fRpsV57cy79YU	pinned	test-pin-20
QmbqbK7pakRu2rmp38rKpp1EwnDZ9ikQbQrYiQ3sAMeofR	pinned	test-pin-23
QmfQvgMkYj77amUviAqCT2kf3QkwsiCFRYc21SfPXSkpn8	pinned	test-pin-24
QmNtaCdRAmsR2cG4dvhfAc8eZv1kaGYoAPGZjec2KY4yG6	pinned	test-pin-11
QmdoX2NpQU7YpZzGqEAXjX4xAzkWAmFMtrHvwEgrN7vQpk	pinned	test-pin-12
QmRAaaZxYDdWjTERbPENBtqoC5aDnc5vf4Qg472ssnyCic	pinned	test-pin-14
QmaHq597QaoiqjHjwbFz2DKxjuezkPVhQ5iwGF5gxfNHb4	pinned	test-pin-15
QmU718ekePHsiEVhbRRvmRhkGb4aJwqeCoqGSD6mvdXSG6	pinned	test-pin-13
QmekSUExxjF1pycq1DtaQZyHtMq6kCNjVB3ZogSdgEguB2	pinned	test-pin-16
QmZqzBwfCLSqN7VauZHQHnQPt925CGFy3XoT6HxJ32cZS5	pinned	test-pin-17
QmfPN5b8nZdGNeqBtZtQu7V2GSnfUKM3fg1HGFnzfB9GoY	pinned	test-pin-18
QmQTzvHwJZ8N3G8tQdiZ9ykGD3Nnxb5cyUh9tJRSXLeAmT	pinned	test-pin-19
QmUqgwLckMg5QvdtXgd9WES726TqfoTX3fRpsV57cy79YU	pinned	test-pin-20
QmUnKvaCFaE8DSHMAq2XeHfrz1wW62uVbb4dNtxQ5zXy6n	pinned	test-pin-10
QmNtaCdRAmsR2cG4dvhfAc8eZv1kaGYoAPGZjec2KY4yG6	pinned	test-pin-11
QmdoX2NpQU7YpZzGqEAXjX4xAzkWAmFMtrHvwEgrN7vQpk	pinned	test-pin-12
QmRAaaZxYDdWjTERbPENBtqoC5aDnc5vf4Qg472ssnyCic	pinned	test-pin-14
QmaHq597QaoiqjHjwbFz2DKxjuezkPVhQ5iwGF5gxfNHb4	pinned	test-pin-15
QmU718ekePHsiEVhbRRvmRhkGb4aJwqeCoqGSD6mvdXSG6	pinned	test-pin-13
QmekSUExxjF1pycq1DtaQZyHtMq6kCNjVB3ZogSdgEguB2	pinned	test-pin-16
QmZqzBwfCLSqN7VauZHQHnQPt925CGFy3XoT6HxJ32cZS5	pinned	test-pin-17
QmfPN5b8nZdGNeqBtZtQu7V2GSnfUKM3fg1HGFnzfB9GoY	pinned	test-pin-18
QmQTzvHwJZ8N3G8tQdiZ9ykGD3Nnxb5cyUh9tJRSXLeAmT	pinned	test-pin-19
QmSRQJmXLc6xBHHfrFu2CmtJa9ep4wRwhy7oky8tH4P74J	pinned	test-pin-9
QmUnKvaCFaE8DSHMAq2XeHfrz1wW62uVbb4dNtxQ5zXy6n	pinned	test-pin-10
QmNtaCdRAmsR2cG4dvhfAc8eZv1kaGYoAPGZjec2KY4yG6	pinned	test-pin-11
QmdoX2NpQU7YpZzGqEAXjX4xAzkWAmFMtrHvwEgrN7vQpk	pinned	test-pin-12
QmRAaaZxYDdWjTERbPENBtqoC5aDnc5vf4Qg472ssnyCic	pinned	test-pin-14
QmaHq597QaoiqjHjwbFz2DKxjuezkPVhQ5iwGF5gxfNHb4	pinned	test-pin-15
QmU718ekePHsiEVhbRRvmRhkGb4aJwqeCoqGSD6mvdXSG6	pinned	test-pin-13
QmekSUExxjF1pycq1DtaQZyHtMq6kCNjVB3ZogSdgEguB2	pinned	test-pin-16
QmZqzBwfCLSqN7VauZHQHnQPt925CGFy3XoT6HxJ32cZS5	pinned	test-pin-17
QmfPN5b8nZdGNeqBtZtQu7V2GSnfUKM3fg1HGFnzfB9GoY	pinned	test-pin-18
Error: reason: "Rate limit exceeded", details: "You have exceeded the API rate limit. Wait a minute and slow down your requests.": 429 Too Many Requests

Behind the scenes, these requests were made (i removed origins so it is easier to eyeball):

(1) GET https://api.pinata.cloud/psa/pins?limit=10&status=pinned

Click to expand
{
    "count": 39,
    "results": [
        {
            "created": "2022-08-18T17:45:23.456Z",
            "delegates": [
                "/ip4/164.92.204.153/tcp/4001/p2p/QmXpKj6TGgW4UkquNYEQhuoTc4vgUVDyozn7M3YYH8LiaU"
            ],
            "info": {},
            "pin": {
                "cid": "QmekSUExxjF1pycq1DtaQZyHtMq6kCNjVB3ZogSdgEguB2",
                "meta": {},
                "name": "test-pin-16",
                "origins": []
            },
            "requestid": "14968902-2817-4bd0-8af0-7784cd12d5d0",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:45:31.864Z",
            "delegates": [
                "/ip4/207.154.203.81/tcp/4001/p2p/QmS7FYq658TxSnYNZ9RFm7YDGyRSSBvMb17eAkvmc67Aic"
            ],
            "info": {},
            "pin": {
                "cid": "QmZqzBwfCLSqN7VauZHQHnQPt925CGFy3XoT6HxJ32cZS5",
                "meta": {},
                "name": "test-pin-17",
                "origins": []
            },
            "requestid": "c1d53b40-71f3-4cb7-ae1b-2255fcc37978",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:45:42.442Z",
            "delegates": [
                "/ip4/164.92.130.169/tcp/4001/p2p/QmS62ScXDnwZAtsbmdE5yW2HXfYU8TjAngcP5Qkm7nvgZb"
            ],
            "info": {},
            "pin": {
                "cid": "QmfPN5b8nZdGNeqBtZtQu7V2GSnfUKM3fg1HGFnzfB9GoY",
                "meta": {},
                "name": "test-pin-18",
               "origins": []
            },
            "requestid": "b001e36b-8332-42ce-96d4-4b54afe28aef",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:45:52.426Z",
            "delegates": [
                "/ip4/164.92.130.169/tcp/4001/p2p/QmS62ScXDnwZAtsbmdE5yW2HXfYU8TjAngcP5Qkm7nvgZb"
            ],
            "info": {},
            "pin": {
                "cid": "QmQTzvHwJZ8N3G8tQdiZ9ykGD3Nnxb5cyUh9tJRSXLeAmT",
                "meta": {},
                "name": "test-pin-19",
                "origins": []
            },
            "requestid": "26df2a3f-49eb-47bb-a290-c524d6c54761",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:46:02.276Z",
            "delegates": [
                "/ip4/164.92.130.169/tcp/4001/p2p/QmS62ScXDnwZAtsbmdE5yW2HXfYU8TjAngcP5Qkm7nvgZb"
            ],
            "info": {},
            "pin": {
                "cid": "QmUqgwLckMg5QvdtXgd9WES726TqfoTX3fRpsV57cy79YU",
                "meta": {},
                "name": "test-pin-20",
                "origins": []
            },
            "requestid": "c2c8caf3-d926-4c3d-b3ee-5b7ed9a767cc",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:46:42.389Z",
            "delegates": [
                "/ip4/164.92.130.169/tcp/4001/p2p/QmS62ScXDnwZAtsbmdE5yW2HXfYU8TjAngcP5Qkm7nvgZb"
            ],
            "info": {},
            "pin": {
                "cid": "QmbqbK7pakRu2rmp38rKpp1EwnDZ9ikQbQrYiQ3sAMeofR",
                "meta": {},
                "name": "test-pin-23",
                "origins": []
            },
            "requestid": "495ff58d-1076-49fc-8718-5ab9426697bf",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:46:42.488Z",
            "delegates": [
                "/ip4/164.92.130.169/tcp/4001/p2p/QmS62ScXDnwZAtsbmdE5yW2HXfYU8TjAngcP5Qkm7nvgZb"
            ],
            "info": {},
            "pin": {
                "cid": "QmfQvgMkYj77amUviAqCT2kf3QkwsiCFRYc21SfPXSkpn8",
                "meta": {},
                "name": "test-pin-24",
                "origins": []
            },
            "requestid": "2521c5ef-7a42-4c74-9f64-13c1f52ee6a3",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:47:09.280Z",
            "delegates": [
                "/ip4/207.154.203.81/tcp/4001/p2p/QmS7FYq658TxSnYNZ9RFm7YDGyRSSBvMb17eAkvmc67Aic"
            ],
            "info": {},
            "pin": {
                "cid": "QmNThD2GkZMtzWoDvuHjb2XQnSH5NEFgWwzR5h6cqVZkB9",
                "meta": {},
                "name": "test-pin-21",
                "origins": []
            },
            "requestid": "afaf5296-db7d-45a4-896d-316d29b07ffc",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:47:09.413Z",
            "delegates": [
                "/ip4/207.154.203.81/tcp/4001/p2p/QmS7FYq658TxSnYNZ9RFm7YDGyRSSBvMb17eAkvmc67Aic"
            ],
            "info": {},
            "pin": {
                "cid": "QmTPZEhFu9tRcxNEvexkhz3Zoi4U9t9mmGncfhKqt1VyGf",
                "meta": {},
                "name": "test-pin-22",
                "origins": []
            },
            "requestid": "33008f5f-d62d-4882-bb36-70837c079a6b",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:47:09.470Z",
            "delegates": [
                "/ip4/207.154.203.81/tcp/4001/p2p/QmS7FYq658TxSnYNZ9RFm7YDGyRSSBvMb17eAkvmc67Aic"
            ],
            "info": {},
            "pin": {
                "cid": "QmbCpjNfbwbMvJqMUUHAoDAjNqdoZFo7zWEGBkCCWEZ6nA",
                "meta": {},
                "name": "test-pin-25",
                "origins": []
            },
            "requestid": "3441bb0b-bc72-4231-be83-8d21a944e0cd",
            "status": "pinned"
        }
    ]
}

(2) https://api.pinata.cloud/psa/pins?before=2022-08-18T17%3A47%3A09Z&limit=10&status=pinned

Click to expand (2)
{
    "count": 36,
    "results": [
        {
            "created": "2022-08-18T17:44:52.625Z",
            "delegates": [
                "/ip4/164.92.130.169/tcp/4001/p2p/QmS62ScXDnwZAtsbmdE5yW2HXfYU8TjAngcP5Qkm7nvgZb"
            ],
            "info": {},
            "pin": {
                "cid": "QmRAaaZxYDdWjTERbPENBtqoC5aDnc5vf4Qg472ssnyCic",
                "meta": {},
                "name": "test-pin-14",
                "origins": []
            },
            "requestid": "c6856de9-ed7b-4f4a-b8a5-340ae7e5d1bc",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:44:58.933Z",
            "delegates": [
                "/ip4/207.154.203.81/tcp/4001/p2p/QmS7FYq658TxSnYNZ9RFm7YDGyRSSBvMb17eAkvmc67Aic"
            ],
            "info": {},
            "pin": {
                "cid": "QmaHq597QaoiqjHjwbFz2DKxjuezkPVhQ5iwGF5gxfNHb4",
                "meta": {},
                "name": "test-pin-15",
                "origins": []
            },
            "requestid": "d99ad226-4e18-4b79-8eaf-83f88e38cc66",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:45:18.921Z",
            "delegates": [
                "/ip4/164.92.204.153/tcp/4001/p2p/QmXpKj6TGgW4UkquNYEQhuoTc4vgUVDyozn7M3YYH8LiaU"
            ],
            "info": {},
            "pin": {
                "cid": "QmU718ekePHsiEVhbRRvmRhkGb4aJwqeCoqGSD6mvdXSG6",
                "meta": {},
                "name": "test-pin-13",
                "origins": []
            },
            "requestid": "a230d1d5-b701-4698-8a3a-2921fa574685",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:45:23.456Z",
            "delegates": [
                "/ip4/164.92.204.153/tcp/4001/p2p/QmXpKj6TGgW4UkquNYEQhuoTc4vgUVDyozn7M3YYH8LiaU"
            ],
            "info": {},
            "pin": {
                "cid": "QmekSUExxjF1pycq1DtaQZyHtMq6kCNjVB3ZogSdgEguB2",
                "meta": {},
                "name": "test-pin-16",
                "origins": []
            },
            "requestid": "14968902-2817-4bd0-8af0-7784cd12d5d0",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:45:31.864Z",
            "delegates": [
                "/ip4/207.154.203.81/tcp/4001/p2p/QmS7FYq658TxSnYNZ9RFm7YDGyRSSBvMb17eAkvmc67Aic"
            ],
            "info": {},
            "pin": {
                "cid": "QmZqzBwfCLSqN7VauZHQHnQPt925CGFy3XoT6HxJ32cZS5",
                "meta": {},
                "name": "test-pin-17",
                "origins": []
            },
            "requestid": "c1d53b40-71f3-4cb7-ae1b-2255fcc37978",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:45:42.442Z",
            "delegates": [
                "/ip4/164.92.130.169/tcp/4001/p2p/QmS62ScXDnwZAtsbmdE5yW2HXfYU8TjAngcP5Qkm7nvgZb"
            ],
            "info": {},
            "pin": {
                "cid": "QmfPN5b8nZdGNeqBtZtQu7V2GSnfUKM3fg1HGFnzfB9GoY",
                "meta": {},
                "name": "test-pin-18",
                "origins": []
            },
            "requestid": "b001e36b-8332-42ce-96d4-4b54afe28aef",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:45:52.426Z",
            "delegates": [
                "/ip4/164.92.130.169/tcp/4001/p2p/QmS62ScXDnwZAtsbmdE5yW2HXfYU8TjAngcP5Qkm7nvgZb"
            ],
            "info": {},
            "pin": {
                "cid": "QmQTzvHwJZ8N3G8tQdiZ9ykGD3Nnxb5cyUh9tJRSXLeAmT",
                "meta": {},
                "name": "test-pin-19",
                "origins": []
            },
            "requestid": "26df2a3f-49eb-47bb-a290-c524d6c54761",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:46:02.276Z",
            "delegates": [
                "/ip4/164.92.130.169/tcp/4001/p2p/QmS62ScXDnwZAtsbmdE5yW2HXfYU8TjAngcP5Qkm7nvgZb"
            ],
            "info": {},
            "pin": {
                "cid": "QmUqgwLckMg5QvdtXgd9WES726TqfoTX3fRpsV57cy79YU",
                "meta": {},
                "name": "test-pin-20",
                "origins": []
            },
            "requestid": "c2c8caf3-d926-4c3d-b3ee-5b7ed9a767cc",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:46:42.389Z",
            "delegates": [
                "/ip4/164.92.130.169/tcp/4001/p2p/QmS62ScXDnwZAtsbmdE5yW2HXfYU8TjAngcP5Qkm7nvgZb"
            ],
            "info": {},
            "pin": {
                "cid": "QmbqbK7pakRu2rmp38rKpp1EwnDZ9ikQbQrYiQ3sAMeofR",
                "meta": {},
                "name": "test-pin-23",
                "origins": []
            },
            "requestid": "495ff58d-1076-49fc-8718-5ab9426697bf",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:46:42.488Z",
            "delegates": [
                "/ip4/164.92.130.169/tcp/4001/p2p/QmS62ScXDnwZAtsbmdE5yW2HXfYU8TjAngcP5Qkm7nvgZb"
            ],
            "info": {},
            "pin": {
                "cid": "QmfQvgMkYj77amUviAqCT2kf3QkwsiCFRYc21SfPXSkpn8",
                "meta": {},
                "name": "test-pin-24",
                "origins": []
            },
            "requestid": "2521c5ef-7a42-4c74-9f64-13c1f52ee6a3",
            "status": "pinned"
        }
    ]
}

(3) https://api.pinata.cloud/psa/pins?before=2022-08-18T17%3A46%3A42Z&limit=10&status=pinned

Click to expand (3)
{
    "count": 34,
    "results": [
        {
            "created": "2022-08-18T17:43:37.836Z",
            "delegates": [
                "/ip4/164.92.226.74/tcp/4001/p2p/QmU2jFxtJb7NEQRzXZEShxE3fBaUU5qkKDYnESgwAa2Le5"
            ],
            "info": {},
            "pin": {
                "cid": "QmNtaCdRAmsR2cG4dvhfAc8eZv1kaGYoAPGZjec2KY4yG6",
                "meta": {},
                "name": "test-pin-11",
                "origins": []
            },
            "requestid": "eb7b1a2e-cc1b-4471-8d5c-ee6e40ebbcc2",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:43:49.240Z",
            "delegates": [
                "/ip4/207.154.203.81/tcp/4001/p2p/QmS7FYq658TxSnYNZ9RFm7YDGyRSSBvMb17eAkvmc67Aic"
            ],
            "info": {},
            "pin": {
                "cid": "QmdoX2NpQU7YpZzGqEAXjX4xAzkWAmFMtrHvwEgrN7vQpk",
                "meta": {},
                "name": "test-pin-12",
                "origins": []
            },
            "requestid": "c06b2dfc-f5a0-4fa8-8645-b4b832225de7",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:44:52.625Z",
            "delegates": [
                "/ip4/164.92.130.169/tcp/4001/p2p/QmS62ScXDnwZAtsbmdE5yW2HXfYU8TjAngcP5Qkm7nvgZb"
            ],
            "info": {},
            "pin": {
                "cid": "QmRAaaZxYDdWjTERbPENBtqoC5aDnc5vf4Qg472ssnyCic",
                "meta": {},
                "name": "test-pin-14",
                "origins": []
            },
            "requestid": "c6856de9-ed7b-4f4a-b8a5-340ae7e5d1bc",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:44:58.933Z",
            "delegates": [
                "/ip4/207.154.203.81/tcp/4001/p2p/QmS7FYq658TxSnYNZ9RFm7YDGyRSSBvMb17eAkvmc67Aic"
            ],
            "info": {},
            "pin": {
                "cid": "QmaHq597QaoiqjHjwbFz2DKxjuezkPVhQ5iwGF5gxfNHb4",
                "meta": {},
                "name": "test-pin-15",
                "origins": []
            },
            "requestid": "d99ad226-4e18-4b79-8eaf-83f88e38cc66",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:45:18.921Z",
            "delegates": [
                "/ip4/164.92.204.153/tcp/4001/p2p/QmXpKj6TGgW4UkquNYEQhuoTc4vgUVDyozn7M3YYH8LiaU"
            ],
            "info": {},
            "pin": {
                "cid": "QmU718ekePHsiEVhbRRvmRhkGb4aJwqeCoqGSD6mvdXSG6",
                "meta": {},
                "name": "test-pin-13",
                "origins": []
            },
            "requestid": "a230d1d5-b701-4698-8a3a-2921fa574685",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:45:23.456Z",
            "delegates": [
                "/ip4/164.92.204.153/tcp/4001/p2p/QmXpKj6TGgW4UkquNYEQhuoTc4vgUVDyozn7M3YYH8LiaU"
            ],
            "info": {},
            "pin": {
                "cid": "QmekSUExxjF1pycq1DtaQZyHtMq6kCNjVB3ZogSdgEguB2",
                "meta": {},
                "name": "test-pin-16",
                "origins": []
            },
            "requestid": "14968902-2817-4bd0-8af0-7784cd12d5d0",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:45:31.864Z",
            "delegates": [
                "/ip4/207.154.203.81/tcp/4001/p2p/QmS7FYq658TxSnYNZ9RFm7YDGyRSSBvMb17eAkvmc67Aic"
            ],
            "info": {},
            "pin": {
                "cid": "QmZqzBwfCLSqN7VauZHQHnQPt925CGFy3XoT6HxJ32cZS5",
                "meta": {},
                "name": "test-pin-17",
                "origins": []
            },
            "requestid": "c1d53b40-71f3-4cb7-ae1b-2255fcc37978",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:45:42.442Z",
            "delegates": [
                "/ip4/164.92.130.169/tcp/4001/p2p/QmS62ScXDnwZAtsbmdE5yW2HXfYU8TjAngcP5Qkm7nvgZb"
            ],
            "info": {},
            "pin": {
                "cid": "QmfPN5b8nZdGNeqBtZtQu7V2GSnfUKM3fg1HGFnzfB9GoY",
                "meta": {},
                "name": "test-pin-18",
                "origins": []
            },
            "requestid": "b001e36b-8332-42ce-96d4-4b54afe28aef",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:45:52.426Z",
            "delegates": [
                "/ip4/164.92.130.169/tcp/4001/p2p/QmS62ScXDnwZAtsbmdE5yW2HXfYU8TjAngcP5Qkm7nvgZb"
            ],
            "info": {},
            "pin": {
                "cid": "QmQTzvHwJZ8N3G8tQdiZ9ykGD3Nnxb5cyUh9tJRSXLeAmT",
                "meta": {},
                "name": "test-pin-19",
                "origins": []
            },
            "requestid": "26df2a3f-49eb-47bb-a290-c524d6c54761",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:46:02.276Z",
            "delegates": [
                "/ip4/164.92.130.169/tcp/4001/p2p/QmS62ScXDnwZAtsbmdE5yW2HXfYU8TjAngcP5Qkm7nvgZb"
            ],
            "info": {},
            "pin": {
                "cid": "QmUqgwLckMg5QvdtXgd9WES726TqfoTX3fRpsV57cy79YU",
                "meta": {},
                "name": "test-pin-20",
                "origins": []
            },
            "requestid": "c2c8caf3-d926-4c3d-b3ee-5b7ed9a767cc",
            "status": "pinned"
        }
    ]
}

(4) https://api.pinata.cloud/psa/pins?before=2022-08-18T17%3A46%3A02Z&limit=10&status=pinned

Click to expand (4)
{
    "count": 33,
    "results": [
        {
            "created": "2022-08-18T17:43:17.924Z",
            "delegates": [
                "/ip4/164.92.226.74/tcp/4001/p2p/QmU2jFxtJb7NEQRzXZEShxE3fBaUU5qkKDYnESgwAa2Le5"
            ],
            "info": {},
            "pin": {
                "cid": "QmUnKvaCFaE8DSHMAq2XeHfrz1wW62uVbb4dNtxQ5zXy6n",
                "meta": {},
                "name": "test-pin-10",
                "origins": []
            },
            "requestid": "b1099080-dacd-4417-87e8-0bd1145ea9ed",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:43:37.836Z",
            "delegates": [
                "/ip4/164.92.226.74/tcp/4001/p2p/QmU2jFxtJb7NEQRzXZEShxE3fBaUU5qkKDYnESgwAa2Le5"
            ],
            "info": {},
            "pin": {
                "cid": "QmNtaCdRAmsR2cG4dvhfAc8eZv1kaGYoAPGZjec2KY4yG6",
                "meta": {},
                "name": "test-pin-11",
                "origins": []
            },
            "requestid": "eb7b1a2e-cc1b-4471-8d5c-ee6e40ebbcc2",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:43:49.240Z",
            "delegates": [
                "/ip4/207.154.203.81/tcp/4001/p2p/QmS7FYq658TxSnYNZ9RFm7YDGyRSSBvMb17eAkvmc67Aic"
            ],
            "info": {},
            "pin": {
                "cid": "QmdoX2NpQU7YpZzGqEAXjX4xAzkWAmFMtrHvwEgrN7vQpk",
                "meta": {},
                "name": "test-pin-12",
                "origins": []
            },
            "requestid": "c06b2dfc-f5a0-4fa8-8645-b4b832225de7",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:44:52.625Z",
            "delegates": [
                "/ip4/164.92.130.169/tcp/4001/p2p/QmS62ScXDnwZAtsbmdE5yW2HXfYU8TjAngcP5Qkm7nvgZb"
            ],
            "info": {},
            "pin": {
                "cid": "QmRAaaZxYDdWjTERbPENBtqoC5aDnc5vf4Qg472ssnyCic",
                "meta": {},
                "name": "test-pin-14",
                "origins": []
            },
            "requestid": "c6856de9-ed7b-4f4a-b8a5-340ae7e5d1bc",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:44:58.933Z",
            "delegates": [
                "/ip4/207.154.203.81/tcp/4001/p2p/QmS7FYq658TxSnYNZ9RFm7YDGyRSSBvMb17eAkvmc67Aic"
            ],
            "info": {},
            "pin": {
                "cid": "QmaHq597QaoiqjHjwbFz2DKxjuezkPVhQ5iwGF5gxfNHb4",
                "meta": {},
                "name": "test-pin-15",
                "origins": []
            },
            "requestid": "d99ad226-4e18-4b79-8eaf-83f88e38cc66",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:45:18.921Z",
            "delegates": [
                "/ip4/164.92.204.153/tcp/4001/p2p/QmXpKj6TGgW4UkquNYEQhuoTc4vgUVDyozn7M3YYH8LiaU"
            ],
            "info": {},
            "pin": {
                "cid": "QmU718ekePHsiEVhbRRvmRhkGb4aJwqeCoqGSD6mvdXSG6",
                "meta": {},
                "name": "test-pin-13",
                "origins": []
            },
            "requestid": "a230d1d5-b701-4698-8a3a-2921fa574685",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:45:23.456Z",
            "delegates": [
                "/ip4/164.92.204.153/tcp/4001/p2p/QmXpKj6TGgW4UkquNYEQhuoTc4vgUVDyozn7M3YYH8LiaU"
            ],
            "info": {},
            "pin": {
                "cid": "QmekSUExxjF1pycq1DtaQZyHtMq6kCNjVB3ZogSdgEguB2",
                "meta": {},
                "name": "test-pin-16",
                "origins": []
            },
            "requestid": "14968902-2817-4bd0-8af0-7784cd12d5d0",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:45:31.864Z",
            "delegates": [
                "/ip4/207.154.203.81/tcp/4001/p2p/QmS7FYq658TxSnYNZ9RFm7YDGyRSSBvMb17eAkvmc67Aic"
            ],
            "info": {},
            "pin": {
                "cid": "QmZqzBwfCLSqN7VauZHQHnQPt925CGFy3XoT6HxJ32cZS5",
                "meta": {},
                "name": "test-pin-17",
                "origins": []
            },
            "requestid": "c1d53b40-71f3-4cb7-ae1b-2255fcc37978",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:45:42.442Z",
            "delegates": [
                "/ip4/164.92.130.169/tcp/4001/p2p/QmS62ScXDnwZAtsbmdE5yW2HXfYU8TjAngcP5Qkm7nvgZb"
            ],
            "info": {},
            "pin": {
                "cid": "QmfPN5b8nZdGNeqBtZtQu7V2GSnfUKM3fg1HGFnzfB9GoY",
                "meta": {},
                "name": "test-pin-18",
                "origins": []
            },
            "requestid": "b001e36b-8332-42ce-96d4-4b54afe28aef",
            "status": "pinned"
        },
        {
            "created": "2022-08-18T17:45:52.426Z",
            "delegates": [
                "/ip4/164.92.130.169/tcp/4001/p2p/QmS62ScXDnwZAtsbmdE5yW2HXfYU8TjAngcP5Qkm7nvgZb"
            ],
            "info": {},
            "pin": {
                "cid": "QmQTzvHwJZ8N3G8tQdiZ9ykGD3Nnxb5cyUh9tJRSXLeAmT",
                "meta": {},
                "name": "test-pin-19",
                "origins": []
            },
            "requestid": "26df2a3f-49eb-47bb-a290-c524d6c54761",
            "status": "pinned"
        }
    ]
}

(5) https://api.pinata.cloud/psa/pins?before=2022-08-18T17%3A45%3A42Z&limit=10&status=pinned

Click to expand (5)
{
    "error": {
        "details": "You have exceeded the API rate limit. Wait a minute and slow down your requests.",
        "reason": "Rate limit exceeded"
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant