forem-api
Forem API
What this skill does
# Forem API Skill
Comprehensive assistance with Forem API (v1) development. Forem is the platform that powers DEV.to and other online communities. This skill provides guidance on interacting with articles, users, comments, organizations, tags, and more through the Forem REST API.
## When to Use This Skill
This skill should be triggered when:
- **Building integrations with Forem-based platforms** (DEV.to, Forem communities)
- **Publishing or managing articles programmatically** via Forem API
- **Retrieving user data, comments, or organization information** from Forem
- **Implementing authentication** with Forem API keys
- **Working with tags, followers, reading lists, or reactions** on Forem
- **Debugging Forem API requests** or understanding response formats
- **Learning Forem API endpoints** and best practices
- **Managing display ads or podcast episodes** through the API
## Quick Reference
### Authentication Setup
Set up authentication headers for Forem API v1 requests:
```bash
# Required headers for authenticated requests
curl -X GET "https://dev.to/api/articles/me" \
-H "api-key: YOUR_API_KEY" \
-H "accept: application/vnd.forem.api-v1+json"
```
**Key points:**
- Generate API key at `dev.to/settings/extensions`
- Use `api-key` header (not `Authorization`)
- Include `accept: application/vnd.forem.api-v1+json` header
### Get Authenticated User Info
```bash
# Retrieve current user's profile information
curl -X GET "https://dev.to/api/users/me" \
-H "api-key: YOUR_API_KEY" \
-H "accept: application/vnd.forem.api-v1+json"
```
**Response:**
```json
{
"type_of": "user",
"id": 1431,
"username": "username480",
"name": "User Name",
"twitter_username": "twitter_handle",
"github_username": "github_handle",
"joined_at": "Apr 14, 2023",
"profile_image": "/uploads/user/profile_image/..."
}
```
### Publish a New Article
```javascript
// Create and publish an article with tags
const response = await fetch('https://dev.to/api/articles', {
method: 'POST',
headers: {
'api-key': 'YOUR_API_KEY',
'accept': 'application/vnd.forem.api-v1+json',
'content-type': 'application/json'
},
body: JSON.stringify({
article: {
title: "Getting Started with Forem API",
description: "Learn how to integrate with Forem",
body_markdown: "## Introduction\n\n**Forem** is amazing!",
published: true,
tags: ["webdev", "api", "tutorial"]
}
})
});
const data = await response.json();
console.log(data.url); // https://dev.to/username/getting-started-...
```
**Returns:** Article object with `id`, `slug`, `path`, `url`, and `published_timestamp`
### Get Published Articles with Filters
```python
import requests
# Get JavaScript articles from the last 7 days
params = {
'tag': 'javascript',
'top': 7,
'per_page': 10,
'page': 1
}
response = requests.get(
'https://dev.to/api/articles',
params=params,
headers={'accept': 'application/vnd.forem.api-v1+json'}
)
articles = response.json()
for article in articles:
print(f"{article['title']} by {article['user']['name']}")
```
**Query parameters:**
- `tag` - Filter by single tag
- `tags` - Multiple tags (comma-separated)
- `username` - Filter by author
- `top` - Days since publication
- `per_page` - Results per page (30-1000)
- `page` - Page number for pagination
### Get User's Draft Articles
```bash
# Retrieve your unpublished articles
curl -X GET "https://dev.to/api/articles/me/unpublished" \
-H "api-key: YOUR_API_KEY" \
-H "accept: application/vnd.forem.api-v1+json"
```
**Other endpoints:**
- `/articles/me` - All your articles
- `/articles/me/published` - Published only
- `/articles/me/unpublished` - Drafts only
- `/articles/me/all` - Everything including hidden
### Update an Existing Article
```json
PUT /articles/{id}
Content-Type: application/json
Headers: api-key, accept
{
"article": {
"title": "Updated Title",
"body_markdown": "Updated content with **bold** text",
"published": true
}
}
```
### Get Comments for an Article
```python
# Get comments by article ID
response = requests.get(
'https://dev.to/api/comments',
params={'a_id': 123456},
headers={'accept': 'application/vnd.forem.api-v1+json'}
)
comments = response.json()
for comment in comments:
print(f"{comment['user']['name']}: {comment['body_html']}")
```
**Query parameters:**
- `a_id` - Article ID
- `p_id` - Podcast episode ID
### Create a Reaction (Like)
```bash
# Add a "like" reaction to an article
curl -X POST "https://dev.to/api/reactions" \
-H "api-key: YOUR_API_KEY" \
-H "accept: application/vnd.forem.api-v1+json" \
-H "content-type: application/json" \
-d '{
"category": "like",
"reactable_id": 123456,
"reactable_type": "Article"
}'
```
**Categories:** `like`, `unicorn`, `readinglist`, `thinking`
### Get Organization Details
```bash
# Fetch organization information and articles
curl -X GET "https://dev.to/api/organizations/forem" \
-H "accept: application/vnd.forem.api-v1+json"
# Get organization's published articles
curl -X GET "https://dev.to/api/organizations/forem/articles" \
-H "accept: application/vnd.forem.api-v1+json"
```
### Get Available Tags
```javascript
// Fetch popular tags from the platform
const response = await fetch('https://dev.to/api/tags', {
headers: { 'accept': 'application/vnd.forem.api-v1+json' }
});
const tags = await response.json();
tags.forEach(tag => {
console.log(`${tag.name} - ${tag.bg_color_hex}`);
});
```
## Key Concepts
### API Versions
- **API v1** - Current recommended version (`application/vnd.forem.api-v1+json`)
- **API v0** - Deprecated legacy version
### Authentication
- **API Key Authentication** - Required for most write operations
- **Public Endpoints** - Some GET endpoints work without authentication
- **CORS Policy** - Disabled on authenticated endpoints, open on public endpoints
### Response Formats
All responses use JSON format with consistent structure:
- `type_of` - Resource type (article, user, comment, etc.)
- `id` - Unique identifier
- Standard fields based on resource type
### Rate Limiting
Follow best practices to avoid rate limits:
- Use pagination for large datasets
- Cache responses when appropriate
- Implement exponential backoff for retries
### Pagination
Most list endpoints support pagination:
- `page` - Page number (starts at 1)
- `per_page` - Items per page (typically 30-1000, default 30)
### Common Status Codes
- `200` - Success (GET, PUT)
- `201` - Created (POST)
- `204` - No Content (DELETE, unpublish)
- `401` - Unauthorized (invalid API key)
- `404` - Not Found
- `422` - Unprocessable Entity (validation errors)
## Reference Files
This skill includes comprehensive documentation in `references/`:
- **api.md** - Complete Forem API v1 reference documentation
Use `view` or read the reference file directly when you need:
- Detailed endpoint specifications
- Complete parameter lists
- Response schema details
- Additional code examples
## Working with This Skill
### For Beginners
1. **Start with authentication** - Generate your API key at `dev.to/settings/extensions`
2. **Try read-only endpoints first** - Use `GET /articles` or `GET /users/{username}` without auth
3. **Test with curl** - The examples above work directly in your terminal
4. **Use the Quick Reference** - Start with common patterns like getting articles or user info
### For Building Integrations
1. **Understand pagination** - Most lists require pagination for large datasets
2. **Handle errors gracefully** - Check status codes and response messages
3. **Use proper headers** - Always include both `api-key` and `accept` headers
4. **Test in development** - Use a test account before production deployment
### For Content Management
1. **Publishing workflow** - Create drafts (`published: false`), review, then update to publish
2. **Bulk operations** - Use pagination to process all articles
3. **Tag management** - Fetch available tags before creaRelated 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.