Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8823723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:25:47+00:00 2026-06-14T06:25:47+00:00

I need to do an advanced Google search, using their SiteSearch API. I’m currently

  • 0

I need to do an advanced Google search, using their SiteSearch API. I’m currently using a string of the following format that is sent via curl to my search engine:

$search_url = "http://www.google.com/search?start=0&num=20&as_qdr=" . $as_qdr . "&q=" . $q . "&sort=date&client=google-csbe&output=xml_no_dtd&cx=" . $cx;

The problem is that my query needs to be of the form:

(“MY SENTENCE” AND “JOHN DOE”) OR “MIKE TYSON”

Unfortunately, I’m unable to find anything in Google Documentations to replace the usual sql parenthesis. I have tried using the parenthesis itself but although most results seem accurate, some of the results do not really match the query. For example, they contain “MY SENTENCE” and “MIKE TYSON”, but not JOHN DOE.

Is it even possible to do such complicated queries in Google?

Edit:
I just forgot to mention that I tried the parenthesis directly on google.com (not using the API), for my testing.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T06:25:48+00:00Added an answer on June 14, 2026 at 6:25 am

    According to the Google Guide website, which is not affiliated with Google, you can use a mix of both, the OR operator (alternatively |) and the double quotes " as a group compound, to achieve what you wanted, it’s all described in this article.
    Further the whole Crafting Your Query article is also interesting to learn how to get the most of Google’s possibilities when using their search.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using google place api to search specific types like(gas_station,cafes,shopping_malls etc...) here is
I need to create a menu tree using HTML. I had a search on
I'm building an web app that uses this code to search for addresses: http://code.google.com/intl/en/apis/maps/documentation/javascript/examples/places-autocomplete.html
I wanted to develop a VB.NET application that uses google search and get the
I've got a web application using the Google Maps JavaScript API(v3) and I'm hitting
I need some advanced CSS help here. I have a login button and a
I need to do what to me is an advanced sort. I have this
I need help in jquery. Thanks in advance. I am using autocomplete function of
Need help, function getFamily() { FB.api('/me/family', function(response) { alert(JSON.stringify(response)); }); } With the above
I do some search to google images http://www.google.com/search?hl=en&q=panda&bav=on.2,or.r_gc.r_pw.r_cp.r_qf.,cf.osb&biw=1287&bih=672&um=1&ie=UTF-8&tbm=isch&source=og&sa=N&tab=wi&ei=qW4FUJigJ4jWtAbToInABg and the result is thousands of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.