Why is the Google NewsApi limited to 100 results per request? How can I get more results? [closed]
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
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.
add a comment |
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
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
add a comment |
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
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
javascript google-api fetch
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
i suggest that there a restriction in NewsApi
https://newsapi.org/docs/endpoints/top-headlines
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
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
add a comment |
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.
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
i suggest that there a restriction in NewsApi
https://newsapi.org/docs/endpoints/top-headlines
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
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
add a comment |
i suggest that there a restriction in NewsApi
https://newsapi.org/docs/endpoints/top-headlines
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
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
add a comment |
i suggest that there a restriction in NewsApi
https://newsapi.org/docs/endpoints/top-headlines
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
i suggest that there a restriction in NewsApi
https://newsapi.org/docs/endpoints/top-headlines
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
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
add a comment |
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Nov 14 '18 at 13:28
MatthiMatthi
582212
582212
add a comment |
add a comment |
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