tumblr
Tumblr API Development and Integration
What this skill does
# Tumblr API Skill
Comprehensive assistance with Tumblr API development, authentication, and integration. This skill provides practical guidance for building applications that interact with Tumblr's platform.
## When to Use This Skill
This skill should be triggered when:
- Integrating with the Tumblr API (any version)
- Implementing OAuth 1.0a or OAuth 2.0 authentication for Tumblr
- Working with Tumblr blog data, posts, likes, or followers
- Building Tumblr clients, dashboard tools, or analytics applications
- Debugging Tumblr API requests or responses
- Understanding Tumblr's Neue Post Format (NPF) or legacy post types
- Managing rate limits or API quotas
- Handling Tumblr webhooks or real-time updates
## Quick Reference
### 1. Fetch Blog Information
Retrieve basic blog metadata including title, description, and post count:
```bash
curl -H 'User-Agent: MyApp/1.0' \
'https://api.tumblr.com/v2/blog/staff.tumblr.com/info?api_key=YOUR_API_KEY'
```
**Response includes:** Blog title, URL, post count, description, avatar, theme settings.
### 2. Get Recent Posts
Retrieve the 5 most recent posts from a blog:
```bash
curl -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
'https://api.tumblr.com/v2/blog/staff.tumblr.com/posts?limit=5'
```
**Query parameters:**
- `limit`: 1-20 posts per request
- `offset`: Pagination offset
- `tag`: Filter by tag
- `npf=true`: Request Neue Post Format
### 3. OAuth 2.0 Token Exchange
Exchange authorization code for access token:
```bash
curl -X POST https://api.tumblr.com/v2/oauth2/token \
-F grant_type=authorization_code \
-F code=YOUR_AUTH_CODE \
-F client_id=YOUR_CONSUMER_KEY \
-F client_secret=YOUR_CONSUMER_SECRET
```
**Scopes:** `basic`, `write`, `offline_access`
### 4. Get Blog Avatar
Fetch blog avatar image URL:
```bash
curl 'https://api.tumblr.com/v2/blog/staff.tumblr.com/avatar/128'
```
**Available sizes:** 16, 24, 30, 40, 48, 64, 96, 128, 512 (default: 64)
### 5. Retrieve Liked Posts
Get posts liked by a blog:
```bash
curl -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
'https://api.tumblr.com/v2/blog/staff.tumblr.com/likes?limit=20&offset=0'
```
**Parameters:** `limit`, `offset`, `before` (timestamp), `after` (timestamp)
### 6. Queue Management
Retrieve queued posts:
```bash
curl -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
'https://api.tumblr.com/v2/blog/myblog.tumblr.com/posts/queue'
```
Reorder queue:
```bash
curl -X POST https://api.tumblr.com/v2/blog/myblog.tumblr.com/posts/queue/reorder \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-d 'post_id=123456789'
```
### 7. Get Followers
Retrieve blog followers:
```bash
curl -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
'https://api.tumblr.com/v2/blog/myblog.tumblr.com/followers'
```
**Response includes:** Total follower count, follower blog objects with names and URLs.
### 8. Filter Posts by Tag
Retrieve posts with specific tag:
```bash
curl -H 'User-Agent: MyApp/1.0' \
'https://api.tumblr.com/v2/blog/staff.tumblr.com/posts?api_key=YOUR_KEY&tag=photography&limit=10'
```
### 9. Standard API Response Format
All Tumblr API responses follow this structure:
```json
{
"meta": {
"status": 200,
"msg": "OK"
},
"response": {
"blog": { },
"posts": [ ]
}
}
```
### 10. Working with Blog Identifiers
Three interchangeable identifier formats:
```bash
# Blog name
/v2/blog/staff/info
# Hostname
/v2/blog/staff.tumblr.com/info
# UUID (stable, persistent)
/v2/blog/t:0aY0xL2Fi1OFJg4YxpmegQ/info
```
**Recommendation:** Use UUID for long-term stability (survives blog renames).
## Key Concepts
### Authentication Levels
1. **None** - Public endpoints (blog info, public posts) require no authentication
2. **API Key** - Use OAuth Consumer Key as `api_key` query parameter
3. **OAuth** - Signed requests using OAuth 1.0a or OAuth 2.0 for user-specific data
### Rate Limits
**Per IP Address:**
- 300 calls/minute
- 18,000 calls/hour
- 432,000 calls/day
**Per Consumer Key:**
- 1,000 calls/hour
- 5,000 calls/day
**Action Limits:**
- 250 posts/day
- 200 follows/day
- 1,000 likes/day
### Post Formats
**Legacy Post Types:**
- Text, Photo, Quote, Link, Chat, Audio, Video, Answer
**Neue Post Format (NPF):**
- Modern block-based format
- Posts with `type: blocks` or `is_blocks_post_format: true`
- Request with `npf=true` parameter
- Contains `content` (blocks), `layout` (specifications), `trail` (reblog chain)
### Post IDs
Post IDs are 64-bit integers. **Important:** Use `id_string` field for JavaScript or languages with unsafe integer handling.
### Required Headers
**User-Agent:** Mandatory for all requests. Must be consistent. Format: `AppName/Version`
**Content-Type:** Required for POST/PUT with body. Accepted:
- `application/json`
- `application/x-www-form-urlencoded`
- `multipart/form-data`
## Reference Files
This skill includes comprehensive documentation in `references/`:
- **api.md** - Complete Tumblr API documentation including:
- All authentication methods (OAuth 1.0a, OAuth 2.0, API key)
- Blog endpoints (info, posts, avatar, likes, following, followers)
- User endpoints (dashboard, likes, following)
- Post creation and management
- Queue and draft management
- Neue Post Format (NPF) specification
- Legacy post type fields
- Rate limits and best practices
- Response format documentation
Use the `view` command to read specific reference files when detailed information is needed.
## Working with This Skill
### For Beginners
1. **Start with public endpoints** - No authentication needed:
- Fetch blog info: `/v2/blog/{blog}/info?api_key={key}`
- Get public posts: `/v2/blog/{blog}/posts?api_key={key}`
2. **Register your application:**
- Visit https://www.tumblr.com/oauth/apps
- Get OAuth Consumer Key and Secret
- Use Consumer Key as `api_key` for public endpoints
3. **Test with API Console:**
- https://api.tumblr.com/console
- Interactive testing environment
### For OAuth Implementation
1. **Choose OAuth version:**
- OAuth 2.0: Modern, simpler, bearer tokens
- OAuth 1.0a: Legacy, more complex, signed requests
2. **OAuth 2.0 flow:**
- Redirect user to authorization URL with scopes
- Exchange authorization code for access token
- Use token in `Authorization: Bearer {token}` header
3. **OAuth 1.0a flow:**
- Request temporary credentials
- Redirect user to authorize
- Exchange verifier for access token
- Sign all requests with token
### For Advanced Features
1. **Neue Post Format (NPF):**
- Add `npf=true` to any post-returning endpoint
- Work with content blocks and layout objects
- Access full reblog trail
2. **Pagination:**
- Use `offset` for numeric pagination
- Use `before`/`after` with timestamps for chronological navigation
- Check `_links` object for next/previous URLs
3. **Partial responses:**
- Use `fields` parameter to specify blog object fields
- Reduces response size and improves performance
4. **JSONP support:**
- Add `jsonp=callbackName` to GET requests
- Useful for client-side JavaScript
## Common Patterns
### Authentication Flow (OAuth 2.0)
```bash
# Step 1: Redirect user to authorization URL
https://www.tumblr.com/oauth2/authorize?client_id={key}&response_type=code&scope=basic%20write&state={random}
# Step 2: User authorizes, Tumblr redirects back with code
# Your redirect URL receives: ?code={auth_code}
# Step 3: Exchange code for access token
curl -X POST https://api.tumblr.com/v2/oauth2/token \
-F grant_type=authorization_code \
-F code={auth_code} \
-F client_id={consumer_key} \
-F client_secret={consumer_secret}
# Step 4: Use access token in requests
curl -H 'Authorization: Bearer {access_token}' \
'https://api.tumblr.com/v2/user/info'
```
### Error Handling
```json
{
"meta": {
"status": 401,
"msg": "Unauthorized"
},
"response": [ ],
"errors": [
{
"title": "Unauthorized",
"code": 401,
"detail": "OAuth authentiRelated in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.