Login About Gallery
Notion Note 2
Accepts
App Store Apps, Articles, Contacts, Dates, Email Addresses, Files, Images, iTunes Products, Locations, Map Links, Media, PDFs, Phone Numbers, Rich Text, Safari Web Pages, Text and URLs
TEXT
<Notion API>
TEXT
<Notion Database ID>
TEXT
<YouTube Data API (optional)>
SCRIPTING
Get name of
Shortcut Input
SCRIPTING
If
Name
contains
youtube
TEXT
Match
\?.*$
in
Shortcut Input
Case Sensitive
DOCUMENTS
Replace
&feature=share
with
in
Matches
Case Sensitive
Regular Expression
DOCUMENTS
Replace
?v=
with
World
in
Second
Case Sensitive
Regular Expression
DOCUMENTS
Replace
with
World
in
Video ID
Case Sensitive
Regular Expression
VARIABLES
Set variable
URL
to
Video ID 2
URL
https://www.googleapis.com/youtube/v3/videos?id=
Video ID 2
&key=
Youtube Key
&fields=items(id,snippet(channelId,title,categoryId),statistics)&part=snippet,statistics
NETWORK
Get contents of
URL
Options Under Construction
SCRIPTING
Get dictionary from
Contents of URL
SCRIPTING
Get
Value
for
items
in
Youtube API Response
SCRIPTING
Get
Value
for
snippet
in
Items
SCRIPTING
Get
Value
for
title
in
Snippet
VARIABLES
Set variable
Title
to
Title
VARIABLES
Set variable
URL
to
Name
Otherwise
SCRIPTING
Count
Items
in
Name
SCRIPTING
If
Count
is
1
SCRIPTING
Get
Item At Index
1
from
Name
VARIABLES
Set variable
Title
to
Title
WEB
Get URLs from
Shortcut Input
VARIABLES
Set variable
URL
to
URLs
Otherwise
SCRIPTING
Get
Item At Index
3
from
Name
VARIABLES
Set variable
Title
to
Title
SCRIPTING
Get
Item At Index
2
from
Name
VARIABLES
Set variable
URL
to
URL
End If
End If
SCRIPTING
Ask
Notes to Notion
Input Type
Text
Default Answer
Text
TEXT
Split
User Input
by
New Lines
SCRIPTING
Repeat with each item in
Split Text
TEXT
{ "object": "block", "type": "numbered_list_item", "numbered_list_item": { "text": [ { "type": "text", "text": { "content": "
Repeat Item
" } } ] } }
End Repeat
TEXT
Combine
Repeat Results
with
Custom
,
TEXT
{ "parent": { "database_id": "
Database Id
" }, "properties": { "Name": { "title": [ { "text": { "content": "
URL
" } } ] }, "URL": { "url":"
Combined Text
" } }, "children": [
Title
] }
SCRIPTING
Get dictionary from
Text
NETWORK
Get contents of
https://api.notion.com/v1/pages
Options Under Construction

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 2 years ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0