Maintainers
Pricing
Enterprise
More
More
Documentation
Try Live
Rankings
Install
Blog
Docs7
Ask
New
Add Docs
Firefox Fun User APIs
https://firefox.fun/user/apis/
Admin
Firefox Fun User APIs 是一个电话号码和短信验证服务平台,提供获取临时手机号码、接收验证码和短信相关的API接口。
Tokens:
9,133
Snippets:
34
Trust Score:
7.1
Update:
1 month ago
Context
Chat
Benchmark
83.5
Latest
Show doc for...
Code
Info
Show Results
Tokens:
Raw
Copy
Link
Tokens:
Raw
Copy
Link
### GET /yhapi.ashx?act=login Source: https://firefox.fun/user/apis/apidoc_chn.aspx Authenticates the user and returns a token. This should be called once at the start of the script. ```APIDOC ## GET /yhapi.ashx?act=login ### Description Authenticates the user and returns a token. This should be called once at the start of the script. ### Method GET ### Endpoint /yhapi.ashx ### Parameters #### Query Parameters - **act** (string) - Required - Fixed value: login - **ApiName** (string) - Required - API username - **PassWord** (string) - Required - Login password ### Response #### Success Response (200) - **1|token** (string) - Returns the token value #### Failure Response (200) - **0|code** (string) - Returns a failure code (e.g., -9 for incorrect credentials) ``` -------------------------------- ### GET /yhapi.ashx?act=getItem Source: https://firefox.fun/user/apis/apidoc_chn.aspx Retrieves the price list for available projects. ```APIDOC ## GET /yhapi.ashx?act=getItem ### Description Retrieves project pricing information. If no keyword is provided, all project information is returned. ### Method GET ### Endpoint /yhapi.ashx ### Parameters #### Query Parameters - **act** (string) - Required - Fixed value: "getItem" - **key** (string) - Optional - Project name keyword ### Response #### Success Response (200) - **Response** (json) - Returns a JSON object containing Item_ID, Item_Name, Item_UPrice, Country_ID, and Country_Title. ``` -------------------------------- ### GET /yhapi.ashx?act=myInfo Source: https://firefox.fun/user/apis/apidoc_chn.aspx Retrieves account information including balance, level, and points. ```APIDOC ## GET /yhapi.ashx?act=myInfo ### Description Retrieves account information including balance, level, and points. ### Method GET ### Endpoint /yhapi.ashx ### Parameters #### Query Parameters - **act** (string) - Required - Fixed value: myInfo - **token** (string) - Required - Token returned from login ### Response #### Success Response (200) - **1|balance|level|points** (string) - Returns user account details ``` -------------------------------- ### GET /yhapi.ashx?act=addBlack Source: https://firefox.fun/user/apis/apidoc_chn.aspx Blacklists a phone number. ```APIDOC ## GET /yhapi.ashx?act=addBlack ### Description Blacklists a phone number. ### Method GET ### Endpoint /yhapi.ashx ### Parameters #### Query Parameters - **act** (string) - Required - Fixed value: addBlack - **token** (string) - Required - Token returned from login - **pkey** (string) - Required - pkey from getPhone - **reason** (string) - Required - Reason for blacklisting ``` -------------------------------- ### GET /yhapi.ashx?act=getPhone Source: https://firefox.fun/user/apis/apidoc_chn.aspx Retrieves a temporary phone number for a specific project. ```APIDOC ## GET /yhapi.ashx?act=getPhone ### Description Retrieves a temporary phone number for a specific project. ### Method GET ### Endpoint /yhapi.ashx ### Parameters #### Query Parameters - **act** (string) - Required - Fixed value: getPhone - **token** (string) - Required - Token returned from login - **iid** (string) - Required - Project ID ### Response #### Success Response (200) - **1|pkey|time|country|area|location|port|phone|dock** (string) - Returns phone details and pkey ``` -------------------------------- ### GET /yhapi.ashx?act=setRel Source: https://firefox.fun/user/apis/apidoc_chn.aspx Releases the phone number if no SMS was received. ```APIDOC ## GET /yhapi.ashx?act=setRel ### Description Releases the phone number if no SMS was received. ### Method GET ### Endpoint /yhapi.ashx ### Parameters #### Query Parameters - **act** (string) - Required - Fixed value: setRel - **token** (string) - Required - Token returned from login - **pkey** (string) - Required - pkey from getPhone ``` -------------------------------- ### GET /yhapi.ashx?act=getPhoneCode Source: https://firefox.fun/user/apis/apidoc_chn.aspx Retrieves the SMS verification code for a previously obtained phone number. ```APIDOC ## GET /yhapi.ashx?act=getPhoneCode ### Description Retrieves the SMS verification code for a previously obtained phone number. ### Method GET ### Endpoint /yhapi.ashx ### Parameters #### Query Parameters - **act** (string) - Required - Fixed value: getPhoneCode - **token** (string) - Required - Token returned from login - **pkey** (string) - Required - pkey from getPhone ### Response #### Success Response (200) - **1|code|content** (string) - Returns the verification code and full SMS content ``` -------------------------------- ### Get Phone Number API Request Source: https://firefox.fun/user/apis/apidoc_chn.aspx Retrieves a phone number for a specific project. The pkey returned is required for subsequent operations like fetching codes or releasing the number. ```http http://www.firefox.fun/yhapi.ashx?act=getPhone&token=b7c94daad5e3dd71ffca9298976ec0d4_3&iid=1001&did=&country=&dock=&otpmode=&maxPrice=0&mobile=&pushUrl= ``` -------------------------------- ### GET /yhapi.ashx?act=sendCode Source: https://firefox.fun/user/apis/apidoc_chn.aspx Sends an SMS message from the obtained phone number. ```APIDOC ## GET /yhapi.ashx?act=sendCode ### Description Sends an SMS message from the obtained phone number. ### Method GET ### Endpoint /yhapi.ashx ### Parameters #### Query Parameters - **act** (string) - Required - Fixed value: sendCode - **token** (string) - Required - Token returned from login - **pkey** (string) - Required - pkey from getPhone - **receiver** (string) - Required - Recipient phone number - **smscontent** (string) - Required - SMS content ``` -------------------------------- ### Get Verification Code API Request Source: https://firefox.fun/user/apis/apidoc_chn.aspx Polls for the verification code associated with a specific pkey. If the response indicates waiting, retry after 5 seconds. ```http http://www.firefox.fun/yhapi.ashx?act=getPhoneCode&token=b7c94daad5e3dd71ffca9298976ec0d4_3&pkey=0524EA1B2A4DC810E3E535BE036C2C170E914ECC4D46ED19 ``` -------------------------------- ### Login API Request Source: https://firefox.fun/user/apis/apidoc_chn.aspx Call this endpoint once at script startup to obtain a token. The token remains valid unless the account password is changed. ```http http://www.firefox.fun/yhapi.ashx?act=login&ApiName=12348&PassWord=1231 ``` -------------------------------- ### POST /yhapi.ashx?act=apiReturn Source: https://firefox.fun/user/apis/apidoc_chn.aspx Reports the status of a verification task. Requires specific permissions to be enabled on the account. ```APIDOC ## POST /yhapi.ashx?act=apiReturn ### Description Reports the status of a verification task. Note that this interface requires specific permissions; unauthorized calls may result in balance deduction. ### Method POST ### Endpoint /yhapi.ashx ### Parameters #### Query Parameters - **act** (string) - Required - Fixed value: "apiReturn" - **token** (string) - Required - Token returned from the login interface - **pkey** (string) - Required - pkey returned from the phone number acquisition interface - **remark** (string) - Required - Feedback information (0: success, -1: failure, -2: verification code timeout, -3: number already registered) ### Response #### Success Response (200) - **Response** (string) - Returns "1|" on success #### Error Response - **Response** (string) - Returns "0|FailureCode" where FailureCode indicates specific errors like invalid token or pkey. ``` -------------------------------- ### Price List Retrieval API Source: https://firefox.fun/user/apis/apidoc_chn.aspx Fetches project price information. Providing a key filters by project name, otherwise all projects are returned. ```http http://www.firefox.fun/yhapi.ashx?act=getItem&key= ``` -------------------------------- ### POST /yhapi.ashx?act=setAgain Source: https://firefox.fun/user/apis/apidoc_chn.aspx Requests to use a previously acquired phone number again. This action incurs additional costs. ```APIDOC ## POST /yhapi.ashx?act=setAgain ### Description Used when a phone number needs to be used again after receiving a verification code. This action will trigger a new charge. ### Method POST ### Endpoint /yhapi.ashx ### Parameters #### Query Parameters - **act** (string) - Required - Fixed value: "setAgain" - **token** (string) - Required - Token returned from the login interface - **pkey** (string) - Required - pkey returned from the phone number acquisition interface - **min** (integer) - Optional - Minutes until next use (range 2-300, default 5) ### Response #### Success Response (200) - **Response** (string) - Returns "1|" on success #### Error Response - **Response** (string) - Returns "0|FailureCode" where FailureCode indicates specific errors. ``` -------------------------------- ### Account Information API Request Source: https://firefox.fun/user/apis/apidoc_chn.aspx Retrieves user balance, level, and points. This endpoint has a rate limit of one request per 60 seconds. ```http http://www.firefox.fun/yhapi.ashx?act=myInfo&token=b7c94daad5e3dd71ffca9298976ec0d4_3 ``` -------------------------------- ### Status Feedback API Source: https://firefox.fun/user/apis/apidoc_chn.aspx Used to report the status of a phone number verification. Requires specific permissions and valid token/pkey parameters. ```http http://www.firefox.fun/yhapi.ashx?act=apiReturn&token=b7c94daad5e3dd71ffca9298976ec0d4_3&pkey=0524EA1B2A4DC810E3E535BE036C2C170E914ECC4D46ED19&remark=0 ``` -------------------------------- ### Send SMS API Request Source: https://firefox.fun/user/apis/apidoc_chn.aspx Sends an SMS message to a specified receiver using the provided pkey. Ensure the content is not illegal. ```http http://www.firefox.fun/yhapi.ashx?act=sendCode&token=b7c94daad5e3dd71ffca9298976ec0d4_3&pkey=0524EA1B2A4DC810E3E535BE036C2C170E914ECC4D46ED19&receiver=10086&smscontent=cxye ``` -------------------------------- ### Phone Number Reuse API Source: https://firefox.fun/user/apis/apidoc_chn.aspx Used to request reuse of a phone number after receiving a verification code. Note that this action incurs additional costs. ```http http://www.firefox.fun/yhapi.ashx?act=setAgain&token=b7c94daad5e3dd71ffca9298976ec0d4_3&pkey=0524EA1B2A4DC810E3E535BE036C2C170E914ECC4D46ED19&min=5 ``` -------------------------------- ### Blacklist Phone Number API Request Source: https://firefox.fun/user/apis/apidoc_chn.aspx Blacklists a phone number if it is no longer needed. This is for special cases only. ```http http://www.firefox.fun/yhapi.ashx?act=addBlack&token=b7c94daad5e3dd71ffca9298976ec0d4_3&pkey=0524EA1B2A4DC810E3E535BE036C2C170E914ECC4D46ED19&reason=used ``` -------------------------------- ### Release Phone Number API Request Source: https://firefox.fun/user/apis/apidoc_chn.aspx Releases a phone number. This should only be called if no SMS was received; if an SMS was received, this call is unnecessary. ```http http://www.firefox.fun/yhapi.ashx?act=setRel&token=b7c94daad5e3dd71ffca9298976ec0d4_3&pkey=0524EA1B2A4DC810E3E535BE036C2C170E914ECC4D46ED19 ```