basic-recipes.md
### The basics
This is a collection of basic "recipes", many using [twurl](https://github.com/twitter/twurl) (the Swiss Army Knife for the Twitter API!) and [jq](https://stedolan.github.io/jq/) to query the [Twitter API](https://dev.twitter.com) and format the results. Also, some scripts to test or automate common actions.
basic-user-info.md
`twurl "/1.1/users/show.json?screen_name=andypiper" | jq '. | {id: .id_str, name: .name, screen_name: .screen_name, bio: .description, location: .location}'`
```javascript
{
"id": "786491",
"name": "andy piper (pipes)",
"screen_name": "andypiper",
"bio": "I'm the lead @TwitterDev @twitterapi platform team - find the best help via https://t.co/T2vkQoJ64f. Code, community, & respect. ⌨️ 🌈 🙇 #HeForShe 🏳️🌈",
"location": "Kingston upon Thames, London"
}
This file has been truncated. show original
batch-handles-to-IDs.md
`twurl "/1.1/users/lookup.json?screen_name=andypiper,evilpiper,airatair" | jq '[.[] | {user_id: .id_str, screen_name: .screen_name}]'`
```javascript
[
{
"user_id": "786491",
"screen_name": "andypiper"
},
{
"user_id": "54931584",
This file has been truncated. show original
There are more than three files. show original