{"id":51126528,"url":"https://github.com/apiverve/number-to-words-html-tutorial","last_synced_at":"2026-06-25T08:01:57.697Z","repository":{"id":338751697,"uuid":"1158997815","full_name":"apiverve/number-to-words-html-tutorial","owner":"apiverve","description":"Number to words converter that converts numbers to written form using vanilla JavaScript","archived":false,"fork":false,"pushed_at":"2026-02-16T07:40:55.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-16T15:19:19.894Z","etag":null,"topics":["apiverve","html","javascript","number-converter","number-to-words","text-conversion","tutorial","vanilla-js"],"latest_commit_sha":null,"homepage":"https://apiverve.com/marketplace/numbertowords","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apiverve.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-16T07:21:25.000Z","updated_at":"2026-02-16T07:40:58.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/apiverve/number-to-words-html-tutorial","commit_stats":null,"previous_names":["apiverve/number-to-words-html-tutorial"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/apiverve/number-to-words-html-tutorial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apiverve%2Fnumber-to-words-html-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apiverve%2Fnumber-to-words-html-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apiverve%2Fnumber-to-words-html-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apiverve%2Fnumber-to-words-html-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apiverve","download_url":"https://codeload.github.com/apiverve/number-to-words-html-tutorial/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apiverve%2Fnumber-to-words-html-tutorial/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34765322,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apiverve","html","javascript","number-converter","number-to-words","text-conversion","tutorial","vanilla-js"],"created_at":"2026-06-25T08:01:57.611Z","updated_at":"2026-06-25T08:01:57.690Z","avatar_url":"https://github.com/apiverve.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Number to Words Converter | APIVerve API Tutorial\r\n\r\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\r\n[![Build](https://img.shields.io/badge/Build-Passing-brightgreen.svg)]()\r\n[![HTML](https://img.shields.io/badge/HTML-5-e34c26)](https://developer.mozilla.org/en-US/docs/Web/HTML)\r\n[![JavaScript](https://img.shields.io/badge/JavaScript-ES6-f7df1e)](https://developer.mozilla.org/en-US/docs/Web/JavaScript)\r\n[![APIVerve | Number to Words](https://img.shields.io/badge/APIVerve-Number_to_Words-purple)](https://apiverve.com/marketplace/numbertowords?utm_source=github\u0026utm_medium=tutorial\u0026utm_campaign=number-to-words-html-tutorial)\r\n\r\nA simple web app that converts numbers to their written word form. Supports decimals, ordinals, and provides detailed digit information.\r\n\r\n![Screenshot](https://raw.githubusercontent.com/apiverve/number-to-words-html-tutorial/main/screenshot.jpg)\r\n\r\n---\r\n\r\n### Get Your Free API Key\r\n\r\nThis tutorial requires an APIVerve API key. **[Sign up free](https://dashboard.apiverve.com?utm_source=github\u0026utm_medium=tutorial\u0026utm_campaign=number-to-words-html-tutorial)** - no credit card required.\r\n\r\n---\r\n\r\n## Features\r\n\r\n- Convert any number to words\r\n- Supports decimal numbers\r\n- Shows ordinal form (first, second, etc.)\r\n- Digit breakdown\r\n- Beautiful purple gradient theme\r\n- No build tools required\r\n- Single HTML file\r\n\r\n## Quick Start\r\n\r\n1. **Clone this repository**\r\n   ```bash\r\n   git clone https://github.com/apiverve/number-to-words-html-tutorial.git\r\n   cd number-to-words-html-tutorial\r\n   ```\r\n\r\n2. **Add your API key**\r\n\r\n   Open `index.html` and find this line:\r\n   ```javascript\r\n   const API_KEY = 'your-api-key-here';\r\n   ```\r\n   Replace with your actual API key.\r\n\r\n3. **Open in browser**\r\n\r\n   Double-click `index.html` or serve it with any web server:\r\n   ```bash\r\n   npx serve .\r\n   ```\r\n\r\n## Project Structure\r\n\r\n```\r\nnumber-to-words-html-tutorial/\r\n├── index.html          # Complete app (HTML + CSS + JS)\r\n├── screenshot.jpg      # Preview image\r\n├── LICENSE             # MIT license\r\n├── .gitignore          # Git ignore rules\r\n└── README.md           # This file\r\n```\r\n\r\n## How It Works\r\n\r\n1. User enters a number\r\n2. JavaScript calls the API directly\r\n3. API returns number in words plus extras\r\n4. Display all conversion data\r\n\r\n### The API Call\r\n\r\n```javascript\r\nconst response = await fetch(`https://api.apiverve.com/v1/numbertowords?number=975.07`, {\r\n  method: 'GET',\r\n  headers: {\r\n    'x-api-key': API_KEY\r\n  }\r\n});\r\n```\r\n\r\n## API Reference\r\n\r\n**Endpoint:** `GET https://api.apiverve.com/v1/numbertowords`\r\n\r\n**Query Parameters:**\r\n\r\n| Parameter | Type | Required | Description |\r\n|-----------|------|----------|-------------|\r\n| `number` | number | Yes | The number to convert |\r\n\r\n**Example Response:**\r\n\r\n```json\r\n{\r\n  \"status\": \"ok\",\r\n  \"error\": null,\r\n  \"data\": {\r\n    \"number\": 975.07,\r\n    \"words\": \"nine hundred seventy-five point zero seven\",\r\n    \"ordinal\": \"nine hundred seventy-fifth point zero seven\",\r\n    \"numberOfDigits_numeric\": 3,\r\n    \"numberOfDigits_words\": \"three\",\r\n    \"eachNumber\": [\r\n      \"nine\",\r\n      \"seven\",\r\n      \"five\"\r\n    ],\r\n    \"afterDecimal\": {\r\n      \"number\": \"07\",\r\n      \"words\": [\r\n        \"zero\",\r\n        \"seven\"\r\n      ],\r\n      \"numberOfDigits_numeric\": 2,\r\n      \"numberOfDigits_words\": \"two\"\r\n    },\r\n    \"locale\": \"en-US\"\r\n  }\r\n}\r\n```\r\n\r\n## Response Fields\r\n\r\n| Field | Description |\r\n|-------|-------------|\r\n| `words` | Full number in words |\r\n| `ordinal` | Ordinal form (e.g., \"first\", \"forty-second\") |\r\n| `numberOfDigits_numeric` | Count of digits as number |\r\n| `numberOfDigits_words` | Count of digits in words |\r\n| `eachNumber` | Array of each digit in words |\r\n| `afterDecimal` | Decimal portion details (if applicable) |\r\n| `locale` | Language locale used |\r\n\r\n## Example Conversions\r\n\r\n| Number | Words |\r\n|--------|-------|\r\n| 42 | forty-two |\r\n| 1000000 | one million |\r\n| 3.14159 | three point one four one five nine |\r\n| 2025 | two thousand twenty-five |\r\n| 1st | first |\r\n\r\n## Customization Ideas\r\n\r\n- Add copy to clipboard\r\n- Support multiple languages\r\n- Currency formatting\r\n- Check writing helper\r\n- Text-to-speech output\r\n- Batch conversions\r\n\r\n## Related APIs\r\n\r\nExplore more APIs at [APIVerve](https://apiverve.com/marketplace?utm_source=github\u0026utm_medium=tutorial\u0026utm_campaign=number-to-words-html-tutorial):\r\n\r\n- [Words to Numbers](https://apiverve.com/marketplace/wordstonumbers?utm_source=github\u0026utm_medium=tutorial\u0026utm_campaign=number-to-words-html-tutorial) - Reverse conversion\r\n- [Roman Numeral Converter](https://apiverve.com/marketplace/romannumeralconverter?utm_source=github\u0026utm_medium=tutorial\u0026utm_campaign=number-to-words-html-tutorial) - Convert to Roman numerals\r\n- [Currency Converter](https://apiverve.com/marketplace/currencyconverter?utm_source=github\u0026utm_medium=tutorial\u0026utm_campaign=number-to-words-html-tutorial) - Convert currencies\r\n\r\n## Free Plan Note\r\n\r\nThis tutorial works with the free APIVerve plan. Some APIs may have:\r\n- **Locked fields**: Premium response fields return `null` on free plans\r\n- **Ignored parameters**: Some optional parameters require a paid plan\r\n\r\nThe API response includes a `premium` object when limitations apply. [Upgrade anytime](https://dashboard.apiverve.com/plans) to unlock all features.\r\n\r\n## License\r\n\r\nMIT - see [LICENSE](LICENSE)\r\n\r\n## Links\r\n\r\n- [Get API Key](https://dashboard.apiverve.com?utm_source=github\u0026utm_medium=tutorial\u0026utm_campaign=number-to-words-html-tutorial) - Sign up free\r\n- [APIVerve Marketplace](https://apiverve.com/marketplace?utm_source=github\u0026utm_medium=tutorial\u0026utm_campaign=number-to-words-html-tutorial) - Browse 300+ APIs\r\n- [Number to Words API](https://apiverve.com/marketplace/numbertowords?utm_source=github\u0026utm_medium=tutorial\u0026utm_campaign=number-to-words-html-tutorial) - API details\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapiverve%2Fnumber-to-words-html-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapiverve%2Fnumber-to-words-html-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapiverve%2Fnumber-to-words-html-tutorial/lists"}