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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:15:07+00:00 2026-05-28T08:15:07+00:00

I want to make a request to the twitter api. This is the example

  • 0

I want to make a request to the twitter api. This is the example provided in the documentation (https://dev.twitter.com/docs/api/1/get/search):

GET:

http://search.twitter.com/search.json?q=blue%20angels&rpp=5&include_entities=true&result_type=mixed

There is no example request on the documentation. How would the request for this url be including an alert with data response?

  • 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-28T08:15:07+00:00Added an answer on May 28, 2026 at 8:15 am

    Look if this helps, I made an example for you:

    Basically the HTML code contains 2 inputs. one for the button and one for the query string.

    <html>
    <head>
        <title>example</title>
    </head>
    <body>
       <div style="padding: 20px;">
            <input id="query" type="text" value="blue angels" />
            <input id="submit" type="button" value="Search" />
        </div>
        <div id="tweets" style="padding: 20px;">
            Tweets will go here.
        </div>
    </body>
    </html>
    

    After pressing the search button, you’ll send a request to twitter asking for 5 results (rpp) containing the query string.

    Here’s the javascript for this page:

    function searchTwitter(query) {
        $.ajax({
            url: 'http://search.twitter.com/search.json?' + jQuery.param(query),
            dataType: 'jsonp',
            success: function(data) {
                var tweets = $('#tweets');
                tweets.html('');
                for (res in data['results']) {
                    tweets.append('<div>' + data['results'][res]['from_user'] + ' wrote: <p>' + data['results'][res]['text'] + '</p></div><br />');
            }
            }
        });
    }
    
    $(document).ready(function() {
        $('#submit').click(function() {
            var params = {
                q: $('#query').val(),
                rpp: 5
            };
            // alert(jQuery.param(params));
            searchTwitter(params);
        });
    });
    

    The trick is the jQuery.param() function that you’ll pass the params for the search/request

    See it running here:

    http://jsfiddle.net/73L4c/6/

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

Sidebar

Related Questions

Basically I make a request to a server using NSURLRequest, like: GET www.example.com/blah The
I want to make HTTPS request through PHP to a server and get the
In my view, I want to make a request to mine.com/more/stuff/ from an arbitrary
I want to make a request to asp.net page using jQuery.get() . How should
I'm want to make a request to google API and pass the resulting XML
I want to make a post request and i do like this: function Xxx_Click()
I want to make a request to a web services http://www.w3schools.com/webservices/tempconvert.asmx and I cannot
I have a situation where I want to make a request to third-party API(url
I want to make a request to Twitter for a keyword that has a
I want to make a http request with android. is use this: void testHTTP()

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.