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 7079501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:40:47+00:00 2026-05-28T06:40:47+00:00

How can I check the number of api hits per day from Linux. Scenario

  • 0

How can I check the number of api hits per day from Linux.

Scenario : I need to hit my client’s api to fetch data.
The api is hit using the cron job and through Linux wget command.
Client is complaining that he receives huge number of hits from my IP.

So, how can I find the number of times the api is hit/day from linux command.

Please help.
Its urgent!!

  • 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-05-28T06:40:48+00:00Added an answer on May 28, 2026 at 6:40 am

    If you are sure, that wget to your client’s api is only invoked by a cron job, you can look at your crontab with the following command:

    crontab -l
    

    In the most cases you have to call crontab with root rights to see the system wide crontab. You will get something like this:

    # m h  dom mon dow   command
     10 1   *   *   1    /usr/bin/wget http://example.com/api
    

    This means, wget is scheduled to request the example api every monday at 01:10am. You can interpret the output of crontab like this:

    *     *     *     *     *  command to be executed
    -     -     -     -     -
    |     |     |     |     |
    |     |     |     |     +----- day of the week (0 - 7)
    |     |     |     +------- month (1 - 12)
    |     |     +--------- day (1 - 31)
    |     +----------- hour (0 - 23)
    +------------- minute (0 - 59)
    

    More likely for your case is an output like this:

    # m h  dom mon dow   command
    */5 *   *   *   *    /usr/bin/wget http://example.com/api
    

    this means, wget is called every fifth minute (288 hits per day).

    If cron is not calling wget directly but a script, you will have to analyse that script to say how often wget is called. An alternative solution in that case would be to set a firewall rule to log every request to the client’s api server.

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

Sidebar

Related Questions

Can I check the number of values in an array, for example... $abc=array(); $abc[0]=asd;
How can we check if the input number is either positive or negative in
How can I check selector to see if he is ending with number? JS
I know that I can check whether the linux timestamp in $time is today
If an API expects a 64 bit type, how can I check that a
Is there any API to check if any number exceeds it's range? My number
I need to check the total number ShellIconOverLayIdentifers installed in a computer programmatically using
I want to check if string doesn't have more than 5 numbers. I can
Can check out here alt text http://51hired.com/static/problem.bmp
I can check for iPhone with this code: (navigator.userAgent.match(/iPhone/i)) But I want to target

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.