Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Command-Line
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TheOuterLinux
Command-Line
Commits
8969dc09
Commit
8969dc09
authored
Mar 05, 2019
by
TheOuterLinux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
ca402e19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Internet/Retrieving/curl/curl - Examples.txt
Internet/Retrieving/curl/curl - Examples.txt
+6
-0
No files found.
Internet/Retrieving/curl/curl - Examples.txt
View file @
8969dc09
...
@@ -67,6 +67,9 @@ curl -s https://decapi.me/twitch/hightlight?channel=CHANNELNAME
...
@@ -67,6 +67,9 @@ curl -s https://decapi.me/twitch/hightlight?channel=CHANNELNAME
Expand shortened URL:
Expand shortened URL:
curl -sI <URL> | sed -n 's/Location: *//p';
curl -sI <URL> | sed -n 's/Location: *//p';
Avatar URL:
curl -A "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3" -L https://twitch.tv/CHANNELNAME | grep -Eo '(http|https)://[^"]+/jtv_user_pictures/[^"]+' | tail -n 1
PICARTO
PICARTO
-------
-------
Get information about a channel by ID:
Get information about a channel by ID:
...
@@ -75,6 +78,9 @@ curl -X GET --header 'Accept: text/plain' 'https://api.picarto.tv/v1/channel/id/
...
@@ -75,6 +78,9 @@ curl -X GET --header 'Accept: text/plain' 'https://api.picarto.tv/v1/channel/id/
Get information about a channel by name:
Get information about a channel by name:
curl -X GET --header 'Accept: application/json' 'https://api.picarto.tv/v1/channel/name/CHANNELNAME'
curl -X GET --header 'Accept: application/json' 'https://api.picarto.tv/v1/channel/name/CHANNELNAME'
Avatar URL:
curl -s -X GET --header 'Accept: text/plain' https://api.picarto.tv/v1/channel/name/CHANNELNAME | cut -d '"' -f10
Viewer count:
Viewer count:
curl -s -X GET --header 'Accept: application/json' https://api.picarto.tv/v1/channel/name/CHANNELNAME | cut -d '"' -f15 | sed 's/://g; s/,//g'
curl -s -X GET --header 'Accept: application/json' https://api.picarto.tv/v1/channel/name/CHANNELNAME | cut -d '"' -f15 | sed 's/://g; s/,//g'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment