MTVN Content API Forums

MTV Music Site Feedback

RSS Feed

Paging problem

    • Soernt
    • Topic created 1 year ago

    Hi,

    I try to page through the result of that query:
    "http://api.mtvnservices.com/1/genre/hip_hop/artists/?max-results=100&start-index=1&sort=relevance"

    at the first call I calculate based on the "totalResults" and "max-results" the total pages = 7;
    <opensearch:totalResults>692</opensearch:totalResults>
    <opensearch:startIndex>1</opensearch:startIndex>
    <opensearch:itemsPerPage>100</opensearch:itemsPerPage>

    I think on page 7 there should be the elements from 601-692 = 92
    but I get 100 elements back?

    For testing, I paged until page 9:
    "http://api.mtvnservices.com/1/genre/hip_hop/artists/?max-results=100&start-index=9&sort=relevance"
    and I still get results back.

    That shouldn't be the case right?

    Kind regards,

    Sörnt

  1. Soernt1 year ago

    I Should read the doc more carefully start-index is not a page index - Sorry

New comments are not being accepted at this time.