Skip to main content
reworded a bit to focus on the has_more issue instead of the key or authentication problems.
Source Link
rene
  • 2.8k
  • 2
  • 17
  • 35

Access token and API token The /questions endpoint only returns around 30,000 items where 400,000 are expected

In order to use the stackexchange api should someone first set up an access token in the code and after that set the api key as it is mentioned here?

I use stackr library and I registered an api key as the library mentions "since it increases your daily quota of queries from 300 to 10,000." So I use the following code, which worked fine some months ago, and give all the questions related to a tag. However now it gives only around 30000

library(stackr)
Sys.setenv(STACK_EXCHANGE_KEY = "RBeb2Cm7UIYNbN4lwegbaQ((")
df_questions_r <- stack_questions(tagged="r", num_pages=1000000, pagesize=100, filter="!UHY-aKsFJ(KvceZ5uauvQDp9b_ZwAQaEY0KwVy4Czncd97-22tonZWvDXfhmP(X*Baz8J0uC0Q")

So that's whyGiven I ask if there is a need to set up an acces token firsthave setup my key correctly and no other rate-limiting issues, how can I fetch the 400,000 questions in the R tag on Stack Overflow and/or how do I get past that 30,000 items limit?

Access token and API token

In order to use the stackexchange api should someone first set up an access token in the code and after that set the api key as it is mentioned here?

I use stackr library and I registered an api key as the library mentions "since it increases your daily quota of queries from 300 to 10,000." So I use the following code, which worked fine some months ago, and give all the questions related to a tag. However now it gives only around 30000

library(stackr)
Sys.setenv(STACK_EXCHANGE_KEY = "RBeb2Cm7UIYNbN4lwegbaQ((")
df_questions_r <- stack_questions(tagged="r", num_pages=1000000, pagesize=100, filter="!UHY-aKsFJ(KvceZ5uauvQDp9b_ZwAQaEY0KwVy4Czncd97-22tonZWvDXfhmP(X*Baz8J0uC0Q")

So that's why I ask if there is a need to set up an acces token first

The /questions endpoint only returns around 30,000 items where 400,000 are expected

I use stackr library and I registered an api key as the library mentions "since it increases your daily quota of queries from 300 to 10,000." So I use the following code, which worked fine some months ago, and give all the questions related to a tag. However now it gives only around 30000

library(stackr)
Sys.setenv(STACK_EXCHANGE_KEY = "RBeb2Cm7UIYNbN4lwegbaQ((")
df_questions_r <- stack_questions(tagged="r", num_pages=1000000, pagesize=100, filter="!UHY-aKsFJ(KvceZ5uauvQDp9b_ZwAQaEY0KwVy4Czncd97-22tonZWvDXfhmP(X*Baz8J0uC0Q")

Given I have setup my key correctly and no other rate-limiting issues, how can I fetch the 400,000 questions in the R tag on Stack Overflow and/or how do I get past that 30,000 items limit?

added 625 characters in body
Source Link

In order to use the stackexchange api should someone first set up an access token in the code and after that set the api key as it is mentioned here?

I use stackr library and I registered an api key as the library mentions "since it increases your daily quota of queries from 300 to 10,000." So I use the following code, which worked fine some months ago, and give all the questions related to a tag. However now it gives only around 30000

library(stackr)
Sys.setenv(STACK_EXCHANGE_KEY = "RBeb2Cm7UIYNbN4lwegbaQ((")
df_questions_r <- stack_questions(tagged="r", num_pages=1000000, pagesize=100, filter="!UHY-aKsFJ(KvceZ5uauvQDp9b_ZwAQaEY0KwVy4Czncd97-22tonZWvDXfhmP(X*Baz8J0uC0Q")

So that's why I ask if there is a need to set up an acces token first

In order to use the stackexchange api should someone first set up an access token in the code and after that set the api key as it is mentioned here?

In order to use the stackexchange api should someone first set up an access token in the code and after that set the api key as it is mentioned here?

I use stackr library and I registered an api key as the library mentions "since it increases your daily quota of queries from 300 to 10,000." So I use the following code, which worked fine some months ago, and give all the questions related to a tag. However now it gives only around 30000

library(stackr)
Sys.setenv(STACK_EXCHANGE_KEY = "RBeb2Cm7UIYNbN4lwegbaQ((")
df_questions_r <- stack_questions(tagged="r", num_pages=1000000, pagesize=100, filter="!UHY-aKsFJ(KvceZ5uauvQDp9b_ZwAQaEY0KwVy4Czncd97-22tonZWvDXfhmP(X*Baz8J0uC0Q")

So that's why I ask if there is a need to set up an acces token first

Source Link

Access token and API token

In order to use the stackexchange api should someone first set up an access token in the code and after that set the api key as it is mentioned here?