Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moaqz/webmeta
🕷 Metadata extractor
https://github.com/moaqz/webmeta
cloudflare-workers metadata website
Last synced: 2 months ago
JSON representation
🕷 Metadata extractor
- Host: GitHub
- URL: https://github.com/moaqz/webmeta
- Owner: moaqz
- Created: 2024-08-06T15:41:12.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-09-07T00:30:44.000Z (5 months ago)
- Last Synced: 2024-09-07T03:12:44.466Z (5 months ago)
- Topics: cloudflare-workers, metadata, website
- Language: TypeScript
- Homepage: https://webmeta.moaqz.workers.dev
- Size: 66.4 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Parameters
- **`from`**: (required) The page URL from which to extract metadata.
- **`fields`**: (optional) A comma-separated list of specific fields to return. If not provided, all available fields will be returned.### Allowed Fields
- **`title`**
- **`description`**
- **`favicon`**
- **`og_type`**
- **`og_title`**
- **`og_description`**
- **`og_image`**### Example Request
```
GET https://webmeta.moaqz.workers.dev?from=https://www.cloudflare.com&fields=title,og_image
```### Example Response
If the request is successful and specific fields are requested, the response will include those fields:
```json
{
"data": {
"title": "Connect, Protect and Build Everywhere | Cloudflare",
"og_image": "https://cf-assets.www.cloudflare.com/slt3lc6tev37/2FNnxFZOBEha1W2MhF44EN/e9438de558c983ccce8129ddc20e1b8b/CF_MetaImage_1200x628.png"
}
}
```If no fields are specified, the response will include all available fields:
```json
{
"data": {
"title": "Connect, Protect and Build Everywhere | Cloudflare",
"description": "Make employees, applications and networks faster and more secure everywhere, while reducing complexity and cost.",
"favicon": "https://www.cloudflare.com/favicon.ico",
"og_description": "Make employees, applications and networks faster and more secure everywhere, while reducing complexity and cost.",
"og_title": "Connect, Protect and Build Everywhere",
"og_type": "",
"og_image": "https://cf-assets.www.cloudflare.com/slt3lc6tev37/2FNnxFZOBEha1W2MhF44EN/e9438de558c983ccce8129ddc20e1b8b/CF_MetaImage_1200x628.png"
}
}
```