Why is the Google NewsApi limited to 100 results per request? How can I get more results? [closed]












-2















Like in title someone know how get more articles than 100 ?
totalResults sometimes is > 4000 why i can get max 100 ?










share|improve this question















closed as off-topic by sideshowbarker, ewolden, Temani Afif, Michael Dodd, Stephen Kennedy Nov 14 '18 at 14:53



  • This question does not appear to be about programming within the scope defined in the help center.

If this question can be reworded to fit the rules in the help center, please edit the question.














  • Limit is set, I am sure they have an offset parameter "page " to make more calls to get the next 100.

    – epascarello
    Nov 14 '18 at 13:29













  • if the api provides pagination - you should be able to get "next" pages by increasing offset

    – Peter Pajchl
    Nov 14 '18 at 13:29











  • Can you provide your code for your request?

    – Matthi
    Nov 14 '18 at 13:51











  • you mean fetch request ?

    – tobi1512
    Nov 14 '18 at 13:59






  • 4





    I'm voting to close this question as off-topic because this is not a programming question but instead is a question about a vendor’s policy for their API that only the vendor can answer, and others here can only speculate about.

    – sideshowbarker
    Nov 14 '18 at 14:24
















-2















Like in title someone know how get more articles than 100 ?
totalResults sometimes is > 4000 why i can get max 100 ?










share|improve this question















closed as off-topic by sideshowbarker, ewolden, Temani Afif, Michael Dodd, Stephen Kennedy Nov 14 '18 at 14:53



  • This question does not appear to be about programming within the scope defined in the help center.

If this question can be reworded to fit the rules in the help center, please edit the question.














  • Limit is set, I am sure they have an offset parameter "page " to make more calls to get the next 100.

    – epascarello
    Nov 14 '18 at 13:29













  • if the api provides pagination - you should be able to get "next" pages by increasing offset

    – Peter Pajchl
    Nov 14 '18 at 13:29











  • Can you provide your code for your request?

    – Matthi
    Nov 14 '18 at 13:51











  • you mean fetch request ?

    – tobi1512
    Nov 14 '18 at 13:59






  • 4





    I'm voting to close this question as off-topic because this is not a programming question but instead is a question about a vendor’s policy for their API that only the vendor can answer, and others here can only speculate about.

    – sideshowbarker
    Nov 14 '18 at 14:24














-2












-2








-2








Like in title someone know how get more articles than 100 ?
totalResults sometimes is > 4000 why i can get max 100 ?










share|improve this question
















Like in title someone know how get more articles than 100 ?
totalResults sometimes is > 4000 why i can get max 100 ?







javascript google-api fetch






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 14 '18 at 14:00









Matthi

582212




582212










asked Nov 14 '18 at 13:24









tobi1512tobi1512

247




247




closed as off-topic by sideshowbarker, ewolden, Temani Afif, Michael Dodd, Stephen Kennedy Nov 14 '18 at 14:53



  • This question does not appear to be about programming within the scope defined in the help center.

If this question can be reworded to fit the rules in the help center, please edit the question.




closed as off-topic by sideshowbarker, ewolden, Temani Afif, Michael Dodd, Stephen Kennedy Nov 14 '18 at 14:53



  • This question does not appear to be about programming within the scope defined in the help center.

If this question can be reworded to fit the rules in the help center, please edit the question.













  • Limit is set, I am sure they have an offset parameter "page " to make more calls to get the next 100.

    – epascarello
    Nov 14 '18 at 13:29













  • if the api provides pagination - you should be able to get "next" pages by increasing offset

    – Peter Pajchl
    Nov 14 '18 at 13:29











  • Can you provide your code for your request?

    – Matthi
    Nov 14 '18 at 13:51











  • you mean fetch request ?

    – tobi1512
    Nov 14 '18 at 13:59






  • 4





    I'm voting to close this question as off-topic because this is not a programming question but instead is a question about a vendor’s policy for their API that only the vendor can answer, and others here can only speculate about.

    – sideshowbarker
    Nov 14 '18 at 14:24



















  • Limit is set, I am sure they have an offset parameter "page " to make more calls to get the next 100.

    – epascarello
    Nov 14 '18 at 13:29













  • if the api provides pagination - you should be able to get "next" pages by increasing offset

    – Peter Pajchl
    Nov 14 '18 at 13:29











  • Can you provide your code for your request?

    – Matthi
    Nov 14 '18 at 13:51











  • you mean fetch request ?

    – tobi1512
    Nov 14 '18 at 13:59






  • 4





    I'm voting to close this question as off-topic because this is not a programming question but instead is a question about a vendor’s policy for their API that only the vendor can answer, and others here can only speculate about.

    – sideshowbarker
    Nov 14 '18 at 14:24

















