You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -44,3 +54,104 @@ Alternatively, head to [Shields.io dynamic page configurator](https://shields.io
44
54
* Set label to `Release` or whatever you want, and set other settings as desired.
45
55
46
56
Click `Execute` to verify results and copy Markdown or desired format.
57
+
58
+
### 2. Production-Ready Commercial API on RapidAPI
59
+
60
+
Subscribe to the commercial API on RapidAPI for higher rate limits, guaranteed performance, or advanced features:
61
+
-[LastVersion API on RapidAPI](https://rapidapi.com/ciapnz/api/lastversion)
62
+
63
+
For **production** use, higher rate limits, guaranteed performance, or advanced features, check out our hosted API on RapidAPI:
64
+
- Flexible Endpoints: Fetch just the `version`, list of `assets`, or full release details via different routes.
65
+
- Scalable Billing Plans: **Start free**, upgrade as your usage grows.
66
+
67
+
**Why RapidAPI?**
68
+
- Easier Integration: The platform handles billing, usage metrics, and rate limiting in a clear manner.
69
+
- Global Infrastructure: Your requests route quickly from anywhere in the world.
70
+
- Stable for Production: More robust than the free endpoint, guaranteed uptime, and no 2-hour forced cache if you need fresh data.
71
+
72
+
Secure your requests with API Keys provided by RapidAPI.
73
+
74
+
* Header Name: `X-RapidAPI-Key`
75
+
* Required: Yes
76
+
77
+
📌 **Endpoints**
78
+
79
+
*`/version?project=project_id` returns only the version string, corresponding to the latest release
80
+
*`/source?project=project_id` returns URL to download source tarball corresponding to the latest release
81
+
*`/release?project=project_id` returns various information about the latest release with mandatory `version` field
82
+
*`/assets?project=project_id` returns URLs corresponding to downloadable executable or other assets for the latest release
83
+
84
+
The `project_id` can be a single identifier like `linux` or `nginx` or a GitHub repository name, or you can even supply a URL where a project is hosted.
85
+
86
+
**Example Requests**:
87
+
88
+
Fetch Nginx Latest Version (GET):
89
+
90
+
```
91
+
curl -X GET "https://lastversion.p.rapidapi.com/release?project=nginx" \
92
+
-H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
93
+
-H "X-RapidAPI-Host: lastversion.p.rapidapi.com"
94
+
```
95
+
96
+
Response:
97
+
98
+
```
99
+
{
100
+
"version": "1.27.3",
101
+
"type": "release",
102
+
...
103
+
}
104
+
```
105
+
106
+
If you want to get just the version, use the `/version` endpoint URL.
107
+
108
+
109
+
Fetch Linux Latest Version (GET) with Version Only:
110
+
111
+
```
112
+
curl -X GET "https://lastversion.p.rapidapi.com/version?project=torvalds/linux" \
113
+
-H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
114
+
-H "X-RapidAPI-Host: lastversion.p.rapidapi.com"
115
+
```
116
+
117
+
Response: `6.12`
118
+
119
+
Every endpoint supports `major` parameter, allowing you to answer questions like:
120
+
121
+
> What was the last 4.x Linux version?
122
+
123
+
```
124
+
curl -X GET "https://lastversion.p.rapidapi.com/version?project=torvalds/linux&major=4" \
125
+
-H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
126
+
-H "X-RapidAPI-Host: lastversion.p.rapidapi.com"
127
+
```
128
+
129
+
Response: `4.20`
130
+
131
+
Fetch the latest release data of WordPress:
132
+
133
+
```
134
+
curl -X GET "https://lastversion.p.rapidapi.com/release?project=WordPress/WordPress" \
135
+
-H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
136
+
-H "X-RapidAPI-Host: lastversion.p.rapidapi.com"
137
+
```
138
+
139
+
Response will include `version:` field as well as a lot of other useful information about the latest release.
140
+
141
+
Fetch downoad URL of latest WordPress:
142
+
143
+
```
144
+
curl -X GET "https://lastversion.p.rapidapi.com/source?project=WordPress/WordPress" \
0 commit comments