URL Title is a simple tool for getting the title of a web page. It returns the title of the web page based on the URL provided.
Project description
URL Title API
URL Title is a simple tool for getting the title of a web page. It returns the title of the web page based on the URL provided.
This is a Python API Wrapper for the URL Title API
Installation
pip install apiverve-urltitle
Configuration
Before using the urltitle API client, you have to setup your account and obtain your API Key.
You can get it by signing up at https://apiverve.com
Usage
The URL Title API documentation is found here: https://docs.apiverve.com/api/urltitle.
You can find parameters, example responses, and status codes documented here.
Setup
# Import the client module
from apiverve_urltitle.apiClient import UrltitleAPIClient
# Initialize the client with your APIVerve API key
api = UrltitleAPIClient("[YOUR_API_KEY]")
Perform Request
Using the API client, you can perform requests to the API.
Define Query
query = { "url": "https://www.nytimes.com/2024/08/21/business/google-california-news-funding.html" }
Simple Request
# Make a request to the API
result = api.execute(query)
# Print the result
print(result)
Example Response
{
"status": "ok",
"error": null,
"data": {
"title": "Google Joins $250 Million Deal to Support Newsrooms in California - The New York Times",
"h1": [
"Google Joins $250 Million Deal to Support Newsrooms in California"
]
},
"code": 200
}
Customer Support
Need any assistance? Get in touch with Customer Support.
Updates
Stay up to date by following @apiverveHQ on Twitter.
Legal
All usage of the APIVerve website, API, and services is subject to the APIVerve Terms of Service and all legal documents and agreements.
License
Licensed under the The MIT License (MIT)
Copyright (©) 2024 APIVerve, and Evlar LLC
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file apiverve_urltitle-1.1.5.tar.gz
.
File metadata
- Download URL: apiverve_urltitle-1.1.5.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fea0be52a45ad03d7ff00db5fb2f0101e7c39ac34b0cc12a9918bf6febc824d |
|
MD5 | 0a29900e0f2af4d649223c7e8b8c9e02 |
|
BLAKE2b-256 | 38dfe5675121532bd1f8d8c25fd3ae5d7c222fe20898f7cdd8a1d91eeb43ce5b |
File details
Details for the file apiverve_urltitle-1.1.5-py3-none-any.whl
.
File metadata
- Download URL: apiverve_urltitle-1.1.5-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0352c6c6dfe235d25fbe6a69dd505b502e1452c0a5a609e90e4191010a8ecc0 |
|
MD5 | ec352e2f36cb0a08d28e029f9d2f05e6 |
|
BLAKE2b-256 | 91a57e2c9f923a016c0fbc1845f09ee97848163c5a680200ddf17949a021214e |