Skip to content

This Github repo houses the Coinmarketcap Scraper API, a tool designed to extract and gather cryptocurrency data from Coinmarketcap.

Notifications You must be signed in to change notification settings

oxylabs/coinmarketcap-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Coinmarketcap Scraper API

Oxylabs promo code

Oxylabs’ Coinmarketcap Scraper is a data gathering solution allowing you to extract real-time information from an Coinmarketcap website effortlessly. This brief guide explains how an Coinmarketcap Scraper works and provides code examples to understand better how you can use it hassle-free.

How it works

You can get Coinmarketcap results by providing your own URLs to our service. We can return the HTML for any Coinmarketcap page you like.

Python code example

The example below illustrates how you can get HTML of Coinmarketcap page.

import requests
from pprint import pprint

# Structure payload.
payload = {
    'source': 'universal',
    'url': 'https://coinmarketcap.com/all/views/all/'
}

# Get response.
response = requests.request(
    'POST',
    'https://realtime.oxylabs.io/v1/queries',
    auth=('user', 'pass1'),
    json=payload,
)

# Instead of response with job status and results url, this will return the
# JSON response with the result.
pprint(response.json())

Find code examples for other programming languages here

Output Example

{
  "results": [
    {
      "content": "<!DOCTYPE html><html lang=\"en\" dir=\"ltr\"><head><meta charSet=\"utf-8\"/><meta http-equiv=\"x-ua-compati ... </html>",
      "created_at": "2023-12-18 10:41:27",
      "updated_at": "2023-12-18 10:41:28",
      "page": 1,
      "url": "https://coinmarketcap.com/all/views/all/",
      "job_id": "7142463871930917889",
      "status_code": 200
    }
  ]
}

With our Coinmarketcap Scraper, you can easily gather public data from any Coinmarketcap web page. Acquire the necessary information about various cryptocurrencies, including their current price, market capitalization, trading volume, and historical data, to analyze market trends and gain insight for your investment strategies. If you need assistance or have any inquiries, feel free to reach out to our support team through live chat or email us at [email protected].