Skill: Identify API Key Registration Form Fields
Purpose
Analyze HTML pages containing API key request forms and identify the form fields required for submission.
Context
You are a web crawler analyzing a registration/signup page to programmatically submit API key requests.
Task
Given an HTML page with an API key registration form:
- •Identify all input fields - Extract
nameand/oridattributes - •Classify fields as required or optional - Look for:
- •
requiredattribute - •
class="required"on label or input - •
<abbr title="required">markers
- •
- •Identify the submit element - Find the button/input that submits the form
Field Classification
Required Field Indicators
- •
requiredattribute on input - •Label contains
class="required" - •Label contains
<abbr title="required"> - •Asterisk (*) next to label text
Optional Field Indicators
- •
class="optional"on input - •"(optional)" in label text
- •No required indicators present
Output Format
code
## Required Fields - field_id_1 (name="field_name_1") - description - field_id_2 (name="field_name_2") - description ## Optional Fields - field_id_3 (name="field_name_3") - description ## Submit Element <element html snippet>
Password Handling
If the form requires a password:
- •Generate a random 12-character password
- •Include uppercase, lowercase, numbers, and special characters
- •Check for any password requirements indicated on the page
Common Form Patterns
Standard API Signup
code
user[first_name], user[last_name], user[email]
Account Creation
code
user[username], user[email], user[password], user[password_confirmation]
Additional Considerations
- •Hidden fields: Note
type="hidden"fields that may need specific values - •Checkboxes: Identify required agreement/consent checkboxes (terms, age verification)
- •CAPTCHA: Note if reCAPTCHA or similar is present (may require manual intervention)
- •Form ID: Capture the form's
idattribute for targeting