Limit is set, I am sure they have an offset parameter "page " to make more calls to get the next 100.

– epascarello
Nov 14 '18 at 13:29







Limit is set, I am sure they have an offset parameter "page " to make more calls to get the next 100.

– epascarello
Nov 14 '18 at 13:29















if the api provides pagination - you should be able to get "next" pages by increasing offset

– Peter Pajchl
Nov 14 '18 at 13:29





if the api provides pagination - you should be able to get "next" pages by increasing offset

– Peter Pajchl
Nov 14 '18 at 13:29













Can you provide your code for your request?

– Matthi
Nov 14 '18 at 13:51





Can you provide your code for your request?

– Matthi
Nov 14 '18 at 13:51













you mean fetch request ?

– tobi1512
Nov 14 '18 at 13:59





you mean fetch request ?

– tobi1512
Nov 14 '18 at 13:59




4




4





I'm voting to close this question as off-topic because this is not a programming question but instead is a question about a vendor’s policy for their API that only the vendor can answer, and others here can only speculate about.

– sideshowbarker
Nov 14 '18 at 14:24





I'm voting to close this question as off-topic because this is not a programming question but instead is a question about a vendor’s policy for their API that only the vendor can answer, and others here can only speculate about.

– sideshowbarker
Nov 14 '18 at 14:24












2 Answers
2






active

oldest

votes


















0














i suggest that there a restriction in NewsApi
https://newsapi.org/docs/endpoints/top-headlines
enter image description here



For example:
you have next link



https://newsapi.org/v2/top-headlines?country=us&apiKey=API_KEY


as a result you get next json



