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

  • Home
  • SEARCH
  • 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 9189981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:21:28+00:00 2026-06-17T20:21:28+00:00

I am trying to modify some java code which uses the Google API. One

  • 0

I am trying to modify some java code which uses the Google API. One of the features I have not been able to get is the dateRestrict. Information about this can be found here:

GoogleAPI

To implement this I attach the following string after my query. It is properly connected with the full URL because other parameters work with it.

String parameters = "&dateRestrict=2012-01-01";

I have also tried 1d and 1m but those don’t work either as parameters

If someone could show me of an example of dateRestrict I would greatly appreciate it. I just don’t understand how they mean to use it in the API. Thank you.

  • 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-17T20:21:29+00:00Added an answer on June 17, 2026 at 8:21 pm

    On the Using REST to Invoke the API you can find information about dateRestrict parameter. Notes about parameter: Restricts results to URLs based on date. Supported values include:

    • d[number]: requests results from the specified number of past days.
    • w[number]: requests results from the specified number of past weeks.
    • m[number]: requests results from the specified number of past months.
    • y[number]: requests results from the specified number of past years.

    Example usage should look like this:

    String parameters = "&dateRestrict=d20";
    

    or

    String parameters = "&dateRestrict=y1";
    

    I think, you can play with APIs Explorer for this method for better understanding this parameter.

    Also see:

    • Looking for Urgent solution regarding Google custom search API with
      Date-restrict parameter
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to modify a code from MyKong adding some lines which change the
I keep getting this error while trying to modify some tables. Here's my code:
I have a command line that I'm trying to modify to remove some of
I'm trying to modify some code I found online to my needs. It is
I have a GAE app that uses the java.util.Calendar class. My app changes some
I'm trying to programatically modify some XML elements using PHP. They have the form
First off I'm new to Android and Java.. I have been trying to add
I am trying to modify some open source code to change how it filters
I'm trying to modify some code that returns results from the database. Currently the
I'm trying to modify some variables [not necessary from the same class/struct] from keyboard's

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.