Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Checking real Mercari Japan prices with Python: on-sale vs sold, by condition, no login

I built this actor; it's a paid tool on Apify with a free trial credit. This article was drafted with AI and published by me. If you resell Pokemon cards, figures, retro games or Japanese streetwear, Mercari Japan is the price reference that matters. The problem is getting at it: the site is in Japanese, there is no public API for buyers, the sold filter is buried, and copying prices by hand…

This article explains how to check real Mercari Japan prices using Python, without requiring any login. Mercari Japan is a popular platform for buying and selling items like Pokemon cards, figures, retro games, and Japanese streetwear. The challenge with Mercari is that it is in Japanese, lacks a public API for buyers, and the filter for sold items is buried. To overcome these obstacles, the author created the Mercari Japan Scraper tool, which turns a keyword or a search URL into clean JSON rows.

The scraper works by calling the same endpoint Mercari uses for its search API, over plain HTTP, so there is no headless browser or account needed. One request returns up to 120 listings. The actor can be called from Python or Node.js. The Python code requires installing the apify-client package, creating an APIFY client with a token, and calling the "rel8ble/mercari-japan-scraper" actor with the desired search terms, status (on_sale, sold, or all), and maximum results per search. The Node.js code is similar.

The JSON row output includes the item ID, type, title, price in yen (priceJpy), status (on_sale, sold, or all), condition (new, like_new, good, fair, worn, or poor) in both English and Japanese, shipping information, brand name, image URL, creation date, and search keyword. The condition data is in both English and Japanese, allowing merchants to display this information to overseas customers without translation.

In the tested run, all title, price, status, condition, photos, category, shipping payer, and date information were available, and brand information was present in 68% of the items. By running one sold search per keyword and printing the count and median yen price for each condition, this script answers the practical question of what items actually sell for in Japan, split by condition.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Python: String

Python Notes: Strings, Lists, Loops 1. What is a String? A string is a datatype, written as str in Python. It is a collection of characters: alphabets, special characters and numbers.

  • String is a datatype in Python, denoted as str.
  • Strings are enclosed in single or double quotes, triple quotes for multiline.
  • Strings are immutable, cannot be changed once created.

Bloom filters for system design interviews, explained

Bloom filters for system design interviews, explained Somewhere in a design — a cache in front of a database, an LSM-tree storage engine, a web crawler deduplicating URLs — you hit the same waste: you…

  • Bloom filters are used to avoid costly lookups for non-existent items in system design interviews.
  • They provide a probabilistic structure with "definitely not" and "probably yes" outcomes.

Implementing HIPAA Safe Harbor (45 CFR § 164.514(b)(2)) CSV De-Identification 100% Client-Side in Vanilla JS

If you have ever tried to help a hospital lab, MD/PhD student, or clinical data team share a research CSV with an external collaborator or journal repository, you know the catch-22: Cloud SaaS…

  • HIPAA Safe Harbor 18-identifier transformation occurs client-side in Vanilla JS
  • ZIP codes and ages require specific handling per 45 CFR § 164.514(b)(2)
  • Audit certificates generated via SHA-256 fingerprints for data verification

More from Monday 23 November →