{
"status": "ok",
"totalResults": 20,
-"articles": [
-{
-"source": {
"id": "the-new-york-times",
"name": "The New York Times"
},
...


with totalResults parameter.



You need to iterate through pages increment page (look at documentation)
param.



upd.



page param in url like this:
https://newsapi.org/v2/top-headlines?country=us&page=1&apiKey=API_KEY






share|improve this answer


























  • thanks but how use this param ?

    – tobi1512
    Nov 14 '18 at 14:05











  • check upd. in answer

    – Ishikawa Yoshi
    Nov 14 '18 at 14:06





















0














Often APIs are limited to a max amount of returned data sets. This is to ensure a controlled behavior. If the API providers let the total results up to the user, they would leave a big uncertainty about the performance of the API.



Who really needs more than the max amount of results is often able to do so by following a “next” link in the API response header, to load the next 100 results.



Additionally the providers often control the requests per second per user to prevent extrem workload of their app.






share|improve this answer






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    i suggest that there a restriction in NewsApi
    https://newsapi.org/docs/endpoints/top-headlines
    enter image description here



    For example:
    you have next link



    https://newsapi.org/v2/top-headlines?country=us&apiKey=API_KEY


    as a result you get next json



    {
    "status": "ok",
    "totalResults": 20,
    -"articles": [
    -{
    -"source": {
    "id": "the-new-york-times",
    "name": "The New York Times"
    },
    ...


    with totalResults parameter.



    You need to iterate through pages increment page (look at documentation)
    param.



    upd.



    page param in url like this:
    https://newsapi.org/v2/top-headlines?country=us&page=1&apiKey=API_KEY






    share|improve this answer


























    • thanks but how use this param ?

      – tobi1512
      Nov 14 '18 at 14:05











    • check upd. in answer

      – Ishikawa Yoshi
      Nov 14 '18 at 14:06


















    0














    i suggest that there a restriction in NewsApi
    https://newsapi.org/docs/endpoints/top-headlines
    enter image description here



    For example:
    you have next link



    https://newsapi.org/v2/top-headlines?country=us&apiKey=API_KEY


    as a result you get next json



    {
    "status": "ok",
    "totalResults": 20,
    -"articles": [
    -{
    -"source": {
    "id": "the-new-york-times",
    "name": "The New York Times"
    },
    ...


    with totalResults parameter.



    You need to iterate through pages increment page (look at documentation)
    param.



    upd.



    page param in url like this:
    https://newsapi.org/v2/top-headlines?country=us&page=1&apiKey=API_KEY






    share|improve this answer


























    • thanks but how use this param ?

      – tobi1512
      Nov 14 '18 at 14:05











    • check upd. in answer

      – Ishikawa Yoshi
      Nov 14 '18 at 14:06
















    0












    0








    0







    i suggest that there a restriction in NewsApi
    https://newsapi.org/docs/endpoints/top-headlines
    enter image description here



    For example:
    you have next link



    https://newsapi.org/v2/top-headlines?country=us&apiKey=API_KEY


    as a result you get next json



    {
    "status": "ok",
    "totalResults": 20,
    -"articles": [
    -{
    -"source": {
    "id": "the-new-york-times",
    "name": "The New York Times"
    },
    ...


    with totalResults parameter.



    You need to iterate through pages increment page (look at documentation)
    param.



    upd.



    page param in url like this:
    https://newsapi.org/v2/top-headlines?country=us&page=1&apiKey=API_KEY






    share|improve this answer















    i suggest that there a restriction in NewsApi
    https://newsapi.org/docs/endpoints/top-headlines
    enter image description here



    For example:
    you have next link



    https://newsapi.org/v2/top-headlines?country=us&apiKey=API_KEY


    as a result you get next json



    {
    "status": "ok",
    "totalResults": 20,
    -"articles": [
    -{
    -"source": {
    "id": "the-new-york-times",
    "name": "The New York Times"
    },
    ...


    with totalResults parameter.



    You need to iterate through pages increment page (look at documentation)
    param.



    upd.



    page param in url like this:
    https://newsapi.org/v2/top-headlines?country=us&page=1&apiKey=API_KEY







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Nov 14 '18 at 14:07

























    answered Nov 14 '18 at 13:29









    Ishikawa YoshiIshikawa Yoshi

    1,02041740




    1,02041740













    • thanks but how use this param ?

      – tobi1512
      Nov 14 '18 at 14:05











    • check upd. in answer

      – Ishikawa Yoshi
      Nov 14 '18 at 14:06





















    • thanks but how use this param ?

      – tobi1512
      Nov 14 '18 at 14:05











    • check upd. in answer

      – Ishikawa Yoshi
      Nov 14 '18 at 14:06



















    thanks but how use this param ?

    – tobi1512
    Nov 14 '18 at 14:05





    thanks but how use this param ?

    – tobi1512
    Nov 14 '18 at 14:05













    check upd. in answer

    – Ishikawa Yoshi
    Nov 14 '18 at 14:06







    check upd. in answer

    – Ishikawa Yoshi
    Nov 14 '18 at 14:06















    0














    Often APIs are limited to a max amount of returned data sets. This is to ensure a controlled behavior. If the API providers let the total results up to the user, they would leave a big uncertainty about the performance of the API.



    Who really needs more than the max amount of results is often able to do so by following a “next” link in the API response header, to load the next 100 results.



    Additionally the providers often control the requests per second per user to prevent extrem workload of their app.






    share|improve this answer




























      0














      Often APIs are limited to a max amount of returned data sets. This is to ensure a controlled behavior. If the API providers let the total results up to the user, they would leave a big uncertainty about the performance of the API.



      Who really needs more than the max amount of results is often able to do so by following a “next” link in the API response header, to load the next 100 results.



      Additionally the providers often control the requests per second per user to prevent extrem workload of their app.






      share|improve this answer


























        0












        0








        0







        Often APIs are limited to a max amount of returned data sets. This is to ensure a controlled behavior. If the API providers let the total results up to the user, they would leave a big uncertainty about the performance of the API.



        Who really needs more than the max amount of results is often able to do so by following a “next” link in the API response header, to load the next 100 results.



        Additionally the providers often control the requests per second per user to prevent extrem workload of their app.






        share|improve this answer













        Often APIs are limited to a max amount of returned data sets. This is to ensure a controlled behavior. If the API providers let the total results up to the user, they would leave a big uncertainty about the performance of the API.



        Who really needs more than the max amount of results is often able to do so by following a “next” link in the API response header, to load the next 100 results.



        Additionally the providers often control the requests per second per user to prevent extrem workload of their app.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 14 '18 at 13:28









        MatthiMatthi

        582212




        582212















            這個網誌中的熱門文章

            Xamarin.form Move up view when keyboard appear

            Post-Redirect-Get with Spring WebFlux and Thymeleaf

            Anylogic : not able to use stopDelay()