Skip to main content
added 128 characters in body
Source Link
noogui
  • 165
  • 5

Just want to confirm if I'm doing this right. The /questions guide doesn't mention this.

Let's say I want to ask for multiple tags in one request, am I doing this right?

https://api.stackexchange.com/2.2/questions?pagesize=70&order=desc&sort=activity&site=stackoverflow&tagged=google-docs-api&tagged=firebase-database&tagged=android-sdk&tagged=google-drive-sdk&fromdate=1515888000

So basically what I'm doing is to chain multiple 'tagged=ACTUAL_TAG' together. I get a successful response but when I compare that in the "Stack Overflow search q" results,

https://stackoverflow.com/search?q=

I get varying results/responses - they're not exactly alike. Some of the questions from the "Stack Overflow search q" are not found in my URI request. That's why I'm asking if I'm doing something wrong..

EDIT: As answered below, the /search URI request did the trick for me as it allows "OR" tags where you chain tags together.

Just want to confirm if I'm doing this right. The /questions guide doesn't mention this.

Let's say I want to ask for multiple tags in one request, am I doing this right?

https://api.stackexchange.com/2.2/questions?pagesize=70&order=desc&sort=activity&site=stackoverflow&tagged=google-docs-api&tagged=firebase-database&tagged=android-sdk&tagged=google-drive-sdk&fromdate=1515888000

So basically what I'm doing is to chain multiple 'tagged=ACTUAL_TAG' together. I get a successful response but when I compare that in the "Stack Overflow search q" results,

https://stackoverflow.com/search?q=

I get varying results/responses - they're not exactly alike. Some of the questions from the "Stack Overflow search q" are not found in my URI request. That's why I'm asking if I'm doing something wrong..

Just want to confirm if I'm doing this right. The /questions guide doesn't mention this.

Let's say I want to ask for multiple tags in one request, am I doing this right?

https://api.stackexchange.com/2.2/questions?pagesize=70&order=desc&sort=activity&site=stackoverflow&tagged=google-docs-api&tagged=firebase-database&tagged=android-sdk&tagged=google-drive-sdk&fromdate=1515888000

So basically what I'm doing is to chain multiple 'tagged=ACTUAL_TAG' together. I get a successful response but when I compare that in the "Stack Overflow search q" results,

https://stackoverflow.com/search?q=

I get varying results/responses - they're not exactly alike. Some of the questions from the "Stack Overflow search q" are not found in my URI request. That's why I'm asking if I'm doing something wrong..

EDIT: As answered below, the /search URI request did the trick for me as it allows "OR" tags where you chain tags together.

Removed thanks per SE policy.
Source Link
Brock Adams
  • 13k
  • 5
  • 39
  • 64

Just want to confirm if I'm doing this right. The /questions guide doesntdoesn't mention this.

Let's say I want to ask for multiple tags in one request, am I doing this right?

https://api.stackexchange.com/2.2/questions?pagesize=70&order=desc&sort=activity&site=stackoverflow&tagged=google-docs-api&tagged=firebase-database&tagged=android-sdk&tagged=google-drive-sdk&fromdate=1515888000

So basically what I'm doing is to chain multiple 'tagged=ACTUAL_TAG' together. I get a successful response but when I compare that in the "stackover flow"Stack Overflow search q" results,

https://stackoverflow.com/search?q=

I get varying results/responses - they're not exactly alike. Some of the questions from the "stackover flow "Stack Overflow search q" are not found in my URI request.That's That's why I'm asking if I'm doing something wrong..

Thanks in advance.

Just want to confirm if I'm doing this right. The /questions guide doesnt mention this.

Let's say I want to ask for multiple tags in one request, am I doing this right?

https://api.stackexchange.com/2.2/questions?pagesize=70&order=desc&sort=activity&site=stackoverflow&tagged=google-docs-api&tagged=firebase-database&tagged=android-sdk&tagged=google-drive-sdk&fromdate=1515888000

So basically what I'm doing is to chain multiple 'tagged=ACTUAL_TAG' together. I get a successful response but when I compare that in the "stackover flow search q" results,

https://stackoverflow.com/search?q=

I get varying results/responses - they're not exactly alike. Some of the questions from the "stackover flow search q" are not found in my URI request.That's why I'm asking if I'm doing something wrong..

Thanks in advance.

Just want to confirm if I'm doing this right. The /questions guide doesn't mention this.

Let's say I want to ask for multiple tags in one request, am I doing this right?

https://api.stackexchange.com/2.2/questions?pagesize=70&order=desc&sort=activity&site=stackoverflow&tagged=google-docs-api&tagged=firebase-database&tagged=android-sdk&tagged=google-drive-sdk&fromdate=1515888000

So basically what I'm doing is to chain multiple 'tagged=ACTUAL_TAG' together. I get a successful response but when I compare that in the "Stack Overflow search q" results,

https://stackoverflow.com/search?q=

I get varying results/responses - they're not exactly alike. Some of the questions from the "Stack Overflow search q" are not found in my URI request. That's why I'm asking if I'm doing something wrong..

Source Link
noogui
  • 165
  • 5

How to Create a Multi-tag URI Request to /questions

Just want to confirm if I'm doing this right. The /questions guide doesnt mention this.

Let's say I want to ask for multiple tags in one request, am I doing this right?

https://api.stackexchange.com/2.2/questions?pagesize=70&order=desc&sort=activity&site=stackoverflow&tagged=google-docs-api&tagged=firebase-database&tagged=android-sdk&tagged=google-drive-sdk&fromdate=1515888000

So basically what I'm doing is to chain multiple 'tagged=ACTUAL_TAG' together. I get a successful response but when I compare that in the "stackover flow search q" results,

https://stackoverflow.com/search?q=

I get varying results/responses - they're not exactly alike. Some of the questions from the "stackover flow search q" are not found in my URI request.That's why I'm asking if I'm doing something wrong..

Thanks in advance.